Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the gem is not working #16

Closed
rubyconvict opened this issue Mar 25, 2014 · 1 comment
Closed

the gem is not working #16

rubyconvict opened this issue Mar 25, 2014 · 1 comment

Comments

@rubyconvict
Copy link

I am using this NonStupidDigestAssets.whitelist = [/images/.*/], and i checked, it should work, I have files there, but nothing happens, like the gem didn't even affect sprockets.

   rails (4.0.4)
    (...)
    sprockets (2.11.0)
      hike (~> 1.2)
      multi_json (~> 1.0)
      rack (~> 1.0)
      tilt (~> 1.1, != 1.3.0)
    sprockets-rails (2.0.1)
      actionpack (>= 3.0)
      activesupport (>= 3.0)
      sprockets (~> 2.8)
    therubyracer (0.12.1)
      libv8 (~> 3.16.14.0)
      ref

I tried this rake task:

https://github.com/rails/sprockets-rails/issues/49#issuecomment-20535134

which is great, but it gem like this is nicer.

@alexspeller
Copy link
Owner

the regex operates on the logical path of the assets, which will not contain "images" for assets in the image directory. For an asset at "/assets/foo.png" the logical path is "foo.png".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants