Rakefile in arachni-rpc-em-0.1.2 vs Rakefile in arachni-rpc-em-0.1.3dev1
- old
+ new
@@ -17,11 +17,11 @@
rescue LoadError => e
puts 'If you want to run the tests please install rspec first:'
puts ' gem install rspec'
end
-task default: [ :spec ]
+task default: [ :build, :spec ]
desc "Generate docs"
task :docs do
outdir = "../arachni-rpc-pages"
@@ -46,14 +46,14 @@
sh "gem build arachni-rpc-em.gemspec"
end
desc "Build and install the arachni gem."
task :install => [ :build ] do
-
sh "gem install arachni-rpc-em-#{Arachni::RPC::EM::VERSION}.gem"
end
-desc "Push a new version to Gemcutter"
+desc "Push a new version to Rubygems"
task :publish => [ :build ] do
-
+ sh "git tag -a v#{Arachni::RPC::EM::VERSION} -m 'Version #{Arachni::RPC::EM::VERSION}'"
sh "gem push arachni-rpc-em-#{Arachni::RPC::EM::VERSION}.gem"
end
+task :release => [ :publish ]