lib/bump/tasks.rb in bump-0.7.0 vs lib/bump/tasks.rb in bump-0.8.0

- old
+ new

@@ -5,13 +5,15 @@ output, status = Bump::Bump.run(bump, options) puts output abort unless status == 0 end - (Bump::Bump::BUMPS + ["current", "file"]).each do |bump| + (Bump::Bump::BUMPS + ["current", "file", "show-next"]).each do |bump| if bump == "current" desc "Show current gem version" + elsif bump == "show-next" + desc "Show next #{Bump::Bump::BUMPS.join('|')} version." elsif bump == "file" desc "Show version file path" else desc "Bump #{bump} part of gem version" end @@ -23,11 +25,13 @@ "rake arguments are deprecated, use TAG=false to disable tagging" ) end options = { tag: ENV['TAG'], + tag_prefix: ENV['TAG_PREFIX'], commit: ENV['COMMIT'], - bundle: ENV['BUNDLE'] + bundle: ENV['BUNDLE'], + increment: ENV['INCREMENT'] } run_bump.call(bump, Bump::Bump.parse_cli_options!(options)) end end