aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tap.rb
AgeCommit message (Collapse)Author
2016-04-05CoreTap#install: fix clone target settingXu Cheng
When invoking `brew tap homebrew/core`, the input options will be like `{ :clone_target => nil }`. This renders `Hash#merge` a dead operation. It doesn't impact Homebrew itself, but could cause problem for downstream projects Linxubrew/Tigerbrew when they adopt core/formula separation.
2016-04-02various: Homebrew/core is the core tapXu Cheng
Also make `Homebrew/homebrew` as an alias of this tap to keep backward compatibility.
2016-04-02introduce `Homebrew/core` tap as new default core tap.Xu Cheng
It will be auto installed whenever necessary.
2016-03-31Tap#install: set autocrlf to falseXu Cheng
Ensure we don't munge line endings on checkout regardless with user's global git config. Closes Homebrew/homebrew#50514. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-23tap: cache dir path to avoid duplicated Pathname operationsXu Cheng
As discovered in Homebrew/homebrew#50256, this becomes a performance bottleneck as we are repeating construct same Pathname object. At the same, this commit makes the behaviors between Tap and CoreTap more consistence.
2016-03-07rename CoreFormulaRepository to CoreTapXu Cheng
Core tap will be separated from core code in the near future. It makes sense to rename it to CoreTap.
2016-03-06tap: add methods to get git related informationXu Cheng
These methods will be used in `brew --version`, `brew config` and `brew doctor` after core/formula separation. Closes Homebrew/homebrew#49796. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-26Tap#install: support quiet optionXu Cheng
2016-02-25add Tap#tap_migrationsXu Cheng
This enables tap migration feature in per tap case, which will ultimately help core/formula separation.
2016-02-16add Tap#formula_file?Xu Cheng
Return true if given path would present a Formula file in this Tap. Accepts both absolute path and relative path (relative to this Tap's path) It offer an abstraction such that caller would not need to worry about low level file system in the tap. It will be used in `brew pull` and `brew update`. Closes Homebrew/homebrew#49191. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-02-07Tap: clear_cache for Tap#(un)installXu Cheng
If a tap is installed during the installation, the original cache need to be purged. Otherwise, it will return wrong information afterwards. Closes Homebrew/homebrew#48887. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17Tap: allow invoking formula_file_to_name by Homebrew internallyXu Cheng
2016-01-04tap: require string extensionsMisty De Meo
Fixes Homebrew/homebrew#47684.
2015-12-30Tap#issues_url addedBaptiste Fontaine
Closes Homebrew/homebrew#47454. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-19Tap#unlink_manpages: fix symlink pathXu Cheng
2015-12-19Tap#unpin: remove PinnedTaps directory if it's emptyXu Cheng
2015-12-19move CoreFormulaRepository into separate fileXu Cheng
For users whose local brew is at around 2015-06-11 to 2015-08-06, running `brew update` will emit following error: Error: uninitialized constant Formulary::CoreFormulaRepository This is caused by the same bug described in Homebrew/homebrew#42553. This commit workarounds this issue and restores `brew update` compatibility for users mentioned above. Also cleanup legacy `require "cmd/tap"`.
2015-12-09Allow taps to link manpages.Mike McQuaid
A blocker for https://github.com/caskroom/homebrew-cask/pull/15381 being merged. Closes Homebrew/homebrew#46795.
2015-12-09Tap#==: allow compare with stringXu Cheng
2015-12-09add Tap#core_formula_repository?Xu Cheng
2015-12-09add CoreFormulaRepository singleton classXu Cheng
2015-12-09Tap: add formula_file_to_name and alias_file_to_nameXu Cheng
2015-12-09add Tap#alias_dirXu Cheng
2015-12-09add Tap#formula_dirXu Cheng
2015-12-09Tap: use method instead of variableXu Cheng
2015-12-03centralize the logic of handling `homebrew-` in Tap.fetchXu Cheng
Closes Homebrew/homebrew#46537. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-09add Tap#install and Tap#uninstallXu Cheng
2015-11-09tap: add more documentXu Cheng
2015-10-14add alias_table and alias_reverse_table for core and tapXu Cheng
2015-09-30cache tapsXu Cheng
There are plenty of IO operations inside Tap object, and it will be more when implementing formula alias reverse look up(e.g. list all of alias names for a formula). So let's cache them. Some benchmark: $ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null Before: 6.40s user 2.42s system 96% cpu 9.134 total After: 4.75s user 0.77s system 97% cpu 5.637 total Closes Homebrew/homebrew#44377. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-13Tap#aliases: output fully-qualified nameXu Cheng
2015-09-13Tap: add alias methodXu Cheng
2015-08-13tap-info: fix for not installed tapXu Cheng
Closes Homebrew/homebrew#42890. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-10tap: add formula_renamesVlad Shablinsky
- Tap#formula_renames is a method used for getting information about renames in tap formulae.
2015-08-10implement pinning of tapsCNA-Bld
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-30Tap: allow enumerate non-git tapsXu Cheng
Also add a `Tap#git?` method to indicate whether the tap is a git repository. Closes Homebrew/homebrew#42264. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-14remove incorrect tag for Tap documentXu Cheng
2015-06-14document Tap classXu Cheng
Closes Homebrew/homebrew#40608. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-14Tap: make remote a separate method to reduce initial overheadXu Cheng
Also make remote method only response to installed tap.
2015-06-11tap: taps don't need to be Git repositories.Mike McQuaid
For example e.g. Boxen uses just a managed directory and puts formulae into it.
2015-06-11add Tap classXu Cheng