diff options
author | Olle Jonsson <olle.jonsson@gmail.com> | 2017-10-18 22:17:51 +0200 |
---|---|---|
committer | Olle Jonsson <olle.jonsson@gmail.com> | 2017-10-18 22:17:51 +0200 |
commit | d790918dafca77f96a98170063b7fc5f7abf16fc (patch) | |
tree | 954ec2a006b3adb17b242ef538d2bfae39bb9f73 /task | |
parent | 013257334dfc37f47277d54b0d334ca3b3c2371d (diff) | |
download | bundler-d790918dafca77f96a98170063b7fc5f7abf16fc.tar.gz |
release.rake: Fix typo in variable name
Diffstat (limited to 'task')
-rw-r--r-- | task/release.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/task/release.rake b/task/release.rake index edd6e9a7d5..abf7bb340a 100644 --- a/task/release.rake +++ b/task/release.rake @@ -80,12 +80,12 @@ namespace :release do def release_notes(version) title_token = "## " - current_verison_title = "#{title_token}#{version}" + current_version_title = "#{title_token}#{version}" current_minor_title = "#{title_token}#{version.segments[0, 2].join(".")}" text = File.open("CHANGELOG.md", "r:UTF-8", &:read) lines = text.split("\n") - current_version_index = lines.find_index {|line| line.strip =~ /^#{current_verison_title}($|\b)/ } + current_version_index = lines.find_index {|line| line.strip =~ /^#{current_version_title}($|\b)/ } unless current_version_index raise "Update the changelog for the last version (#{version})" end |