Markus Reiter
98f91fb883
Refactor CLI::Style
.
2017-05-22 02:51:16 +02:00
Markus Reiter
66e9a060de
Refactor CLI::Home
.
2017-05-22 02:51:16 +02:00
Markus Reiter
276adc9e8b
Refactor CLI::Edit
.
2017-05-22 02:51:16 +02:00
Markus Reiter
8248345a9a
Refactor CLI::Create
.
2017-05-22 02:51:16 +02:00
Markus Reiter
b7347dcc44
Refactor CLI::Cleanup
.
2017-05-22 02:51:16 +02:00
Markus Reiter
1714c73b49
Refactor CLI::Audit
.
2017-05-22 02:51:16 +02:00
Markus Reiter
a44d4ce88b
Remove Cask’s CLI#debug?
.
2017-05-22 02:51:16 +02:00
Markus Reiter
9e821863d0
Pass along CLI::Binaries
.
2017-05-22 02:51:16 +02:00
Markus Reiter
e1098b0e6d
Merge pull request #2638 from reitermarkus/matchers
...
Use scoped RSpec matchers.
2017-05-19 23:24:35 +02:00
Markus Reiter
3139383fe6
Merge pull request #2623 from rednoah/master
...
Support GPG (signed data) container in Homebrew Cask
2017-05-19 20:48:35 +02:00
Markus Reiter
f0dc1d96c5
Merge pull request #2537 from reitermarkus/pathname-to_str
...
Remove `to_s` from some `Pathname`s.
2017-05-18 09:39:07 +02:00
Markus Reiter
3cdf8f938a
Use scoped RSpec matchers.
2017-05-15 17:23:40 +02:00
Mike McQuaid
ea8be174f6
Merge pull request #2631 from GauthamGoli/audit_homepage_rubocop
...
audit: Port audit_homepage method to rubocop and add tests
2017-05-15 10:02:47 +01:00
Mike McQuaid
9889b42ec4
Merge pull request #2628 from GauthamGoli/formula_desc_cop_fix
...
audit: Detect multiline and interpolated strings in formula desc cop
2017-05-15 10:01:38 +01:00
Gautham Goli
91efcb045e
Port audit_homepage method to rubocop and add tests
2017-05-14 22:05:46 +05:30
Mike McQuaid
13efa8656e
Merge pull request #2620 from MikeMcQuaid/more-env-filtering-tweaks
...
More environment filtering tweaks
2017-05-14 15:08:47 +01:00
Gautham Goli
80572939b4
Update string_content method to support multiline strings, add test for same
2017-05-13 18:48:40 +05:30
Mike McQuaid
8205e61e64
More environment filtering tweaks
...
- only document HOMEBREW_* variables in the manpage (although still
read from all the original environment variables).
- resort manpage environment variables in alphabetical order
- check the original path for trailing slashes
2017-05-13 11:42:01 +01:00
Gautham Goli
d04f295de3
Add autocorrect method for ComponentsOrder rubocop and tests
2017-05-13 03:09:55 +05:30
Reinhard Pointner
5c59b3352f
Support GPG (signed data) container in Homebrew Cask (test case)
2017-05-11 16:27:45 +08:00
mansimarkaur
45754a1888
diagnostic_spec.rb: check_access_lock_dir test
...
Added assertion to check `HOMEBREW_LOCK_DIR.stat.mode` changes after `HOMEBREW_LOCK_DIR.chmod 0555`
2017-05-10 03:02:55 +05:30
Markus Reiter
5828eefd01
Remove to_s
from some Pathname
s.
2017-05-08 13:37:28 +02:00
Mike McQuaid
9853a78397
Travis CI tweaks.
...
Attempt to improve Travis CI. This time without any vendoring gems
nonsense.
2017-05-08 08:38:25 +01:00
Mike McQuaid
57db2e539e
Revert "Merge pull request #2597 from MikeMcQuaid/vendor-gems"
...
This reverts commit 3e4547f52e7ebec633f8bfefc8a396d944edf908, reversing
changes made to 6edf9382bcc1240ad6f97c8b752cfe56cef9965d.
2017-05-07 17:28:39 +01:00
Mike McQuaid
e1bbab6ca6
Revert "Merge pull request #2603 from MikeMcQuaid/tweak-gem-vendoring"
...
This reverts commit 2372872974d1049c2beafe7dedb7f8f882502058, reversing
changes made to 3e4547f52e7ebec633f8bfefc8a396d944edf908.
2017-05-07 17:28:37 +01:00
Mike McQuaid
33f83be10e
Tweak Gem vendoring.
...
If people have `HOMEBREW_RUBY_PATH` set then things explode in a rather
confusing fashion. Instead, run `bundle` for them with the arguments
that they'd want.
Also, move `macho` requires into the module itself; it's a pain having
to do everything for Bundler before requiring `pathname` which is a core
Ruby class.
2017-05-07 15:33:54 +01:00
Mike McQuaid
ee253e465b
Vendor all Homebrew's gems.
...
Homebrew's actually ended up using a fair few gems. While we want to
avoid Bundler at runtime (and this PR still does that, in fact uses
Bundler even less at runtime than it did before) writing our own version
to use at build-time seems redundant.
2017-05-07 13:52:57 +01:00
Mike McQuaid
555505ec54
Merge pull request #2531 from GauthamGoli/audit_cops_options_refactor
...
audit: Allow skipping/selective running of cops and cops refactor
2017-05-03 11:28:25 +01:00
Mike McQuaid
e1ef37953f
Merge pull request #2577 from DomT4/keg_only_style_tweaks
...
caveats: tweak keg_only style
2017-05-03 11:19:33 +01:00
Gautham Goli
fed668b330
Add --only-cops
,--except-cops
options for brew style and simplify cop names
2017-05-03 14:49:23 +05:30
Mike McQuaid
f951a22bea
Install etc/var files on postinstall.
...
Also, don't delete them after that. This means that `brew postinstall`
becomes a way to easily reinstall configuration files for any formula
without needing any changes to any bottles or requiring a reinstall.
2017-05-03 09:00:17 +01:00
Dominyk Tiller
bf491e5102
audit_spec: add keg_only_style tests
2017-05-02 20:08:30 +01:00
Gautham Goli
c3330c289d
Add --only-cops
,--except-cops
options for brew audit
...
Also refactor audit cops into two "departments"
- FormulaAudit
- FormulaAuditStrict
2017-05-02 23:26:12 +05:30
Markus Reiter
1be5eeec26
Add test and comment for PATH#existing
.
2017-04-30 21:23:12 +02:00
Markus Reiter
1c7238e59b
Add tests for PATH#select
and PATH#reject
.
2017-04-30 21:18:06 +02:00
Markus Reiter
4d5d6a65e3
Rename PATH#validate
to PATH#existing
.
2017-04-30 21:11:28 +02:00
Markus Reiter
22f624b373
Make PATH
enumerable.
2017-04-30 21:11:28 +02:00
Markus Reiter
e70f2ec332
Make sure duplicates are remove from PATH
.
2017-04-30 21:11:28 +02:00
Markus Reiter
a16746906d
Add PATH
class.
2017-04-30 21:11:27 +02:00
Dominyk Tiller
ed1ae19aee
audit_spec: test go get ban
2017-04-28 18:13:38 +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
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
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