提交 db871c8d 编写于 作者: J Jeremy Kemper

Eliminate nil from newly generated logfiles. References #2927.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 fb3fc46c
*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.]
......
......@@ -192,7 +192,7 @@ def file(relative_source, relative_destination, file_options = {}, &block)
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 !~ /^#!/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册