The PRE part of the rails version is a string or nil
This commit is contained in:
parent
d20eab85bf
commit
1deeaf5495
@ -24,7 +24,7 @@
|
||||
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 New Issue
Block a user