mirror of
https://github.com/github/rails.git
synced 2026-01-09 14:48:08 -05:00
The PRE part of the rails version is a string or nil
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user