This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate the asset hash for a file based on its built contents, not t…
…he static contents from sprockets.
- Loading branch information
c7babb6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit implicitly adds a dependency on Sprockets 3, which added the
DigestUtils
class. I think we'll be better off by duplicating the method, ie:WDYT? I could open a PR if it looks good.
c7babb6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
This is breaking asset pre-compilation with Sprockets 2 which will force me to either use requirejs-rails 0.9.5 or do a careful migration and possibly painful to Sprockets 3.
@agis- solution seems like the way to go, but otherwise at least add an explicit dependency on the new Sprockets version
c7babb6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bteixeira IIRC there are more commits that break compatibility with Sprockets 3; those introduced in #217.
If you're going to use 0.9.5 (which works with Sprockets 2) and use a custom manifest file, you probably want to use this fork: https://github.com/skroutz/requirejs-rails.