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

Version Path
iqvoc-4.14.5 lib/tasks/release.rake
iqvoc-4.14.4 lib/tasks/release.rake
iqvoc-4.13.2 lib/tasks/release.rake
iqvoc-4.13.0 lib/tasks/release.rake
iqvoc-4.12.1 lib/tasks/release.rake
iqvoc-4.12.0 lib/tasks/release.rake
iqvoc-4.11.1 lib/tasks/release.rake
iqvoc-4.11.0 lib/tasks/release.rake
iqvoc-4.10.0 lib/tasks/release.rake
iqvoc-4.9.0 lib/tasks/release.rake