Rakefile in babynames-0.1.1 vs Rakefile in babynames-0.1.2

- old
+ new

@@ -16,11 +16,13 @@ # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options gem.name = "babynames" gem.homepage = "http://github.com/jordandcarter/babynames" gem.license = "MIT" gem.summary = "Quickly and easily get random names for things like test" - gem.description = "Easily name your baby! Or if you're a dev, make some tests with names better than test1, test2, testy" + gem.description = "Easily name your baby! Or if you're a dev, make some tests with names better than test1, test2, testy. + + This gem gives you the ability to randomly create plausable usernames, names, emails without any hassle. Useful for seeding development data." gem.email = "jordan.d.carter@gmail.com" gem.authors = ["Jordan Carter"] # dependencies defined in Gemfile end Jeweler::RubygemsDotOrgTasks.new @@ -38,10 +40,23 @@ test.pattern = 'test/**/test_*.rb' test.verbose = true test.rcov_opts << '--exclude "gems/*"' end -task :default => :test +task :default => :test_rubies + +desc "Runs tests on Ruby 1.8.7 and 1.9.2" +task :test_rubies do + versions = %w( 1.8.7 1.9.2) + versions.each do |version| + system <<-BASH + bash -c 'source ~/.rvm/scripts/rvm; + rvm use #{version}; + echo "-------- `ruby -v` ---------\n"; + rake -s test' + BASH + end +end require 'rake/rdoctask' Rake::RDocTask.new do |rdoc| version = File.exist?('VERSION') ? File.read('VERSION') : ""