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

Version Path
confidante-0.19.0 Rakefile
confidante-0.18.0.pre.1 Rakefile
confidante-0.17.0 Rakefile
confidante-0.16.0.pre.1 Rakefile
confidante-0.15.0 Rakefile
confidante-0.14.0.pre.1 Rakefile
confidante-0.13.0 Rakefile
confidante-0.12.0.pre.1 Rakefile
confidante-0.11.0 Rakefile
confidante-0.10.0.pre.1 Rakefile
confidante-0.9.0 Rakefile
confidante-0.8.0.pre.1 Rakefile