Rakefile in fast_gettext-0.4.17 vs Rakefile in fast_gettext-0.5.1

- old
+ new

@@ -1,11 +1,8 @@ -desc "Run all specs in spec directory" -task :default do |t| - options = "--colour --format progress --loadby --reverse" - files = FileList['spec/**/*_spec.rb'] - system("spec #{options} #{files}") -end +task :default => :spec +require 'spec/rake/spectask' +Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color']} task :benchmark do puts "Running on #{RUBY}" %w[baseline ideal fast_gettext original i18n_simple].each do |bench| puts `ruby benchmark/#{bench}.rb` @@ -25,18 +22,11 @@ gem.name = project_name gem.summary = "A simple, fast and threadsafe implementation of GetText" gem.email = "grosser.michael@gmail.com" gem.homepage = "http://github.com/grosser/#{project_name}" gem.authors = ["Michael Grosser"] - gem.rubyforge_project = project_name.sub('_','-') end - # fake task so that rubyforge:release works - task :rdoc do - `mkdir rdoc` - `echo documentation is at http://github.com/grosser/#{project_name} > rdoc/README.rdoc` - end - - Jeweler::RubyforgeTasks.new + Jeweler::GemcutterTasks.new rescue LoadError - puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com" + puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler" end \ No newline at end of file