lib/bump/tasks.rb in bump-0.5.4 vs lib/bump/tasks.rb in bump-0.6.0
- old
+ new
@@ -13,10 +13,17 @@
else
desc "Bump #{bump} part of gem version"
end
task bump, :tag do |_task, args|
- run_bump.call(bump, args)
+ raise RakeArgumentsDeprecatedError,
+ "rake arguments are deprecated, use TAG=false to disable tagging" if args.tag
+ options = {
+ tag: ENV['TAG'],
+ commit: ENV['COMMIT'],
+ bundle: ENV['BUNDLE']
+ }
+ run_bump.call(bump, Bump::Bump.parse_cli_options!(options))
end
end
desc "Sets the version number using the VERSION environment variable"
task :set do