Bugs: Browse | Submit New | Admin

[#28337] ** Erubis 2.6.6 line printed out for many rake tasks

Date:
2010-06-29 16:46
Priority:
3
Submitted By:
Adam Stegman (adamstegman)
Assigned To:
Nobody (None)
Category:
Interface (example)
State:
Open
Summary:
** Erubis 2.6.6 line printed out for many rake tasks

Detailed description
lib/erubis/helpers/rails_helper.rb:353
> $stdout.puts "** Erubis #{::Erubis::VERSION}" if rails22
seems unnecessary. Why is it there? It prints out "** Erubis 2.6.6" for many rake tasks.

Here's a patch to remove it. After removal, the version is still logged, if it's at all desirable.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-01-17 06:52
Sender: Will Bryant

This is a big enough problem for us to not switch our application
to erubis.  There's no way for us to turn this message off, and
it breaks all our application scripts which we run to produce
output files - now there'd be junk at the start.  It also results
in hundreds of annoying messages from cron when it runs the scripts
that load erubis and rails.

+1 for removal.  The patch works for me.
Date: 2010-12-10 02:34
Sender: Glenn Rempe

+1 for removal.  I submitted a bug to the erubis_rails_helper
repo and the following commit was made there.  I assume that
is the upstream repository for this?  Not sure.

Bug Report detailing the issue:
https://github.com/elkinsware/erubis_rails_helper/issues/closed#i
ssue/1

Commit:
https://github.com/elkinsware/erubis_rails_helper/commit/5af96b8f
57a981c5144d247dbe6981f1efbd0c5a

Thank you.

Attached Files:

Name Description Download
erubis-stdout-version.patch patch to remove erubis version from stdout in rails_helper.rb Download

Changes:

Field Old Value Date By
File Added4964: erubis-stdout-version.patch2010-06-29 16:46adamstegman