Eliminate nil from newly generated logfiles. References #2927.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
Jeremy Kemper
2005-11-18 05:28:00 +00:00
parent fb3fc46cdd
commit db871c8d54
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
*SVN*
* Eliminate nil from newly generated logfiles. #2927 [Blair Zajac <blair@orcaware.com>]
* Update to Prototype 1.4.0_rc3. Closes #1893, #2505, #2550, #2748, #2783. [Sam Stephenson]
* Rename Version constant to VERSION. #2802 [Marcel Molina Jr.]

View File

@@ -192,7 +192,7 @@ module Rails
if block_given?
df.write(yield(sf))
else
line = sf.gets
line = sf.gets || ''
if file_options[:shebang]
df.puts("#!#{file_options[:shebang]}")
df.puts(line) if line !~ /^#!/