Rakefile in resque-result-1.0.0 vs Rakefile in resque-result-1.0.1
- old
+ new
@@ -34,5 +34,14 @@
MG.new("resque-result.gemspec")
rescue LoadError
warn "mg not available."
warn "Install it with: gem i mg"
end
+
+desc "Tag and publish a new version to Rubygems"
+task :publish => [ :test, 'gem:publish' ] do
+ require 'resque/plugins/result/version'
+
+ sh ["git tag v#{Resque::Plugins::Result::Version}",
+ "git push origin v#{Resque::Plugins::Result::Version}",
+ "git push origin master"].join(' && ')
+end