16410 Commits

Author SHA1 Message Date
Alexander Regueiro
68047abc0e audit: ignore group write bit 2020-03-05 23:01:41 +00:00
EricFromCanada
b75b39097d update: highlight currently-installed casks 2020-03-05 11:26:55 -05:00
Mike McQuaid
67d7697165
Merge pull request #7120 from MikeMcQuaid/args-tweaks
cli/parser: add and use more helpers.
2020-03-05 12:21:24 +00:00
Mike McQuaid
e3ac94fc5d
dev-cmd: use more and cleanup new args APIs. 2020-03-05 09:40:15 +00:00
Mike McQuaid
a7fe0ed847
cmd: use more and cleanup new args APIs. 2020-03-05 09:40:15 +00:00
Mike McQuaid
42477a1aaa
Merge pull request #7125 from Bo98/make-regex
extend/string: match multiline make variables
2020-03-05 09:29:52 +00:00
Mike McQuaid
677e6c972a
Merge pull request #7123 from dawidd6/resource-build-and-test
dependency_collector: make resource dep available at test-time too
2020-03-05 09:29:17 +00:00
Mike McQuaid
ad32d387e9
exceptions: fix case for UsageError subclasses. 2020-03-05 09:25:14 +00:00
Mike McQuaid
495daf0aee
extend/ARGV: remove/private unused methods. 2020-03-05 09:25:14 +00:00
Mike McQuaid
66155ea370
cli/parser: add named/min_named helpers. 2020-03-05 09:25:14 +00:00
Bo Anderson
d0896d641a extend/string: match multiline make variables 2020-03-05 04:11:35 +00:00
Dawid Dziurla
59ce122e90
dependency_collector: make resource dep available at test-time too
There are formulae that use resource blocks for stuff that is needed in
test blocks. If a resource is a `.zip` archive, one needs `unzip`
utility in `PATH` to extract it, but its only available at build-time,
so one observes an error like that for example:

```
==> brew test psftools --verbose
Testing psftools
==> Downloading https://www.zone38.net/font/pc8x8.zip
Already downloaded: /github/home/.cache/Homebrew/downloads/ea5f6a485687368ff5bc99e4cc43a49b06e081baa51a97ee6ddcd8d1b82d7963--pc8x8.zip
==> Verifying ea5f6a485687368ff5bc99e4cc43a49b06e081baa51a97ee6ddcd8d1b82d7963--pc8x8.zip checksum
unzip -o /github/home/.cache/Homebrew/downloads/ea5f6a485687368ff5bc99e4cc43a49b06e081baa51a97ee6ddcd8d1b82d7963--pc8x8.zip -d /tmp/d20200304-21389-ui0wr0
Error: psftools: failed
undefined method `shelljoin' for nil:NilClass
```

Of course this issue affects Linux the most, because of higher
probability that the system lacks `unzip` for example.

With this commit, all resource guessed dependencies should be available
at build and test time.
2020-03-04 22:49:54 +01:00
Mike McQuaid
f13b0513ea
cli/parser: avoid using remaining. 2020-03-04 17:27:01 +00:00
Mike McQuaid
4d9e117430
args: avoid using remaining. 2020-03-04 17:26:38 +00:00
Mike McQuaid
2bf990bb29
cli/args: add no_named? helper. 2020-03-04 17:26:15 +00:00
Peter Teixeira
7ccec0cdf0 Use literal "python" 2020-03-04 10:13:32 -05:00
Mike McQuaid
46a56d0462
Merge pull request #7117 from MikeMcQuaid/uninstall-handle-more-exceptions
keg: handle more exceptions on uninstall.
2020-03-04 14:36:11 +00:00
Mike McQuaid
b4b17fa892
keg: handle more exceptions on uninstall.
Fixes https://github.com/Homebrew/brew/issues/7110
2020-03-04 14:17:08 +00:00
Bo Anderson
f9481d4d35 python: Fix error in virtualenv_install_with_resources
Fixes #7115.
2020-03-04 14:13:41 +00:00
Mike McQuaid
6ead927500
cmd/search: tweak documentation text. 2020-03-04 13:14:39 +00:00
vidusheeamoli
67d012afcc search: add separate flag for formulae 2020-03-04 17:58:19 +05:30
Mike McQuaid
2b838713a2
Merge pull request #7112 from Homebrew/dependabot/bundler/Library/Homebrew/zeitwerk-2.3.0
build: bump zeitwerk from 2.2.2 to 2.3.0 in /Library/Homebrew
2020-03-04 11:47:53 +00:00
Mike McQuaid
0d7100e686
Merge pull request #7105 from EricFromCanada/json-requirements
API: supply additional data for requirements
2020-03-04 11:47:10 +00:00
Mike McQuaid
89fd3cc234
Merge pull request #7109 from CodeMonk/pkg_version_fix
Fix for when version is nil
2020-03-04 11:46:05 +00:00
Mike McQuaid
57fd98ec4f
pkg_version: tweak variable naming. 2020-03-04 11:28:28 +00:00
Mike McQuaid
ee9ea66893
brew vendor-gems: commit updates. 2020-03-04 11:24:32 +00:00
dependabot-preview[bot]
9ce448b369
build: bump zeitwerk from 2.2.2 to 2.3.0 in /Library/Homebrew
Bumps [zeitwerk](https://github.com/fxn/zeitwerk) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/fxn/zeitwerk/releases)
- [Changelog](https://github.com/fxn/zeitwerk/blob/master/CHANGELOG.md)
- [Commits](https://github.com/fxn/zeitwerk/compare/v2.2.2...v2.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-04 11:22:03 +00:00
Mike McQuaid
f6631d6449
Merge pull request #7019 from iMichka/python2doc
brew: remove most traces of python@2
2020-03-04 11:21:07 +00:00
Mike McQuaid
fab4a4863d
Merge pull request #7099 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-0.80.1
build: bump rubocop from 0.80.0 to 0.80.1 in /Library/Homebrew
2020-03-03 20:35:04 +00:00
EricFromCanada
5277f849d9 API: supply additional data for requirements 2020-03-03 15:00:33 -05:00
Mike McQuaid
e7b6cb97e6
brew vendor-gems: commit updates. 2020-03-03 19:48:11 +00:00
Mike McQuaid
486d498d6e
Merge pull request #7101 from MichelleNguy/display-updated-casks
Display updated casks when running `brew update`
2020-03-03 19:34:15 +00:00
David Frascone
8ed8d6979c Fix for when version is nil
When version is nil, (version <==> other.version) also returns nil
and then the nill object doesn't have a nonzero? method.

I'm not sure what package put me into this state, but, this fix repaired
my environment.

Also, there is probably a more ruby-esque way to do this, but, I'm not a
ruby expert ;-)
2020-03-03 12:27:21 -07:00
Michelle Nguyen(she/her)
352774e80f Add deleted casks to report dump.
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-03-03 13:46:08 -05:00
Michelle Nguyen(she/her)
1f5f9b37c7 Change if statement to elsif.
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
2020-03-03 13:45:46 -05:00
dependabot-preview[bot]
f3edc7c91a
build: bump parser from 2.7.0.3 to 2.7.0.4 in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 2.7.0.3 to 2.7.0.4.
- [Release notes](https://github.com/whitequark/parser/releases)
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v2.7.0.3...v2.7.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-03 05:25:25 +00:00
Michelle Nguyen
948ad02c84 Display updated casks when running Already up-to-date.. Fixes #7011. 2020-03-02 17:17:52 -05:00
Mike McQuaid
10ba0d5a66
Merge pull request #7092 from dawidd6/bump-push-with-token
bump-formula-pr: return remote url with token in it
2020-03-02 18:42:57 +00:00
Dawid Dziurla
456f3b1923
bump-formula-pr: return remote url with token in it 2020-03-02 18:50:42 +01:00
Mike McQuaid
15d274bab7
Merge pull request #7091 from EricFromCanada/version-stable
version: handle -stable in tag
2020-03-02 13:20:58 +00:00
Mike McQuaid
b3a340cc6a
Merge pull request #7089 from dawidd6/npm-args-unsafe-perm
node: add --unsafe-perm to std_args
2020-03-02 13:19:59 +00:00
Mike McQuaid
557cc1523f
Merge pull request #7090 from EricFromCanada/bump-url-escaping
bump-formula-pr: add missing URL escapes
2020-03-02 13:02:52 +00:00
dependabot-preview[bot]
fc9f514a3e
build: bump rubocop from 0.80.0 to 0.80.1 in /Library/Homebrew
Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.80.0 to 0.80.1.
- [Release notes](https://github.com/rubocop-hq/rubocop/releases)
- [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rubocop-hq/rubocop/compare/v0.80.0...v0.80.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 12:32:12 +00:00
dependabot-preview[bot]
dd11ee868f
build: bump nokogiri from 1.10.8 to 1.10.9 in /Library/Homebrew
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.10.8 to 1.10.9.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/v1.10.9/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.10.8...v1.10.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-03-02 05:43:20 +00:00
EricFromCanada
b681d64e59 version: handle -stable in tag 2020-02-28 14:57:28 -05:00
Michka Popoff
79a3d3568b python: add rewrite function for generic shebangs
From PEP 394
https://www.python.org/dev/peps/pep-0394/#for-python-script-publishers

In cases where the script is expected to be executed outside virtual environments,
developers will need to be aware of the following discrepancies across platforms and installation methods:

Older Linux distributions will provide a python command that refers to Python 2, and will likely not provide a python2 command.
Some newer Linux distributions will provide a python command that refers to Python 3.
Some Linux distributions will not provide a python command at all by default, but will provide a python3 command by default.

When potentially targeting these environments, developers may either use a Python package installation tool that rewrites shebang lines
for the installed environment, provide instructions on updating shebang lines interactively,
or else use more specific shebang lines that are tailored to the target environment.
2020-02-28 20:08:43 +01:00
EricFromCanada
b80af7837a bump-formula-pr: add missing URL escapes 2020-02-28 13:02:55 -05:00
Dawid Dziurla
aac200a53d
node: detect root via Process.uid 2020-02-28 13:37:44 +01:00
Dawid Dziurla
79a1500f2b
node: add --unsafe-perm to std_args only if run as root 2020-02-28 13:00:43 +01:00
Dawid Dziurla
6874c79375
node: add --unsafe-perm to std_args 2020-02-28 12:47:03 +01:00