Rakefile in resque-1.8.2 vs Rakefile in resque-1.8.3

- old
+ new

@@ -7,11 +7,11 @@ $LOAD_PATH.unshift 'lib' require 'resque/tasks' def command?(command) - system("type #{command} > /dev/null") + system("type #{command} > /dev/null 2>&1") end # # Tests @@ -35,42 +35,35 @@ end end # -# Gem +# Install # task :install => [ 'redis:install', 'dtach:install' ] -begin - require 'mg' - MG.new("resque.gemspec") -rescue LoadError - warn "mg not available." - warn "Install it with: gem i mg" -end - # # Documentation # begin require 'sdoc_helpers' rescue LoadError - puts "sdoc support not enabled. Please gem install sdoc-helpers." end # # Publishing # desc "Push a new version to Gemcutter" -task :publish => "gem:publish" do +task :publish do require 'resque/version' + sh "gem build resque.gemspec" + sh "gem push resque-#{Resque::Version}.gem" sh "git tag v#{Resque::Version}" sh "git push origin v#{Resque::Version}" sh "git push origin master" sh "git clean -fd" exec "rake pages"