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.

Source | Google | Stack overflow

Edit

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

cd sprockets

open lib/sprockets/manifest_utils.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--ManifestUtils-generate_manifest_path-for-pr


# Commit to git

git add lib/sprockets/manifest_utils.rbgit commit -m "better docs for Sprockets::ManifestUtils#generate_manifest_path"


# 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--ManifestUtils-generate_manifest_path-for-pr

hub pull-request


# Celebrate!