Gautham Goli
48aecf2fa7
cli_parser: Refactor required argument for flag to '='
2018-04-14 19:04:24 +05:30
Gautham Goli
d22b750e17
Store common switch as Homebrew.args
global var
2018-04-10 00:00:35 +05:30
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Gautham Goli
74baf04ad3
pull: Use Parser to parse args
2018-03-25 21:14:03 +05:30
Shaun Jackman
3f8dd656d3
publish_bottle_file_on_bintray: Use f.full_name
2018-01-16 10:41:41 -08:00
Mike McQuaid
fb6cf0c3f8
More environment filtering fixes
...
- Make `brew pull` pass through Git environment variables
- Whitelist all `TRAVIS_` variables.
2017-11-27 10:48:03 +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
Shaun Jackman
3ee3b78fbd
pull: Move test_bot_user to a new module GitHub
...
Address the style issue:
C: Module has too many lines. [364/360]
2017-10-17 17:11:26 -07:00
Shaun Jackman
9cd4fff051
pull: Add --test-bot-user
...
Infer the name of the test-bot GitHub user if it is not provided.
2017-10-17 16:53:12 -07:00
Shaun Jackman
76021db602
pull: Add --bintray-org
...
Infer the name of the Bintray organization if it's not provided.
2017-10-17 16:53:12 -07:00
Viktor Szakats
811f5fd145
pull: fix bintray verification failing due to redirection
2017-10-10 13:35:49 +00:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
Mike McQuaid
cf5fdeef1d
Rubocop: manual rule fixes.
2017-09-24 21:23:59 +01:00
Mike McQuaid
01e9ec9a9f
Rubocop: automatic rule fixes.
2017-09-24 21:23:59 +01:00
Markus Reiter
15e572702e
Fix pull
.
2017-08-21 22:41:13 +02:00
Markus Reiter
ae4bafdb36
Simplify CurlDownloadStrategy.
2017-08-08 18:10:13 +02:00
ilovezfs
986887b413
Revert "Refactor SVN and cURL download strategies."
2017-08-07 14:31:56 -07:00
Markus Reiter
dc5a2c1764
Simplify CurlDownloadStrategy.
2017-08-07 21:31:17 +02:00
Mike McQuaid
ed9942fbd1
Merge pull request #2769 from MikeMcQuaid/rubocop-no-perl-backrefs
...
rubocop: don’t allow Perl regex backrefs.
2017-06-12 16:47:28 +01:00
Mike McQuaid
021cef4b2b
Autocorrect Rubocop Style/SpecialGlobalVars.
2017-06-12 09:11:42 +01:00
Mike McQuaid
7a0aff1080
Autocorrect Rubocop Style/PerlBackrefs.
2017-06-10 20:23:20 +03:00
Mike McQuaid
9032574038
Update jenkins.brew.sh links.
...
These previously, incorrectly pointed to bot.brew.sh.
Fixes #2703 .
2017-05-30 19:14:40 +01:00
Zhiming Wang
7a75de7cb1
pull: fix status code check in check_bintray_mirror
...
The status code of the last redirect should be 2xx to be deemed successful.
2017-04-29 19:30:19 -04:00
Mike McQuaid
d02b4f321d
Hide sensitive tokens from install/test/post.
...
Hide these tokens to avoid malicious subprocesses e.g. sending them
over the network. Also, support using these tokens with environment
filtering and clear `HOMEBREW_PATH` from subprocesses to stop them
sniffing it. Finally, use `HOMEBREW_PATH` to detect Homebrew’s user’s
PATH for e.g. `brew doctor` etc.
2017-04-22 16:31:19 +01:00
Mike McQuaid
e723131438
pull: optionally warn (not die) on bottle publish failure.
...
This is useful when you're pulling PRs where individual bottles can't be
uploaded/built but you still want to pull the PR as a whole anyway.
2017-03-23 10:00:33 +00:00
Viktor Szakats
cc8f029f22
secure urls + remove -k from in-doc curl command
2017-03-14 17:27:11 +00:00
Zhiming Wang
10a235d6ab
pull: check Bintray mirror URLs
2017-03-07 20:45:08 -05:00
EricFromCanada
6cb5629737
Work around man page generator bug for pull.rb
...
To work around ronn's [issue with nested
lists](https://github.com/rtomayko/ronn/issues/35 ), treat each item as
a separate paragraph with alternate list markers.
2017-02-25 17:27:08 -05:00
ilovezfs
79280826f5
pull: fix false positives for nonstandard bump subjects when untapped
...
If the formula's tap isn't tapped yet when running `brew pull`, a false
positive occurs for the nonstandard bump subject check, and a bogus
warning is printed, which claims the bump subject should refer to the
old version not the new version.
2017-02-08 00:58:20 -08:00
Mike McQuaid
eff70115b5
pull: better handle missing bottles.
...
If we make a PR in which we're building many formulae (e.g.
https://github.com/Homebrew/homebrew-core/pull/9249 ) then we may want
to pull those that built and publish their bottles and discard those
that did not. Instead of saying bottles will be published when they
won't and then blowing up just avoid publishing them and print a warning
instead.
2017-01-27 09:36:47 +00:00
William Woodruff
d07b9ed7f2
Replace Utils::JSON with corelib JSON calls.
2016-11-20 20:06:25 -05:00
Markus Reiter
c36f42ce95
Remove private_class_method
from commands.
2016-10-02 00:24:47 +02:00
Markus Reiter
0ab750bf24
Use module_function
for commands.
2016-10-02 00:24:47 +02:00
Markus Reiter
58e36c7319
Fix Style/GuardClause.
2016-09-24 12:24:35 +02:00
Markus Reiter
fe2d51e0b9
Fix Style/IfUnlessModifier.
2016-09-23 15:30:07 +02:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
f1c64f1cdc
dev-cmd/pull: fix Rubocop warnings.
2016-09-11 19:14:55 +01:00
Mike McQuaid
86bfd36af2
Don't hide some (now) developer commands.
2016-09-08 20:46:37 +01:00
Mike McQuaid
af8605ea4b
Move developer-focused commands to dev-cmd.
2016-09-08 20:46:37 +01:00