Rakefile in itamae-1.0.0.beta19 vs Rakefile in itamae-1.0.0.beta20
- old
+ new
@@ -69,10 +69,10 @@
desc "Bump up version and commit"
task :version_up do
version_file = File.expand_path("lib/itamae/version.txt")
current_version = File.read(version_file).strip
- if /\A(.+)(\d+)\z/ =~ current_version
+ if /\A(.+?)(\d+)\z/ =~ current_version
next_version = "#{$1}#{$2.to_i + 1}"
else
raise "Invalid version"
end