job :release do include_job :prompt_version #ver = prompt "Please provide version for this release:", required: true #set :releasing_version, ver include_job :check_in include_job :build end job :prompt_version do if get(:releasing_version) == nil ver = prompt "Please provide version for this release:", required: true set :releasing_version, ver end end job :build do dir File.dirname(__FILE__) include_job :prompt_version rubygem do #publish build('alog.gemspec'), ignore_status: true #do |res| build('gcrypto_jce.gemspec') do |res| publish(res, ignore_status: true) end end end job :check_in do dir File.dirname(__FILE__) git do commit tag push 'origin', 'master' #push 'git','master' end end job :reinstall do rubygem do uninstall 'gcrypto_jce' install 'gcrypto_jce' end end