sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::Manifest#files

Returns internal file directory listing. Keys are filenames
which map to an attributes array.

  Fingerprint path (String):
    logical_path: Logical path (String)
    mtime: ISO8601 mtime (String)
    digest: Base64 hex digest (String)

 { "application-2e8e9a7c6b0aafa0c9bdeec90ea30213.js" =>
     { 'logical_path' => "application.js",
       'mtime' => "2011-12-13T21:47:08-06:00",
       'digest' => "2e8e9a7c6b0aafa0c9bdeec90ea30213" } }

Source | Google | Stack overflow

Edit

git clone [email protected]:rails/sprockets.git

cd sprockets

open lib/sprockets/manifest.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--Manifest-files-for-pr


# Commit to git

git add lib/sprockets/manifest.rbgit commit -m "better docs for Sprockets::Manifest#files"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Sprockets--Manifest-files-for-pr

hub pull-request


# Celebrate!