Mike McQuaid
c4f72312ce
Fixup brew style
failures.
2019-04-30 09:19:18 +01:00
kiendang
5c83729be9
Fix mutable string syntax
2019-04-26 23:03:40 +08:00
Mike McQuaid
261e2e7926
utils/github: fix frozen string usage.
...
See https://discourse.brew.sh/t/error-cant-modify-frozen-string/4691/4
2019-04-25 23:28:50 -07:00
Mike McQuaid
fc6bd2ea1c
Fixup more frozen string handling.
2019-04-20 14:07:29 +09:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
86f43f79ee
Enable/fix optional Ruby frozen string literal usage
...
Combined with https://github.com/Homebrew/homebrew-test-bot/pull/247
this will test Homebrew's use of frozen strings in CI. After this we
will then enable it for Homebrew developers and eventually all Homebrew
users.
2019-04-19 10:30:41 +09:00
Mike McQuaid
9e7b98d3e2
Don't check system Ruby is new enough when unnecessary.
...
We know this is the case in macOS >=10.13.3 so save a Ruby process call.
2019-04-18 21:42:28 +09:00
Mike McQuaid
ef2e297d3b
Disable RubyGems by default.
...
This speeds up all Ruby invocations where we don't need RubyGems by
around 10%. Where we do need RubyGems: include it manually.
2019-04-18 17:45:03 +09:00
EricFromCanada
89f0fcedbe
whitespace fixes
2019-04-13 21:32:04 -04:00
EricFromCanada
fa6404e0f5
grammar fixes
2019-04-13 21:29:32 -04:00
kiendang
028b8b408d
Remove use of bash
2019-03-20 20:19:33 +08:00
kiendang
00f74902d4
Call git log through bash for globstar support
2019-03-18 03:05:30 +08:00
kiendang
6be6bba0be
brew extract from all taps
2019-03-17 23:44:35 +08:00
Mike McQuaid
ae0332a0f6
Merge pull request #5867 from MikeMcQuaid/linuxbrew-docs-cleanup
...
Update Linuxbrew references to Homebrew on Linux
2019-03-12 20:39:56 +00:00
Mike McQuaid
710859e300
Update Linuxbrew references to Homebrew on Linux
...
This is a clearer branding for us to use.
Also, as part of testing this, make some fixes to Jekyll in the docs folder.
Fixes #5835
2019-03-12 20:13:38 +00:00
EricFromCanada
560ccddb69
help: rewrap output to 80 columns
...
Accounts for paragraph breaks and option descriptions. Also fixes some help text nits.
2019-03-11 12:52:07 -04:00
Steven Peters
e91b889e04
utils/github: use tap.full_name
2019-03-03 22:58:31 -08:00
Mike McQuaid
128300a754
utils/gems: install Bundler 2.
...
Our Gemfile requires it and it will result in a more consistent configuration.
2019-02-28 12:29:52 +00:00
Mike McQuaid
17f3ee1957
Improve Bundler cleanup
...
Rather than trying to be smart and doing this ourselves in `brew cleanup` let’s just installed Bundler somewhere it doesn’t try to clean itself up and use `bundle install --cleanup` when we need cleanup done.
Also, use `ohai` and `odie` when possible as they look nicer.
2019-02-27 14:02:46 +00:00
okhowang(王沛文)
d959a780d4
use python flock firstly
2019-02-26 14:19:12 +08:00
Mike McQuaid
d33c225e47
utils/ruby: don't remove cleanup bundler.
...
We're sharing this directory now.
2019-02-22 15:59:14 +00:00
Mike McQuaid
3a2259c271
utils/gems: silence bundle check
output.
2019-02-21 16:34:20 +00:00
Mike McQuaid
6b326f4465
Move all gems to vendor/bundle, remove vendor/bundle-standlone.
2019-02-21 16:34:20 +00:00
Mike McQuaid
4f76d12874
utils/gems: extract from utils.
...
Also, don’t use any non-standard Ruby functionality to avoid needing any `requires.
2019-02-21 12:56:22 +00:00
Mike McQuaid
e095da4d01
rubocop: enable Layout/EmptyLineAfterGuardClause.
2019-02-21 12:55:49 +00:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier.
2019-02-21 12:55:49 +00:00
Markus Reiter
a4e0413bf9
Let GitHub::open_api
return nil
when status is 204 No Content
.
2019-02-20 02:11:19 +01:00
Markus Reiter
e9c45ff17b
Pass additional options to GitHub.pull_requests
.
2019-02-16 11:30:49 +01:00
Markus Reiter
68e0c5f904
Check for write access instead of HOMEBREW_DEVELOPER
.
2019-02-15 16:27:37 +01:00
Markus Reiter
57fefff942
Add brew cask automerge
command.
2019-02-15 16:27:37 +01:00
Danny Weinberg
6db1b0abd8
Handle regex not finding anything
2019-02-03 10:52:09 -08:00
Danny Weinberg
b0124c4fb0
Cask handle already downloaded file
...
The current logic for curl_download tries to restart any existing
partial download, but this fails for some servers when the file is
already fully downloaded, returning a status code 416. This updates the
function to check for the file being already downloaded and if so bails
early.
The following command used to fail when run more than once but now works
as expected:
```
brew cask info https://raw.githubusercontent.com/homebrew/homebrew-cask/master/Casks/docker.rb
```
2019-02-01 14:57:50 -08:00
Claudia
c2bbd9df7e
Remove unneeded curl_openssl_or_deps
invocation
...
This fixes a regression introduced in #5626 [1], which removed `curl_openssl_or_deps` and left a single call in the code.
[1]: https://github.com/Homebrew/brew/pull/5626
2019-01-28 08:10:37 +01:00
Mike McQuaid
8bfde013f6
utils: fix SVN remote test on Mojave.
...
For some reason Mojave needs the SSL args always set otherwise this
will always fail waiting for interactivity.
Also, while debugging this I noticed that `utils.rb` had a failure
expecting an integer so fix that too.
2019-01-22 14:20:24 +00:00
Mike McQuaid
234e4aec96
Improve use of default_prefix? in tests.
2019-01-21 14:33:56 +00:00
Mike McQuaid
699d543ecd
Use Homebrew.default_prefix? in more places.
2019-01-21 12:37:42 +00:00
Mike McQuaid
ec5ce4b180
utils/github: display max 20 closed PRs.
...
Closes #5553 .
2019-01-19 17:17:21 +00:00
Mike McQuaid
61fa59e95b
Remove Travis CI specific code
...
We’re no longer using this for our CI so this is no longer necessary.
Also, migrate `brew tap-new` to use Azure pipelines.
2018-12-30 21:13:24 +00:00
Sam Hathaway
6e603c2859
Use GET rather than HEAD when checking for range support in curl_download.
...
* Some HTTP servers apparently support ranges but don't support HEAD.
* This is a more realistic check anyway since the actual download request
will use GET (not HEAD).
* This fixes Homebrew/brew#5420 .
2018-12-21 15:11:26 -05:00
L. E. Segovia
3b79b4d079
More styling fixes
2018-11-24 11:21:52 +00:00
L. E. Segovia
6ac568230c
Fix styling issues
2018-11-24 01:46:55 +00:00
L. E. Segovia
5a2743b50d
Merge branch 'master' into gitjiro-improved
2018-11-24 01:01:40 +00:00
Mike McQuaid
737b84b54b
brew style --fix
fixes.
2018-11-02 17:29:23 +00:00
Mike McQuaid
b167a88e4d
Merge pull request #5090 from JBallin/gist-token-error
...
Clarify how to set HOMEBREW_GITHUB_API_TOKEN
2018-10-21 15:41:34 +01:00
EricFromCanada
20167e5f1b
Adjust comments to tidy API docs output.
2018-10-18 21:42:43 -04:00
Mike McQuaid
056dd588b2
utils/github: add ValidationFailedError.
...
These have specific errors returned so would be more useful to output.
2018-10-15 12:03:16 -07:00
JBallin
2bf0db40b3
Normalize formatting of gist-logs errors
2018-10-14 20:40:24 -07:00
JBallin
2a1b936f76
Clarify HOMEBREW_GITHUB_API_TOKEN in gist-logs err
2018-10-14 20:40:24 -07:00
Mike McQuaid
c2d23838d0
analytics: fix display of build error options.
...
Currently these are all like `wget #<Options:0x0000000101171658>`.
2018-10-13 15:09:03 -07:00
Alyssa Ross
864475e14f
bump-formula-pr: use GitHub error message info
...
This saves an API call, and is more accurate, because the repo API
doesn't actually say whether forking is enabled, but this error message
does.
To do this, the original GitHub error message had to be accessible on
the GitHub exceptions.
2018-10-11 16:39:29 +01:00