Sha256: 23ed8a669aefb7b425f194305ad633f9bce3e6c2f6866c70b88f967b6cb3fb55
Contents?: true
Size: 573 Bytes
Versions: 12
Compression:
Stored size: 573 Bytes
Contents
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 desc "Release gem" task :release do sh "gem release --tag --push" 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
12 entries across 12 versions & 1 rubygems