Sha256: 5e7499e14d74e0c606bb00984af2dd633875006e7864cbb8e895bcff8ae5157f
Contents?: true
Size: 893 Bytes
Versions: 10
Compression:
Stored size: 893 Bytes
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) 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("-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
10 entries across 10 versions & 1 rubygems