sprockets

https://github.com/rails/sprockets

Ruby

Rack-based asset packaging system

Sprockets::Bundle.dedup

Internal: Removes uri from required if it's already included as an alias.

required - Set of required uris

Returns deduped set of uris

Source | Google | Stack overflow

Edit

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

cd sprockets

open lib/sprockets/bundle.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sprockets--Bundle-dedup-for-pr


# Commit to git

git add lib/sprockets/bundle.rbgit commit -m "better docs for Sprockets::Bundle.dedup"


# 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--Bundle-dedup-for-pr

hub pull-request


# Celebrate!