Sha256: 73f64d7dd93f4c333463c162c950a3c667be12cf273506ac832da383909ef8a9

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

require "bump"

namespace :bump do
  run_bump = lambda do |bump, options|
    output, status = Bump::Bump.run(bump, options)
    puts output
    abort unless status == 0
  end

  (Bump::Bump::BUMPS + ["current"]).each do |bump|
    if bump == "current"
      desc "Show current gem version"
    else
      desc "Bump #{bump} part of gem version"
    end

    task bump, :tag do |_task, args|
      run_bump.call(bump, :tag => args[:tag])
    end
  end

  desc "Sets the version number using the VERSION environment variable"
  task :set do
    run_bump.call("set", :version => ENV['VERSION'])
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/bump-0.5.3/lib/bump/tasks.rb
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/bump-0.5.3/lib/bump/tasks.rb
bump-0.5.3 lib/bump/tasks.rb
bump-0.5.2 lib/bump/tasks.rb