Sha256: 1be9be512a8ee128c6264eadf672db1fb72dde50db41f94396f524274f7eb935
Contents?: true
Size: 649 Bytes
Versions: 10
Compression:
Stored size: 649 Bytes
Contents
namespace :release do desc 'Builds a new .gem release' task :build => :environment do system 'rm iqvoc-*.gem' system 'gem build iqvoc.gemspec' end desc 'Builds, tags and pushes a new release to Rubygems' task :push => :environment do Rake::Task['release:build'].invoke system %(git tag `grep VERSION lib/iqvoc/version.rb | sed -e 's/.*= /v/' -e 's/"//g'`) system 'git push origin master --tags' system 'gem push iqvoc-*.gem' end desc 'Writes current git head to ./headrev.txt' task :create_rev => :environment do file = Rails.root.join('headrev.txt') system "git rev-parse HEAD > #{file}" end end
Version data entries
10 entries across 10 versions & 1 rubygems