sprockets-rails
sprockets-rails copied to clipboard
3.6 to 3.7 causes Encoding Error
Updating from 3.6.0. to 3.7.0 caused my app to crash on an Encoding Error. The Gemfile.lock attached is working because I reset sprockets back to 3.6.0. If you update it to 3.7.0 you get the error. Error is on all pages. This is a simple static home page that is failing in this example.
I can't tell where in all the gems and bower files the encoding is breaking (if its in them at all) so I attached the bower listing so you can see what I am using. Not enough info in the server output for me to debug. Remove the stylesheet command and it moves to another line.

After much adding and subtracting it seems like via bower bootstrap-formhelpers#2.3.0 was installing as a dependency bootstrap 3.0.0. Removing bootstrap from the directory stopped the problem. Didn't seem to matter that that particular version of bootstrap was not being used in the stylesheets directly; having in the bower directory was enough to kill the app.
I can see in some ways this is not sprockets fault to have an old version loaded in but then again it should not have died such a tragic death. Issue then is to fail gracefully and not totally kill the Rails app over this.
Have posted an issue to bootstrap-formhelpers but it looks like that project is abandoned and thus I do not expect them to offer a fix.