documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Fixed encoding problems on ruby 1.9.2 #82

Closed mikz closed 13 years ago

mikz commented 13 years ago

I've fixed problem when some files were treated like binary where some not. Now all files should be read with function @read_binary_file@ which reads them as binary. I wanted to create tests, but I've figured out that I would need to regenerate compressed fixtures if i change something. So failing test would be something like this:

@compressor.compress_js 'test/fixtures/utf8_characters.js', 'test/fixtures/*.jst'

This would throw exception before this fix.

jashkenas commented 13 years ago

Thanks for this -- it's merged into master. Closing the ticket.