From c70ead0aa151c2b769edd51415262e8843d642aa Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 13 Mar 2012 23:24:17 -0700 Subject: fix(Rakefile): version.dot extractor should ignore 'rc1' --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index a1c3a6ba..b1164382 100644 --- a/Rakefile +++ b/Rakefile @@ -20,7 +20,7 @@ task :init do new(match[1] + (match[2] ? ('-' + %x(git rev-parse HEAD)[0..7]) : ''), match[1].split('.')[0], match[1].split('.')[1], - match[1].split('.')[2], + match[1].split('.')[2].sub(/\D+.*$/, ''), v['codename']) end -- cgit v1.2.3