提交 1deeaf54 编写于 作者: C Carl Lerche

The PRE part of the rails version is a string or nil

上级 d20eab85
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
ruby = File.read(file) ruby = File.read(file)
major, minor, tiny, pre = version.split('.') major, minor, tiny, pre = version.split('.')
pre ||= "nil" pre = pre ? pre.inspect : "nil"
ruby.gsub! /^(\s*)MAJOR = .*?$/, "\\1MAJOR = #{major}" ruby.gsub! /^(\s*)MAJOR = .*?$/, "\\1MAJOR = #{major}"
raise "Could not insert MAJOR in #{file}" unless $1 raise "Could not insert MAJOR in #{file}" unless $1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册