1
0
Fork 0
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:
Carl Lerche 2010-11-16 17:22:29 -08:00
parent d20eab85bf
commit 1deeaf5495

View file

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