sikachu / sprockets-redirect

A Rack middleware for Rails >= 3.1.0 with asset pipeline and asset digest enabled. This middleware is used to redirect any request to static asset without a digest to the version with digest in its filename by reading the assets manifest file generated after you run `rake assets:precompile`
http://rubygems.org/gems/sprockets-redirect
MIT License
72 stars 26 forks source link

Update for rails 4 support #1

Closed Intrepidd closed 10 years ago

sikachu commented 11 years ago

Thank you. I'm looking into merging this soon.

scottillogical commented 11 years ago

this doesn't appear to work for me on rails 4..not sure why

turlockmike commented 11 years ago

By default, the manifest file is now a json file and it also is digested. I'm working on a fix to handle this situation, but was curious if you had noticed any issues with this.

sikachu commented 10 years ago

I didn't merge this in, as I found out that you can ask Sprockets for digest path, so I went with that instead. Also, I added integration test for it.

Please try 0.2.0 and see if it works for you.