Sha256: 2d0525125345497e6291a606d93268728ab78f84b3f96dd777ee7b523fbe964e
Contents?: true
Size: 1003 Bytes
Versions: 6
Compression:
Stored size: 1003 Bytes
Contents
require 'rspec/core/rake_task' desc "Run spec suite (uses Rspec2)" RSpec::Core::RakeTask.new(:spec) { |t|} desc "Run specs with RCov" RSpec::Core::RakeTask.new(:rcov) do |t| t.rcov = true t.rcov_opts = ['--exclude', 'spec'] end desc "Generate AMQP specification classes" task :codegen do sh 'ruby protocol/codegen.rb > lib/amqp/spec.rb' sh 'ruby lib/amqp/spec.rb' end desc "Build the gem" task :gem do sh 'gem build *.gemspec' end desc "Synonym for gem" task :pkg => :gem desc "Synonym for gem" task :package => :gem desc "Regenerate contributors file." task :contributors do authors = %x{git log | grep ^Author:}.split("\n") results = authors.reduce(Hash.new) do |results, line| name = line.sub(/^Author: (.+) <.+>$/, '\1') results[name] ||= 0 results[name] += 1 results end results = results.sort_by { |_, count| count }.reverse File.open("CONTRIBUTORS", "w") do |file| results.each do |name, count| file.puts "#{name}: #{count}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
amqp-0.8.0.rc2 | Rakefile |
amqp-0.8.0.rc1 | Rakefile |
amqp-0.8.0.pre.beta1 | Rakefile |
amqp-0.8.0.beta1 | Rakefile |
amqp-0.7.1 | Rakefile |
amqp-0.7.0 | Rakefile |