Sha256: 1a3fb71459f14cd34d4ee27202bfeec2447fcc899fb7ab75492847a0ce5e88c9

Contents?: true

Size: 750 Bytes

Versions: 1

Compression:

Stored size: 750 Bytes

Contents

#!/usr/bin/env ruby
require 'optparse'

options = {
  :commit => true
}
OptionParser.new do |opts|
  opts.banner = <<BANNER
Bump your gem version.

Usage:
    bump current  # show current version
    bump patch    # increase patch version of your gem (1.0.X)
    bump minor    # increase minor version of your gem (1.X.0)
    bump major    # increase major version of your gem (X.0.0)

Options:
BANNER
  opts.on("--no-commit", "Do not make a commit.") { options[:commit] = false }
  opts.on("-h", "--help","Show this.") { puts opts; exit }
end.parse!

if ARGV.size != 1
  puts "Usage instructions: bump --help"
  exit 1
end

require File.dirname(__FILE__) + '/../lib/bump'
output, status = Bump::Bump.run(ARGV.first, options)
puts output
exit status

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bump-0.3.0 bin/bump