Rakefile in sinatra-1.3.0.e vs Rakefile in sinatra-1.3.0.f

- old
+ new

@@ -1,10 +1,16 @@ require 'rake/clean' require 'rake/testtask' require 'fileutils' require 'date' +# CI Reporter is only needed for the CI +begin + require 'ci/reporter/rake/test_unit' +rescue LoadError +end + task :default => :test task :spec => :test CLEAN.include "**/*.rbc" @@ -75,11 +81,11 @@ template = code[/===[^\n]*Liquid.*index\.liquid<\/tt>[^\n]*/m] if !template 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 end end @@ -100,10 +106,10 @@ "(based on commits included in #{a.release}, but not in #{a.backports})" end desc "list of authors" task :authors, [:commit_range, :format, :sep] do |t, a| - a.with_defaults :format => "%s (%d)", :sep => ", " + a.with_defaults :format => "%s (%d)", :sep => ", ", :commit_range => '--all' authors = Hash.new { |h,k| h[k] = 0 } blake = "Blake Mizerany" overall = 0 mapping = { "blake.mizerany@gmail.com" => blake, "bmizerany" => blake,