[DRE-commits] [ruby-rspec-instafail] 72/126: adjust bump script to zero out patch/minor on minor/major
Hideki Yamane
henrich at moszumanska.debian.org
Sun Nov 15 19:15:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository ruby-rspec-instafail.
commit 0696bc9bd7cd18a08a15458f28d4fc4d911006e8
Author: grosser <grosser.michael at gmail.com>
Date: Mon Nov 21 20:24:05 2011 -0800
adjust bump script to zero out patch/minor on minor/major
---
Rakefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Rakefile b/Rakefile
index 82ef61f..f321e31 100644
--- a/Rakefile
+++ b/Rakefile
@@ -16,6 +16,8 @@ rule /^version:bump:.*/ do |t|
version_file = File.read(file)
old_version, *version_parts = version_file.match(/(\d+)\.(\d+)\.(\d+)/).to_a
version_parts[index] = version_parts[index].to_i + 1
+ version_parts[2] = 0 if index < 2
+ version_parts[1] = 0 if index < 1
new_version = version_parts * '.'
File.open(file,'w'){|f| f.write(version_file.sub(old_version, new_version)) }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rspec-instafail.git
More information about the Pkg-ruby-extras-commits
mailing list