Rakefile in sinatra-1.3.2 vs Rakefile in sinatra-1.3.3
- old
+ new
@@ -54,11 +54,11 @@
end
# Rcov ================================================================
namespace :test do
- desc 'Mesures test coverage'
+ desc 'Measures test coverage'
task :coverage do
rm_f "coverage"
sh "rcov -Ilib test/*_test.rb"
end
end
@@ -115,9 +115,10 @@
mapping = {
"blake.mizerany@gmail.com" => blake, "bmizerany" => blake,
"a_user@mac.com" => blake, "ichverstehe" => "Harry Vangberg",
"Wu Jiang (nouse)" => "Wu Jiang" }
`git shortlog -s #{a.commit_range}`.lines.map do |line|
+ line = line.force_encoding 'binary' if line.respond_to? :force_encoding
num, name = line.split("\t", 2).map(&:strip)
authors[mapping[name] || name] += num.to_i
overall += num.to_i
end
puts "#{overall} commits by #{authors.count} authors:"