sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::ManifestUtils#generate_manifest_path
Public: Generate a new random manifest path. Manifests are not intended to be accessed publicly, but typically live alongside public assets for convenience. To avoid being served, the filename is prefixed with a "." which is usually hidden by web servers like Apache. To help in other environments that may not control this, a random hex string is appended to the filename to prevent people from guessing the location. If directory indexes are enabled on the server, all bets are off. Return String path.
Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/manifest_utils.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--ManifestUtils-generate_manifest_path-for-pr
# Commit to gitgit add lib/sprockets/manifest_utils.rbgit commit -m "better docs for Sprockets::ManifestUtils#generate_manifest_path"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Sprockets--ManifestUtils-generate_manifest_path-for-pr
hub pull-request
# Celebrate!