Skip to content

Commit

Permalink
The PRE part of the rails version is a string or nil
Browse files Browse the repository at this point in the history
  • Loading branch information
carllerche committed Nov 17, 2010
1 parent d20eab8 commit 1deeaf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/release.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1deeaf5

Please sign in to comment.