Rakefile in vanity-1.4.0 vs Rakefile in vanity-1.5.0.beta

- old
+ new

@@ -1,10 +1,10 @@ require "rake/testtask" # -- Building stuff -- -spec = Gem::Specification.load(File.expand_path("vanity.gemspec", File.dirname(__FILE__))) +spec = Gem::Specification.load(Dir["*.gemspec"].first) desc "Build the Gem" task :build do sh "gem build #{spec.name}.gemspec" end @@ -14,11 +14,11 @@ sudo = "sudo" unless File.writable?( Gem::ConfigMap[:bindir]) sh "#{sudo} gem install #{spec.name}-#{spec.version}.gem" end desc "Push new release to gemcutter and git tag" -task :push=>["test:rubies", "build"] do +task :push=>["test:all", "build"] do sh "git push" puts "Tagging version #{spec.version} .." sh "git tag v#{spec.version}" sh "git push --tag" puts "Building and pushing gem .." @@ -26,11 +26,14 @@ end # -- Testing stuff -- +desc "Test everything" +task "test:all"=>"test:rubies" + # Ruby versions we're testing with. -RUBIES = %w{1.8.7 1.9.1 1.9.2} +RUBIES = %w{1.8.7 1.9.2} # Use rake test:rubies to run all combination of tests (see test:adapters) using # all the versions of Ruby specified in RUBIES. Or to test a specific version of # Ruby, rake test:rubies[1.8.7]. #