Sha256: fb975633840f000318ca51ab4ce935d4753df048f1aff5f14d1113851938b1e4
Contents?: true
Size: 845 Bytes
Versions: 3
Compression:
Stored size: 845 Bytes
Contents
require "bundler/gem_tasks" require "rspec/core/rake_task" RSpec::Core::RakeTask.new(:spec) task :default => :spec namespace :version do desc "Bump version for specified type (pre, major, minor patch)" task :bump, [:type] do |_, args| bump_version_for(args.type) end end namespace :publish do desc "Publish prerelease version" task :prerelease do Rake::Task['version:bump'].invoke('pre') Rake::Task['release'].invoke end desc "Publish release version" task :release do Rake::Task['version:bump'].invoke('minor') Rake::Task['release'].invoke end end def bump_version_for(version_type) sh "gem bump --version #{version_type} " + "&& bundle install " + "&& export LAST_MESSAGE=\"$(git log -1 --pretty=%B)\" " + "&& git commit -a --amend -m \"${LAST_MESSAGE} [ci skip]\"" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-terraform-0.13.2.pre40 | Rakefile |
ruby-terraform-0.14.0 | Rakefile |
ruby-terraform-0.13.2.pre39 | Rakefile |