mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
The PRE part of the rails version is a string or nil
This commit is contained in:
parent
d20eab85bf
commit
1deeaf5495
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ directory "dist"
|
|||
ruby = File.read(file)
|
||||
|
||||
major, minor, tiny, pre = version.split('.')
|
||||
pre ||= "nil"
|
||||
pre = pre ? pre.inspect : "nil"
|
||||
|
||||
ruby.gsub! /^(\s*)MAJOR = .*?$/, "\\1MAJOR = #{major}"
|
||||
raise "Could not insert MAJOR in #{file}" unless $1
|
||||
|
|
Loading…
Reference in a new issue