Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make CI Reporter optional

  • Loading branch information...
commit b72787004d2301e7fe9d4fe5fe0af3ddf5af3b09 1 parent b18cebe
@timfel timfel authored rkh committed
Showing with 8 additions and 3 deletions.
  1. +1 −1  Gemfile
  2. +7 −2 Rakefile
View
2  Gemfile
@@ -11,7 +11,7 @@ source :rubygems unless ENV['QUICK']
gem 'rake', '~> 0.8.7'
gem 'rack-test', '>= 0.5.6'
-gem 'ci_reporter'
+gem 'ci_reporter', :group => :ci
# Allows stuff like `tilt=1.2.2 bundle install` or `tilt=master ...`.
# Used by the CI.
View
9 Rakefile
@@ -2,7 +2,12 @@ require 'rake/clean'
require 'rake/testtask'
require 'fileutils'
require 'date'
-require 'ci/reporter/rake/test_unit'
+
+# CI Reporter is only needed for the CI
+begin
+ require 'ci/reporter/rake/test_unit'
+rescue LoadError
+end
task :default => :test
task :spec => :test
@@ -78,7 +83,7 @@ task :add_template, [:name] do |t, args|
puts "Liquid not found in #{file}"
else
puts "Adding section to #{file}"
- template = template.gsub(/Liquid/, args.name.capitalize).gsub(/liquid/, args.name.downcase)
+ template = template.gsub(/Liquid/, args.name.capitalize).gsub(/liquid/, args.name.downcase)
code.gsub! /^(\s*===.*CoffeeScript)/, "\n" << template << "\n\\1"
File.open(file, "w") { |f| f << code }
end
Please sign in to comment.
Something went wrong with that request. Please try again.