brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Formulary.from_keg
Return a Formula instance for the given keg. It will auto resolve formula's spec when requested spec is nil
Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/formulary.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Formulary-from_keg-for-pr
# Commit to gitgit add Library/Homebrew/formulary.rbgit commit -m "better docs for Formulary.from_keg"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Formulary-from_keg-for-pr
hub pull-request
# Celebrate!