thumblemonks / smurf

Rails plugin to automatically minify JavaScript and CSS when their bundles get cached
http://gusg.us/code/ruby/smurf-rails-autominifying-js-css-plugin.html
MIT License
193 stars 12 forks source link

Fixing single-line comments at EOF #18

Closed fredjean closed 13 years ago

fredjean commented 13 years ago

The JavaScript minifier shouldn't crash when a single line comment is present at the end of a file without an EOL character.

This fix prevents an # (ArgumentError) "comparison of Fixnum with String failed" error when a developer puts a single line comment at the end of a file without adding an EOL.

gus commented 13 years ago

Thanks!