Sha256: b7b94e970e6d81f40ce7fb96146f8a5dc0b093ac5336623906d05e4212a06acc
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
#!/usr/bin/env ruby require 'optparse' options = {} OptionParser.new do |opts| opts.banner = <<BANNER Bump your gem version. Usage: bump current # show current version bump pre # increase prerelease version of your gem (1.0.0-X) [alpha, beta, rc, ] 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) bump set 1.2.3 # set the version number to the given value Options: BANNER opts.on("--no-commit", "Do not make a commit.") { options[:commit] = false } opts.on("--no-bundle", "Do not bundle.") { options[:bundle] = false } opts.on("--tag", "Create git tag from version (only if commit is true).") { options[:tag] = true } opts.on("-h", "--help","Show this.") { puts opts; exit } end.parse! unless (ARGV.size == 1 && ARGV.first != "set") || (ARGV.size == 2 && ARGV.first == "set") puts "Usage instructions: bump --help" exit 1 end if ARGV.first == "set" options[:version] = ARGV[1] end require File.dirname(__FILE__) + '/../lib/bump' output, status = Bump::Bump.run(ARGV.first, options) puts output exit status
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
bumpz-0.5.3 | bin/bump |
bumpz-0.5.0 | bin/bump |
bump-0.5.0 | bin/bump |