Markus Reiter
d552ff316d
Make PATH#validate
return nil
if empty.
2017-04-30 21:11:28 +02:00
Markus Reiter
cb1ac3f998
Don’t implement PATH#eql?
.
2017-04-30 21:11:27 +02:00
Markus Reiter
f8ad9d7efd
Use PATH
where possible.
2017-04-30 21:11:27 +02:00
Markus Reiter
314483f75c
Remove Array#to_path_s
.
2017-04-30 21:11:27 +02:00
Markus Reiter
a16746906d
Add PATH
class.
2017-04-30 21:11:27 +02:00
Markus Reiter
e221d0481a
Use to_path_s
in install_gem_setup_path!
.
2017-04-30 21:11:27 +02:00
Markus Reiter
3e4fe279b0
Use to_path_s
for determine_pkg_config_libdir
.
2017-04-30 21:11:27 +02:00
Mike McQuaid
0c9047a2b8
Merge pull request #2562 from DomT4/you_shall_not_pass_go_get
...
audit: formally ban go get usage
2017-04-30 13:32:22 +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
Markus Reiter
989a19b676
Update plist
to 3.3.0.
2017-04-28 20:51:07 +02:00
Dominyk Tiller
ed1ae19aee
audit_spec: test go get ban
2017-04-28 18:13:38 +01:00
Dominyk Tiller
2ad43cb1fd
audit: formally ban go get usage
...
There's been an informal ban for a while but let's
be punchier because this crops up still.
2017-04-28 17:38:01 +01:00
Mike McQuaid
1c9cfb2419
audit: tweak dependency option audit.
...
Make sure that `if build.with?` isn't caught.
2017-04-27 16:30:05 +01:00
Mike McQuaid
5c33355160
Merge pull request #2557 from MikeMcQuaid/tap-new-xcode-bump
...
tap-new: bump Xcode to 8.3.
2017-04-27 12:32:29 +01:00
Mike McQuaid
0cedb4db08
tap-new: bump Xcode to 8.3.
...
Update this to the current latest Travis CI supports (which we're using)
2017-04-27 08:56:46 +01:00
Mike McQuaid
9731f7a8c4
brew.sh: tweak macOS user agent again.
...
Safari uses `Mac OS X` not `OS X`. To avoid contaminating other parts of
Homebrew use a separate variable for just this part, too.
2017-04-27 08:53:57 +01:00
JCount
9427934aca
Merge pull request #2555 from MikeMcQuaid/user_agent_osx
...
brew.sh: use OS X in user agent rather than macOS.
2017-04-26 11:43:28 -04:00
Mike McQuaid
f02d7b93a7
brew.sh: use OS X in user agent rather than macOS.
...
This matches what Safari does on macOS 10.12 and is generally what
tools like Google Analytics expect the format to be.
2017-04-26 16:18:48 +01:00
Mike McQuaid
5647fdb2f9
audit: fix audit of new formulae.
...
When auditing new formulae without `--new-formula` the
`audit_revision_and_version_scheme` method fails ungracefully. Instead,
set some better defaults so fewer checks are needed.
Fixes #2551 .
2017-04-26 11:33:13 +01:00
Mike McQuaid
4971855e9b
software_spec: process macOS versions on Linux.
...
This module doesn't actually have any behaviour that's problematic at
runtime on Linux so we may as well use it to properly sort macOS
versions there.
2017-04-25 14:34:27 +01:00
Mike McQuaid
3589e24df0
tap: fix env typo.
2017-04-25 13:40:40 +01:00
Mike McQuaid
18c2713df4
formula_installer: improve install/upgrade message
...
If you `brew install` a formula that's already installed you get:
Warning: ripgrep-0.5.1 already installed
If you `brew install` an outdated formula that's installed you get:
Error: ripgrep-0.5.1 already installed. To install this version, first
`brew unlink ripgrep`
Instead, suggest that the user should `brew upgrade` in this case. If
the formula isn't outdated use the previous message.
2017-04-25 12:45:39 +01:00
Mike McQuaid
b2a291529d
audit: fix use of search_tap method.
...
This was removed in #2540 but this call site was note updated to use
the `search_taps` method instead.
2017-04-25 12:08:50 +01:00
Markus Reiter
133e5ddf6a
Remove unnecessary block.
2017-04-25 12:29:01 +02:00
Markus Reiter
4b804389e1
Add test for GitHub::search_code
.
2017-04-25 12:29:01 +02:00
Markus Reiter
238cd5430f
Add remote search to brew cask search
.
2017-04-25 12:29:01 +02:00
Markus Reiter
2bda194bd9
Add GitHub::search_code
method.
2017-04-25 12:29:01 +02:00
Mike McQuaid
a38133e5a1
Merge pull request #2545 from JCount/xcode-update-clt
...
xcode: update Sierra CLT version to 802.0.42
2017-04-25 11:18:12 +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
JCount
4b90f5fdc8
xcode: update Sierra CLT version to 802.0.42
2017-04-24 17:32:10 -04:00
Mike McQuaid
b3c69aba87
search: use single HTTP call for tap searches.
...
Use GitHub's code search API to search using the filename based on the
search query. This means we only need a single HTTP call and no more
multithreading madness. This also means we're able to search everything
in the Homebrew and Caskroom organisation by default without having to
maintain a list of things to search (and not) in here.
2017-04-24 14:11:04 +01:00
Mike McQuaid
6b0afa3e9c
Remove puts_hash, require pp
...
I wasn’t aware this existed when I created puts_hash so: may as well
remove it.
2017-04-24 11:45:32 +01:00
Mike McQuaid
ceb1629ad7
Merge pull request #2465 from GauthamGoli/audit_components_port_rubocop
...
audit: audit_components method to rubocops and tests
2017-04-24 10:06:41 +01:00
Mike McQuaid
cf01485318
Merge pull request #2534 from MikeMcQuaid/which_editor_args
...
utils: make which_editor handle editor args.
2017-04-24 10:02:45 +01:00
Mike McQuaid
5b14d731ba
Merge pull request #2490 from retokromer/patch-1
...
add date-based versioning
2017-04-24 08:52:53 +01:00
Mike McQuaid
3e40059f8d
utils: make which_editor handle editor args.
...
Handle cases like e.g. `EDITOR="subl -w"`.
2017-04-24 08:49:11 +01:00
Reto Kromer
3585dfd9bd
remove inner group
2017-04-23 20:59:02 +02:00
Reto Kromer
17aa90a2c5
remove inner uncaptured group
2017-04-23 20:52:40 +02:00
Mike McQuaid
d5155256ce
Fix audit version_scheme and revision checks.
...
Another attempt at fixing `brew audit` issues around detecting
`revision` and `version_scheme` changes correctly. First done in #1754
and #2086 (reverted in #2099 and #2100 ).
To ease future debugging a `ph` helper has been added to print a hash
and a series of RSpec tests to verify that the `revision`,
`version_scheme` and `version` formula version audits behave as
expected.
Fixes #1731 .
2017-04-23 18:56:22 +01:00
Mike McQuaid
45a7730f61
Fix and remove various TODOs.
...
Fix those that can be done so without tearing Homebrew to pieces and
remove the comments for those that can never be done.
2017-04-23 15:10:18 +01:00
Mike McQuaid
e7e53b89fc
global: set HOMEBREW_PATH if unset.
2017-04-23 11:40:53 +01:00
Mike McQuaid
11acadaa50
Merge pull request #2524 from MikeMcQuaid/more-env-filtering-fixes
...
Hide sensitive tokens from install/test/post.
2017-04-23 09:45:47 +01:00
Markus Reiter
cb17a80577
Merge pull request #2362 from joshka/install-uninstall-messages
...
Install uninstall messages
2017-04-23 02:40:52 +02:00
Mike McQuaid
64e2e6e862
super: re-add set_cpu_flags.
...
It's used by ENV.fortran.
Fixes https://github.com/Homebrew/brew/issues/2530
Fixes https://github.com/Homebrew/homebrew-science/issues/5485
2017-04-22 21:56:32 +01:00
Mike McQuaid
e8ef50d075
readall: fix tapping taps without aliases.
...
Fixes https://github.com/caskroom/homebrew-cask/issues/32840 .
Fixes https://github.com/Homebrew/brew/issues/2529 .
2017-04-22 21:43:45 +01:00
Markus Reiter
5bf0745ece
Merge pull request #2514 from reitermarkus/refactor-cask-metadata
...
Refactor cask metadata directory methods.
2017-04-22 22:01:53 +02:00
Mike McQuaid
1ceb420bdd
Merge pull request #2480 from MikeMcQuaid/no-tap-deprecate-taps
...
tap: warn on tapping deprecated, official taps.
2017-04-22 18:45:09 +01:00
Mike McQuaid
671de2acc6
Merge pull request #2528 from MikeMcQuaid/which_editor_fixes
...
utils: fix which_editor.
2017-04-22 18:44:37 +01:00
Mike McQuaid
a1b8d4179c
Merge pull request #2108 from MikeMcQuaid/readall-shadowed-aliases
...
readall: check for shadowed aliases.
2017-04-22 18:24:22 +01:00
Mike McQuaid
a937ed0a20
Merge pull request #2522 from MikeMcQuaid/more-deprecations
...
More deprecations.
2017-04-22 17:47:39 +01:00