lib/thor-scmversion.rb in thor-scmversion-1.1.0 vs lib/thor-scmversion.rb in thor-scmversion-1.2.1

- old
+ new

@@ -11,11 +11,12 @@ module ThorSCMVersion class Tasks < Thor namespace "version" desc "bump TYPE [PRERELEASE_TYPE]", "Bump version number (type is major, minor, patch, prerelease or auto)" + method_option :default, type: :string, aliases: "-d" def bump(type, prerelease_type = nil) - current_version.bump! type, prerelease_type + current_version.bump! type, options.merge(prerelease_type: prerelease_type) begin say "Creating and pushing tags", :yellow current_version.tag say "Writing files: #{version_files.join(', ')}", :yellow write_version