sprockets
https://github.com/rails/sprockets
Ruby
Rack-based asset packaging system
Sprockets::URITar#compressed_path
Internal: Returns "compressed" path If the input uri is relative to the environment root it will return a path relative to the environment root. Otherwise an absolute path will be returned. Only path information is returned, and not scheme. Returns String
Edit
git clone [email protected]:rails/sprockets.git
cd sprockets
open lib/sprockets/uri_tar.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Sprockets--URITar-compressed_path-for-pr
# Commit to gitgit add lib/sprockets/uri_tar.rbgit commit -m "better docs for Sprockets::URITar#compressed_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--URITar-compressed_path-for-pr
hub pull-request
# Celebrate!