Markus Reiter
c6c1eacc18
Rename enumeration
to comma_and
.
2018-07-01 18:48:28 +02:00
Markus Reiter
785750ee63
Add Tap#contents
methods.
2018-07-01 18:48:28 +02:00
Markus Reiter
2aa7597e70
Show tapped casks.
2018-07-01 18:48:28 +02:00
Markus Reiter
12ab263784
Remove Hbc.default_tap
.
2018-06-09 10:13:28 +02:00
Markus Reiter
50a43cf678
Reset repo_var
in clear_cache
.
2018-05-25 22:47:31 +02:00
Markus Reiter
54834ccbe3
Move repo_var
method to Tap
class.
2018-05-25 16:21:37 +02:00
Eli Young
8734848829
Support enabling auto-updates for non-GitHub taps
2018-04-24 11:10:48 -07:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Markus Reiter
94f2098c36
Only use HOMEBREW_TAP_PATH_REGEX
once inside Tap
class.
2018-03-29 22:05:02 +02:00
Mike McQuaid
70a9a67411
Don't use Linuxbrew/homebrew-core (yet, at least).
...
This can't be tapped on vanilla Homebrew/brew because things like e.g.
`GlibcRequirement` are missing. We will put this back when the Linuxbrew
to Homebrew migration is complete.
2018-03-16 19:30:18 +00:00
Mike McQuaid
c9f02aa3f7
tap: don’t tap deprecated taps.
...
These no longer have any files in them.
2018-01-28 19:07:01 +00:00
ilovezfs
17f80a44e6
Revert "Use Homebrew's gitconfig for various commands"
2018-01-15 07:30:56 +00:00
Mike McQuaid
228cbd81c9
Use Homebrew's gitconfig for various commands
...
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 .
2018-01-11 20:40:59 +00:00
Mike McQuaid
7a68b4a3f9
Refactor command handling code
...
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-11-05 15:37:57 +00:00
Shaun Jackman
f9d42659ea
pull: Fix pull --bottle 1234
...
Fix the error:
Error: undefined method `casecmp' for nil:NilClass
2017-10-22 08:52:16 -07:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Mike McQuaid
3a606abaa1
Merge pull request #3229 from BenMusch/check-for-master-no-refactor
...
doctor: Check for branch of core tap (take 2)
2017-10-18 10:59:59 +01:00
Dominyk Tiller
e98d0fda86
tap: pass explicit sort to handle APFS
2017-10-14 06:14:30 +01:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
Ben Muschol
2d6bd04007
Merge branch 'master' into check-for-master-no-refactor
2017-09-27 16:36:10 -04:00
Ben Muschol
fe5c885da0
Implement changes
2017-09-27 16:32:13 -04:00
Mike McQuaid
cf5fdeef1d
Rubocop: manual rule fixes.
2017-09-24 21:23:59 +01:00
Alyssa Ross
b6d36003b3
Always output when tapping core
...
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-09-07 12:12:22 +01:00
Markus Reiter
c26c9204fa
Merge pull request #2965 from reitermarkus/cask-tap
...
Detect `Tap` in `CaskLoader`.
2017-08-05 16:54:26 +02:00
Misty De Meo
1c3ece12b9
Tap.each: return an enumerable when no block given
2017-08-03 17:23:16 -07:00
Markus Reiter
6d6ce7cf0a
Detect Tap
in CaskLoader
.
2017-07-30 14:22:05 +02:00
Mike McQuaid
cd7e3cd39d
Merge pull request #2778 from jasonkarns/tap-full-name
...
refactor: DRY up redundant formulations of {#user}/homebrew-{#repo}
2017-06-19 15:46:48 +01:00
Jason Karns
c2899b6559
Tap learns to form its own full_name
...
full_name is formed from `{user}/homebrew-{repo}` and is always
lowercase.
2017-06-19 09:42:59 -04:00
Mike McQuaid
7a0aff1080
Autocorrect Rubocop Style/PerlBackrefs.
2017-06-10 20:23:20 +03:00
Mike McQuaid
3589e24df0
tap: fix env typo.
2017-04-25 13:40:40 +01:00
Mike McQuaid
228239af31
Allow forcing Homebrew GitHub organisation.
...
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-25 09:13:36 +01:00
Mike McQuaid
e04cb899ac
tap: warn on tapping deprecated, official taps.
...
They don't contain any formulae so tapping them will add pointless
clutter.
2017-04-22 16:53:48 +01:00
Mike McQuaid
ac10b2ab50
Tap: add from_path helper method.
...
This makes it easier to turn an arbitrary path into a tap path.
2017-03-20 18:20:31 +02:00
Markus Reiter
d1995dad4b
Use a Formulary
-like approach to load Casks.
2017-03-16 12:10:19 +01:00
Markus Reiter
c594ffefbc
Add Formatter::pluralize
.
2017-03-11 21:12:51 +01:00
Joshua McKinney
25396d9c4d
Install tap command completions and manpages
...
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.
2017-02-26 15:40:52 -06:00
Mike McQuaid
8f80cc6568
diagnostic: check for bad tap files.
...
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-12-13 01:53:05 +00:00
William Woodruff
d07b9ed7f2
Replace Utils::JSON with corelib JSON calls.
2016-11-20 20:06:25 -05:00
Mike McQuaid
1f963267b6
Update Rubocop style.
...
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-22 13:32:46 +01:00
Markus Reiter
23dec587fd
Make core_tap_version_string
reusable.
2016-10-04 14:45:11 +02:00
Markus Reiter
58e36c7319
Fix Style/GuardClause.
2016-09-24 12:24:35 +02:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
6693915399
rubocop --auto-correct all remaining files.
...
But remove some manual `.freeze`s on constants that shouldn't be
constants.
2016-09-17 16:14:13 +01:00
Markus Reiter
89a63fb177
Add cask_files
method to Tap
class.
2016-09-05 21:43:03 +02:00
Mike McQuaid
03352805c6
tap: use utils link_path_manpages.
2016-08-24 11:06:58 +01:00
Markus Reiter
0dd3203187
Install Cask’s default tap if untapped.
2016-08-20 07:02:23 +02:00
Mike McQuaid
9d8c4e6279
tap: allow Homebrew developers to tap broken taps.
2016-08-08 10:55:02 +01:00
Anastasia Sulyagina
4338f35b84
tap: add cask methods.
2016-08-04 11:37:37 +01:00
Mike McQuaid
a6033529cf
Revert "tap: add cask methods."
...
This reverts commit 05daa0574732a7884bd158b2c3e14bd0709367da.
2016-08-02 14:11:40 +01:00
AnastasiaSulyagina
05daa05747
tap: add cask methods.
...
Closes #562 .
2016-08-02 13:44:19 +01:00