aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tap.rb
AgeCommit message (Collapse)Author
2018-01-28tap: don’t tap deprecated taps.Mike McQuaid
These no longer have any files in them.
2018-01-15Revert "Use Homebrew's gitconfig for various commands"ilovezfs
2018-01-11Use Homebrew's gitconfig for various commandsMike McQuaid
Git is a transport and storage mechanism for us so we don't want to allow arbitrary customisation of this due to user issues e.g. #3664 and #3561. Fixes #3664.
2017-11-05Refactor command handling codeMike McQuaid
Don’t rely on having external commands always present in the PATH in order to find them. Instead, provide an accessory method to Tap so they can be added and used when needed. While we’re here, do some general refactoring and cleanup of the command code in these places.
2017-10-22pull: Fix pull --bottle 1234Shaun Jackman
Fix the error: Error: undefined method `casecmp' for nil:NilClass
2017-10-18Use “squiggly” heredocs.Markus Reiter
2017-10-18Merge pull request #3229 from BenMusch/check-for-master-no-refactorMike McQuaid
doctor: Check for branch of core tap (take 2)
2017-10-14tap: pass explicit sort to handle APFSDominyk Tiller
2017-10-08Clean up code style and remove `.rubocop_todo.yml`.Markus Reiter
2017-09-27Merge branch 'master' into check-for-master-no-refactorBen Muschol
2017-09-27Implement changesBen Muschol
2017-09-24Rubocop: manual rule fixes.Mike McQuaid
2017-09-07Always output when tapping coreAlyssa Ross
Hiding all output makes it look like Homebrew is hanging while the tap operation (which can take a long time!) is running. Closes #3053.
2017-08-05Merge pull request #2965 from reitermarkus/cask-tapMarkus Reiter
Detect `Tap` in `CaskLoader`.
2017-08-03Tap.each: return an enumerable when no block givenMisty De Meo
2017-07-30Detect `Tap` in `CaskLoader`.Markus Reiter
2017-06-19Merge pull request #2778 from jasonkarns/tap-full-nameMike McQuaid
refactor: DRY up redundant formulations of {#user}/homebrew-{#repo}
2017-06-19Tap learns to form its own full_nameJason Karns
full_name is formed from `{user}/homebrew-{repo}` and is always lowercase.
2017-06-10Autocorrect Rubocop Style/PerlBackrefs.Mike McQuaid
2017-04-25tap: fix env typo.Mike McQuaid
2017-04-25Allow forcing Homebrew GitHub organisation.Mike McQuaid
On Linux this defaults to Linuxbrew but in some cases (i.e. a Linux machine performing uploads for Homebrew) we want to allow this to be overridden back to the defaults. Relies on a change incoming to `brew test-bot` to set this there.
2017-04-22tap: warn on tapping deprecated, official taps.Mike McQuaid
They don't contain any formulae so tapping them will add pointless clutter.
2017-03-20Tap: add from_path helper method.Mike McQuaid
This makes it easier to turn an arbitrary path into a tap path.
2017-03-16Use a `Formulary`-like approach to load Casks.Markus Reiter
2017-03-11Add `Formatter::pluralize`.Markus Reiter
2017-02-26Install tap command completions and manpagesJoshua McKinney
Taps can include completion scripts for external commands under `completions/bash`, `completions/fish`, or `completions/zsh`. `brew tap` will automatically install these into the correct directories during install.
2016-12-13diagnostic: check for bad tap files.Mike McQuaid
Check for Ruby files in taps that are outside of the detected `Formula` directory for a tap but inside one of the other potential directories. This usually indicates a formula has been added in the wrong directory in a tap and is used to fail CI in this case.
2016-11-20Replace Utils::JSON with corelib JSON calls.William Woodruff
2016-10-22Update Rubocop style.Mike McQuaid
Another look at the current Rubocop rules and how they fit with our existing and desired future style. Almost all of these changes were automatic. Split some rules between formulae/brew where brew doesn't have millions of cases that need fixed.
2016-10-04Make `core_tap_version_string` reusable.Markus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-17rubocop --auto-correct all remaining files.Mike McQuaid
But remove some manual `.freeze`s on constants that shouldn't be constants.
2016-09-05Add `cask_files` method to `Tap` class.Markus Reiter
2016-08-24tap: use utils link_path_manpages.Mike McQuaid
2016-08-20Install Cask’s default tap if untapped.Markus Reiter
2016-08-08tap: allow Homebrew developers to tap broken taps.Mike McQuaid
2016-08-04tap: add cask methods.Anastasia Sulyagina
2016-08-02Revert "tap: add cask methods."Mike McQuaid
This reverts commit 05daa0574732a7884bd158b2c3e14bd0709367da.
2016-08-02tap: add cask methods.AnastasiaSulyagina
Closes #562.
2016-07-27tap: more thoroughly validate tap namesMartin Afanasjew
`Tap.fetch` and commands building on top of it accepted tap names like `homebrew/homebrew/bogus` causing some misbehavior. Ensure neither `user` nor `repo` include slashes and print a more helpful error message that additionally includes the problematic tap name. Closes #585. Closes #591. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-07-10tap-info: expose whether a tap is privateMartin Afanasjew
Or how many taps are private when summarizing all installed taps.
2016-07-09tap: run readall when tapping. (#396)Mike McQuaid
* readall: move readall logic to new class. * tap: run readall when tapping. This will prevent tapping an tap with syntax errors from causing issues for users. Fixes #58.
2016-07-07Use GitRepositoryExtension for 'path' in TapMartin Afanasjew
Closes #464. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-06-20tap: --config unsupported on old Gits.Mike McQuaid
2016-04-19add Tap#default_remoteXu Cheng
* without `default_remote`, `CoreTap#install` won't be able to tell whether user has passed to custom remote to it. * simplify some part of logics
2016-04-19Tap#install: better TapRemoteMismatchError checkXu Cheng
* remote check requires `git` installed. * Do not perform check if user does not passing remote explicitly. Fixes #108
2016-04-12tap: various improvements (#77)Xu Cheng
* make `read_or_set_private_config` private * add doc * add test
2016-04-12Cache `Tap#private?` checks.Mike McQuaid
Use both an in-class and a `.git/config` cache for this so we can ensure that the `Tap#private?` check is fast. Also, make sure this cache value is set both when initially installing and updating a tap. Thanks to @xu-cheng for most of the implementation here.
2016-04-05tap: support --full even if installedilovezfs
Makes `tap` re-runnable and unshallows when requested with `--full`. Tapping with a different URL raises an exception. The homebrew/core tap cannot be untapped with `untap` so running `brew tap --full homebrew/core` is now a built-in way to get a full clone of this tap without resorting to workarounds. Closes #17. Signed-off-by: ilovezfs <ilovezfs@icloud.com>