tasks/github-gem.rake in request-log-analyzer-1.8.0 vs tasks/github-gem.rake in request-log-analyzer-1.8.1

- old
+ new

@@ -132,12 +132,12 @@ namespace(:release) do desc "Release the next version of the gem, by incrementing the last version segment by 1" task(:next => [:next_version] + release_tasks) { release_task } - desc "Release the next version of the gem, using a bump increment (0.0.1)" - task(:bump => [:next_bump_version] + release_tasks) { release_task } + desc "Release the next version of the gem, using a patch increment (0.0.1)" + task(:patch => [:next_patch_version] + release_tasks) { release_task } desc "Release the next version of the gem, using a minor increment (0.1.0)" task(:minor => [:next_minor_version] + release_tasks) { release_task } desc "Release the next version of the gem, using a major increment (1.0.0)" @@ -150,11 +150,11 @@ task(:github_release => [:commit_modified_files, :tag_version]) { github_release_task } task(:tag_version) { tag_version_task } task(:commit_modified_files) { commit_modified_files_task } task(:next_version) { next_version_task } - task(:next_bump_version) { next_version_task(:bump) } + task(:next_patch_version) { next_version_task(:patch) } task(:next_minor_version) { next_version_task(:minor) } task(:next_major_version) { next_version_task(:major) } desc "Updates the gem release tasks with the latest version on Github" task(:update_tasks) { update_tasks_task } @@ -185,11 +185,11 @@ def next_version(increment = nil) next_version = newest_version.segments increment_index = case increment when :micro then 3 - when :bump then 2 + when :patch then 2 when :minor then 1 when :major then 0 else next_version.length - 1 end @@ -215,10 +215,10 @@ update_version_constant(gemspec.version) end def check_version_task raise "#{ENV['VERSION']} is not a valid version number!" if ENV['VERSION'] && !Gem::Version.correct?(ENV['VERSION']) - proposed_version = Gem::Version.new(ENV['VERSION'] || gemspec.version) + proposed_version = Gem::Version.new(ENV['VERSION'].dup || gemspec.version) raise "This version (#{proposed_version}) is not higher than the highest tagged version (#{newest_version})" if newest_version >= proposed_version end # Checks whether the current branch is not diverged from the remote branch def check_not_diverged_task