6060 Commits

Author SHA1 Message Date
Douglas Eichelberger
2cc70549d8 Port Homebrew::DevCmd::Edit 2024-03-21 19:04:30 -07:00
Douglas Eichelberger
21c84553cf Port Homebrew::DevCmd::DispatchBuildBottle 2024-03-21 19:04:30 -07:00
Douglas Eichelberger
19f9c52652 Port Homebrew::DevCmd::DetermineTestRunners 2024-03-21 19:04:30 -07:00
Douglas Eichelberger
9297a850aa Port Homebrew::DevCmd::Create 2024-03-21 19:04:30 -07:00
Bo Anderson
d704e007c7
Merge pull request #16935 from Homebrew/fix-typo-class
Fix typo'd command class name
2024-03-22 01:38:51 +00:00
Douglas Eichelberger
1a62a639b2
Merge pull request #16934 from cho-m/test-shell-completion-error
test/abstract_command_spec: rename cat to fix completions test
2024-03-21 18:17:28 -07:00
Douglas Eichelberger
4dc92026b8 Use non-null description 2024-03-21 17:46:35 -07:00
Douglas Eichelberger
1db309f024 Fix typo'd class name 2024-03-21 17:41:31 -07:00
Michael Cho
57b7f3940d
test/abstract_command_spec: rename cat to fix completions test
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-21 19:58:22 -04:00
Michael Cho
3ddc196f11
cleanup: remove broken symlink for uninstalled migrated Casks
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-21 17:52:48 -04:00
Sam Ford
b3ab410215
rubocops/livecheck: Rework LivecheckUrlProvided
The existing `LivecheckUrlProvided` RuboCop requires a `url` for all
`livecheck` blocks except those using `skip`, `formula`, or `cask`,
as those only appear in a `livecheck` block with no other DSL methods.

We now have a `throttle` method that can be used alongside other DSL
methods (e.g., `url`, `regex`, `strategy`) or by itself. `brew style`
currently fails when `throttle` is used by itself, so this reworks
the conditions to allow this usage.
2024-03-21 15:53:25 -04:00
Sam Ford
7681621cd4
livecheck: Reorder throttle 2024-03-21 10:11:50 -04:00
Michael Cho
bfec6eecac
livecheck: support throttle DSL
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-21 10:11:49 -04:00
apainintheneck
769b4f89c7 rubocops/service_spec: update test to cover custom name that requires root
This was added in recently and this just updates the test to reflect the
expected behavior for the cop.
2024-03-20 21:05:14 -07:00
Kevin
7b2bfee363
Merge pull request #16903 from apainintheneck/prevent-unexpected-network-calls-in-tests
Prevent unexpected network calls in tests
2024-03-20 20:40:26 -07:00
Douglas Eichelberger
db9c5a5da1 Fix linux test 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
0373e0dc29 Port Homebrew::DevCmd::Contributions 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
777ee12258 Port Homebrew::DevCmd::Command 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
55a0991902 Port Homebrew::DevCmd::Cat 2024-03-20 10:36:19 -07:00
Douglas Eichelberger
df42e9cfb3 Port Homebrew::DevCmd::Bump 2024-03-20 10:36:10 -07:00
Douglas Eichelberger
c70dc040c6 Port Homebrew::DevCmd::BumpUnversionedCask 2024-03-20 10:25:18 -07:00
Douglas Eichelberger
1097496a06 Port Homebrew::DevCmd::BumpRevision 2024-03-20 10:25:18 -07:00
Douglas Eichelberger
d873881c47 Port Homebrew::DevCmd::BumpFormulaPr 2024-03-20 10:25:17 -07:00
Douglas Eichelberger
ebc458a7fe Port Homebrew::DevCmd::BumpCaskPr 2024-03-20 10:16:17 -07:00
Douglas Eichelberger
ee0c967ce0 Port Homebrew::DevCmd::Bottle 2024-03-20 10:16:17 -07:00
Douglas Eichelberger
0f2efd3939 Port Homebrew::DevCmd::Audit 2024-03-20 10:16:17 -07:00
apainintheneck
74aea8e92d spec_helper: add :no_api test scope
This sets the HOMEBREW_NO_INSTALL_FROM_API environment variable
to prevent the selected tests from using the API. We will need
this as we transition to having the API be enabled by default
when running the tests but it's also nice as a sanity check
with the :needs_utils_curl scope in a few places.
2024-03-19 22:18:02 -07:00
Bo Anderson
326bc3f889
Fix cask source checksum handling 2024-03-19 21:21:37 +00:00
Michael Cho
d04c5ad4f8
test/utils/github_spec: filter further to fix test failure
Signed-off-by: Michael Cho <michael@michaelcho.dev>
2024-03-19 17:01:04 -04:00
apainintheneck
ad35db4b24 tests: fix tests that make unexpected network calls
These were found with the Utils::Curl check and just turning
off the network on my computer and running the entire test suite.
2024-03-18 20:57:35 -07:00
apainintheneck
b66097fa3d spec_helper: add check for unexpected network calls
Any test that is not tagged as :needs_network and that makes
a call to an unapproved method in the `Utils::Curl` module
will raise an error unless that method gets mocked somehow.

tests: add exceptions for tests that use curl to download local files

These are acceptable ways to use curl in local, non-network tests.
For those edge cases we allow you to bypass the check with :needs_utils_curl.
2024-03-18 20:57:23 -07:00
Douglas Eichelberger
0c4c4a87a2 Fix flaky Tapioca::Compilers::Args test 2024-03-18 09:24:40 -07:00
Douglas Eichelberger
2cc3ce9bb4
Merge pull request #16815 from dduugg/abstract-command
Provide interface and individual namespaces for brew CLI commands
2024-03-18 08:11:52 -07:00
Bo Anderson
6cb0fd06c4
Merge pull request #16894 from Homebrew/cask-fix-app-remove
cask/artifact/moved: fix permission handling when removing directories
2024-03-18 14:42:29 +00:00
Douglas Eichelberger
468c7b32e0 Remove unused matcher 2024-03-17 23:08:33 -07:00
Douglas Eichelberger
820d320835 Remove and refactor rspec-its use 2024-03-17 22:47:37 -07:00
Douglas Eichelberger
131a5421a5 Make cmd_args block non-nilable 2024-03-16 11:14:39 -07:00
Bo Anderson
011dfc8f45
cask/artifact/moved: fix permission handling when removing directories 2024-03-15 21:31:37 +00:00
Douglas Eichelberger
23336aa316 Update tests 2024-03-15 12:58:59 -07:00
Douglas Eichelberger
cda2761504 Preseve args_parse test for new commands 2024-03-15 12:46:06 -07:00
Douglas Eichelberger
6fc99d9569 Add tests 2024-03-15 12:46:06 -07:00
Douglas Eichelberger
2dceb65b42 Port prof to use AbstractCommand 2024-03-15 12:46:05 -07:00
Douglas Eichelberger
cbcb221de6 Create AbstractCommand class 2024-03-15 12:46:05 -07:00
Douglas Eichelberger
a3e5e3f7a0
Merge pull request #16880 from dduugg/args-compiler
Add tapioca compiler for Homebrew::CLI::Args
2024-03-14 11:50:07 -07:00
Douglas Eichelberger
68cce23e15 Add tests 2024-03-13 22:02:03 -07:00
Kevin
7473e63f38
Merge pull request #16875 from Homebrew/fix-untap-cmd-bugs
Fix untap cmd bugs
2024-03-13 20:17:38 -07:00
apainintheneck
9ff0f85335 untap_spec: use builtin spec helpers to simplify tests 2024-03-12 22:07:14 -07:00
Mike McQuaid
b1990ed4b6
Merge pull request #16863 from apainintheneck/memoize-installed-tap-loading-v2
Memoize installed tap loading v2
2024-03-12 08:36:09 +00:00
Michael Cho
545b83095d
Merge pull request #16871 from cho-m/cleanup-dryrun-print-dirs
cleanup: track removed links & dirs during dry-run
2024-03-11 13:44:31 -04:00
Mike McQuaid
8215f3a283
Merge pull request #16855 from Homebrew/update_tweaks
Various `brew update` behaviour improvements
2024-03-11 16:59:13 +00:00