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
1 changed files with 1 additions and 1 deletions

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