class Sprockets::AssetAttributes
def path_fingerprint
# => "0aa2105d29558f3eb790d411d7d8fb66"
"foo-0aa2105d29558f3eb790d411d7d8fb66.js"
Gets digest fingerprint.
def path_fingerprint pathname.basename(extensions.join).to_s =~ /-([0-9a-f]{7,40})$/ ? $1 : nil end