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
L. E. Segovia
094cab89fe
Cask: remove curl calls, use them with --download
2018-10-10 21:36:06 +00:00
L. E. Segovia
4fe0a63482
Cask: address HTTPS->HTTP redirections
2018-10-10 21:36:06 +00:00
Mike McQuaid
c6acab66fe
Merge pull request #5030 from MikeMcQuaid/style-shellcheck
...
style: check Bash style with shellcheck
2018-10-08 14:25:28 +01:00
Markus Reiter
5dd571adeb
Replace #chuzzle
with ActiveSupport’s #presence
.
2018-10-07 23:10:56 +02:00
Markus Reiter
16618d0fc7
Use ActiveSupport’s #pluralize
and #to_sentence
.
2018-10-07 23:10:56 +02:00
Markus Reiter
c4d418e126
Use ActiveSupport’s #second
.
2018-10-07 23:10:56 +02:00
Mike McQuaid
4feb851279
Fix brew style
shellcheck warnings.
2018-10-07 22:08:59 +01:00
Gautham Goli
c7bf79407a
Better man page formatting
2018-10-03 19:20:26 +05:30
Markus Reiter
2308f0c571
Skip quitting applications when not logged into GUI.
2018-10-02 16:27:45 +02:00
Mike McQuaid
a11fe57cd2
cache_store: handle corrupt DBM database.
...
When the DBM database cannot be read by the current version of Ruby's
DBM library (due to corruption or another incompatibility) it segfaults
or freezes which takes down the entire Homebrew Ruby process.
This isn't desirable so instead perform a shell out with the Homebrew
Ruby to see if it can read the DBM database before we try to use the
information. If this hangs or crashes: silently delete the database and
recreate it.
2018-09-20 10:57:27 +01:00