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
d1ea6f38d3
Fix mutable constants violations.
2019-04-19 21:46:20 +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
Mike McQuaid
1aaffda62f
Merge pull request #6027 from vitorgalvao/remove_to_slashes
...
hbc: remove all *_to_slashes
2019-04-18 11:59:10 +09:00
Vítor Galvão
0ee226769a
hbc: remove all *_to_slashes
2019-04-17 16:31:35 +01:00
Mike McQuaid
ae63381bd9
cli/parser: use cli/args and tweak freeze behaviour.
2019-04-17 22:16:58 +09:00
Mike McQuaid
e40b171127
Rename cli_parser to cli/parser.
2019-04-17 22:16:50 +09:00
Mike McQuaid
18630c7032
extend/ARGV: remove unused methods.
2019-04-17 21:08:26 +09:00
Mike McQuaid
8229e592d7
cask/cmd/info_spec: needs network connection.
...
Tag it accordingly.
2019-04-17 17:34:33 +09:00
Mike McQuaid
1281c4a663
Merge pull request #5983 from zachauten/continue-upgrading-casks-after-failure
...
'brew cask upgrade' will continue upgrading casks after a failure
2019-04-14 10:01:32 +01:00
Mike McQuaid
0750971870
Merge pull request #5893 from reitermarkus/version-unstable
...
Add `#unstable?` method for cask versions.
2019-04-14 10:00:57 +01:00
Mike McQuaid
3b842ef41f
Merge pull request #6014 from vitorgalvao/caskroom-home
...
cask home: update to brew.sh
2019-04-14 10:00:15 +01:00
EricFromCanada
e0558dc7c7
trim line breaks
2019-04-13 21:37:48 -04: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
Vítor Galvão
67ca3d372a
cask home cmd: update homepage to brew.sh
2019-04-13 19:47:14 +01:00
Zach Auten
41b5b788d5
'brew cask upgrade' will continue upgrading casks after a failure
...
'cask upgrade' command collects all exceptions thrown
from individual casks during the upgrade process. If
there were more than one cask that raised exceptions
during the upgrade process, a MultipleCaskErrors
exception will be thrown.
Issue #5203
2019-04-12 19:26:33 -04:00
Michael
2fbe4fe3b7
Update create_spec.rb
2019-04-07 02:10:01 +02:00
Xu Cheng
363355ae47
CompilerSelector: prefer the gcc verion offered by the gcc formula
...
When GCC is used (default for Linux), we should prefer the gcc offered
by the gcc formula. As such even if users install a gcc with higher
version from `gcc@*` formula, it will not be picked up to build other
formulae. This would also allow users to safely delete `gcc@*` formula.
Closes #5953 .
2019-03-31 21:42:05 +08:00
Mike McQuaid
75257886f2
Cleanup some RSpec tests
...
Fix some Rubocop RSpec checks, update some values and improve
documentation.
2019-03-28 19:16:56 +00:00
Mike McQuaid
2f1c6e9ca5
Cleanup cmd/* tests
...
- Test `_args` methods
- Remove multiple integration tests (except where essential
e.g. `install`, `help`)
2019-03-28 08:35:36 +00:00
Mike McQuaid
cc6c6afffb
test/dev-cmd: add more parseable arguments tests.
2019-03-27 14:22:30 +00:00
Mike McQuaid
1e5cfcc028
Separate tap tests into separate, correct files.
2019-03-27 13:35:42 +00:00
Mike McQuaid
aa44509be9
Test dev-cmd *_args
methods
...
Also, add a few missing invocations.
2019-03-27 13:35:42 +00:00
Markus Reiter
2a3b7d072d
Add #unstable?
method for cask versions.
2019-03-27 13:48:03 +01:00
Mike McQuaid
3bde17c9f9
Cleanup from dev-cmd test changes
...
- Remove added whitespace in `extend/os/linux/keg_relocate`
- Cleanup testball bottles
2019-03-27 10:31:26 +00:00
Mike McQuaid
59d680a626
dev-cmd: only one integration test per command.
...
Integration tests are useful in detecting breakages but much slower so
let's only use one per command and install formula outside the
integration test framework (which is also slow).
2019-03-27 09:45:48 +00:00
Mike McQuaid
cf4511f72a
Merge pull request #5538 from zachauten/brew-info-display-casks
...
Make brew info output cask if no formula exists
2019-03-25 16:54:03 +00:00
Zach Auten
999c4743d0
Added flag for cask_reason to output cask info or just message with cask name
2019-03-24 15:28:34 -04:00
Mike McQuaid
3615f891f7
tap-new: improve output.
...
Note the tap path.
References #5901 .
2019-03-23 12:41:35 +00:00
Zach Auten
63a0aa92d1
Removed info_spec integration test and replaced with unit test in missing_formula_spec
2019-03-21 17:18:21 -04:00
Shaun Jackman
5cb458d687
install_symlink_p: Fix when dest includes a symlink
...
install_symlink_p does not work as intended when dst includes a symlink in its path.
relative_path_from requires that both src and dst be real paths without symlinks.
From https://ruby-doc.org/stdlib-2.3.7/libdoc/pathname/rdoc/Pathname.html#method-i-relative_path_from
This method doesn't access the filesystem. It assumes no symlinks.
2019-03-16 23:11:59 -07:00
Zach Auten
9eadee9408
moved info_spec cask test to its own describe block to fix error
2019-03-15 22:19:12 -04:00
Zach Auten
75b9eec7ef
Renamed print_caveats, updated an info_spec test to macos only
2019-03-11 21:20:02 -04:00
Jonathan Chang
90f402d8a2
cpu: tests permit new families and architectures
2019-03-08 16:05:12 +11:00
Zach Auten
dd4daa247f
Merge branch 'master' of https://github.com/Homebrew/brew into brew-info-display-casks
2019-03-06 17:56:22 -05:00
Zach Auten
fe643758d7
Updated get_info
...
- get_info builds info string by appending helper functions
- removed unnecessary returns
- fixed indentation in missing_formula
- reduced size of regex in info_spec
- missing_formula will indicate when it finds a cask with same name
2019-03-06 00:27:48 -05:00
Markus Reiter
42d90f8bd9
Use same logic for installer script:
and uninstall script:
.
2019-03-03 06:21:11 +01:00
Shaun Jackman
82da3b43cc
audit: Keg-only :provided_by_macos dep okay on Linux
...
Disable this brew audit error on Linux:
* Dependency 'zlib' may be unnecessary as it is provided by macOS;
try to build this formula without it.
2019-03-02 13:29:49 -08: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
Mike McQuaid
d1f755959a
Merge pull request #5805 from BenMusch/handle-conflicts
...
Fix bug in CLI arg/env var prioritization + corresponding tests
2019-02-26 07:55:19 +00:00
Ben Muschol
4c6ca1c5d9
Fix stub orders, :env_var reference
2019-02-25 15:18:14 -05:00
Mike McQuaid
fcfabfb3c6
dev-cmd/pull_spec: require Homebrew/homebrew-core for subtest.
2019-02-25 17:21:09 +00:00
Mike McQuaid
921d4aad77
Unify test/vendor Gemfiles and bundler configuration.
2019-02-21 16:34:19 +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
dependabot[bot]
eca4af2031
Bump rubocop from 0.64.0 to 0.65.0 in /Library/Homebrew/test
...
Bumps [rubocop](https://github.com/rubocop-hq/rubocop ) from 0.64.0 to 0.65.0.
- [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.64.0...v0.65.0 )
Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-02-21 12:55:49 +00:00
Zach Auten
554106d2e0
Updated missing formula cask reason
...
- search_for_cask in missing_formula renamed to is_a_cask_reason
- is_a_cask calls new getInfo method in cask/cmd/info.rb to return info
string
- self.info in info.rb now calls getInfo and puts return value
- added ohai_title to return the ohai printout for only titles, so that
ohai printout could be added to the getInfo return string without
calling puts.
- refactored ohai to use ohai_title
- updated info_spec.rb cask info test to be more specific when
matching stderr.
- is_a_cask_reason will respect 'silent'
- refactored print_caveats to return instead of print
2019-02-18 03:33:57 -05:00
Zach Auten
648c8e4672
Merge branch 'master' into brew-info-display-casks
2019-02-18 03:26:43 -05:00