fix(Rakefile): version.dot extractor should ignore 'rc1'

This commit is contained in:
Igor Minar 2012-03-13 23:24:17 -07:00
parent 716b5fd3e2
commit c70ead0aa1

View file

@ -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