mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
The guard is to alert patchlevel of X.Y.0
This commit is contained in:
parent
3e5b691410
commit
ff91b97c83
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class << Merger
|
|||
v, pl = version
|
||||
if relname
|
||||
abort "patchlevel is not -1 but '#{pl}' for preview or rc" if pl != '-1' && /-(?:preview|rc)/ =~ relname
|
||||
abort "patchlevel is not 0 but '#{pl}' for the first release" if pl != '0' && /-(?:preview|rc)/ !~ relname
|
||||
abort "patchlevel is not 0 but '#{pl}' for the first release" if pl != '0' && relname.end_with?(".0")
|
||||
pl = relname[/-(.*)\z/, 1]
|
||||
curver = "#{v.join('.')}#{("-#{pl}" if pl)}"
|
||||
if relname != curver
|
||||
|
|
Loading…
Reference in a new issue