Rylan Polster
54b349bb89
Revert "Only generate cask variations for supported macOS configurations"
2025-06-12 11:53:01 -04:00
Rylan Polster
e5667cb5ae
Only generate cask variations for supported macOS configurations
2025-06-11 20:30:14 -04:00
Eric Knibbe
ea8152757e
rubocops/cask/no_overrides: avoid nested depends_on macos:
2025-06-10 14:31:58 -04:00
Bo Anderson
b8e2cddbbd
Preliminary macOS 26 (Tahoe) support
2025-06-09 21:41:49 +01:00
botantony
91f328950f
test/fixtures: fix cask JSON fixture
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
botantony
9ff2abbcdf
no_autobump!: rename no_autobump_msg
field to no_autobump_message
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
botantony
1fcacdc2dc
formula/cask DSL: add no_autobump!
method
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
botantony
4fa1355be0
deprecate!/disable!: remove non-typed replacement
field
...
Signed-off-by: botantony <antonsm21@gmail.com>
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-04-21 21:13:25 +02:00
botantony
d3cfc3d193
unpack .dmg
: ignore .HFS+ Private*
metadata directories
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-03-18 12:59:21 +01:00
Issy Long
089680c76f
rubocops/cask/stanza_order: Ensure arch
and os
are adjacent
...
- Because Patrick wanted this to be codified.
2025-03-16 21:36:07 +00:00
Sean Molenaar
756ba2ba59
Add Linux dependency check in cask.rb
2025-03-13 21:47:17 +01:00
thibhero
fa4e2bad6e
updating testball5-0.1.tbz to make it work
2025-03-06 20:59:33 -05:00
thibhero
4651b961fa
removing attributes from macOS
2025-03-06 19:57:44 -05:00
thibhero
4e90aa527d
moving testball3 to testball5
2025-03-06 19:34:25 -05:00
thibhero
f0f2e59fb7
Merge branch 'master' into ask-test
...
# Conflicts:
# Library/Homebrew/vendor/bundle/bundler/setup.rb
2025-03-06 00:12:32 -05:00
thibhero
0f919e8397
new files for integration_spec.rb for testball3 and 4
2025-03-05 21:32:48 -05:00
Sean Molenaar
fc319f6793
feat: add tests for completion stanzas
2025-03-05 20:12:18 +01:00
Rylan Polster
f874603a21
Add implicit macOS dependency to casks without explicit depends_on
stanza
2025-02-17 14:30:44 +01:00
apainintheneck
839198d21e
Remove JSON v3 formula logic
2025-02-05 23:36:57 -08:00
Douglas Eichelberger
f5d2d30f5b
Add test for concurrent fetching
2025-02-04 13:02:50 -08:00
Bo Anderson
fed5321969
Rename aarch64_linux tag to arm64_linux
2025-02-01 13:03:58 +01:00
Caleb Xu
215fc85579
deprecate_disable: support optional replacement parameter
2024-11-08 15:49:00 -05:00
Douglas Eichelberger
ba3f426726
clean up fixture
2024-11-07 13:00:38 -08:00
Przemysław Kryger
ff03947ba0
Use @@HOMEBREW_PREFIX@@ for replacements in external patches
2024-10-23 16:51:01 +01:00
Przemysław Kryger
a03d65b5c9
Allow HOMEBREW_PREFIX replacement in external patches
...
This fixes #15925
2024-10-23 15:15:17 +01:00
Bevan Kay
8b33aa048a
test/fixtures: add app binary with valid info.plist file
2024-10-10 10:41:09 +11:00
Bevan Kay
8852f024a6
test/fixtures: add livecheck-extract-plist cask
2024-10-10 10:41:09 +11:00
Mike McQuaid
5b46ec70e9
cask/url: deprecate url do
blocks.
...
We're removing these in
https://github.com/Homebrew/homebrew-cask/pull/186501
so let's deprecate them too.
2024-09-26 14:05:25 +01:00
Rylan Polster
d17da89382
Include recursive dependencies in cask tabs
2024-07-09 15:25:57 -04:00
Rylan Polster
46cb7f2847
Update tests
2024-07-04 01:47:14 -04:00
Bo Anderson
7da94a8f01
Preliminary macOS 15 (Sequoia) support
2024-06-11 02:59:31 +01:00
Aaron Ruan
10987270fa
remove unnecessary cask osdn-incorrect-url-format
2024-05-27 12:33:23 +08:00
Aaron Ruan
0778379501
change tests for auditing OSDN download urls
2024-05-27 00:34:08 +08:00
Mike McQuaid
222fe8ef0b
Homebrew 4.3.0 deprecation/disable/removals.
...
The usual pass of deprecating/disabling/removing code for the next
minor Homebrew release.
2024-05-07 12:18:04 +01:00
apainintheneck
6ad02b8e34
formula: internal json v3 dependencies: address feedback
...
- rename #dependencies_list to #internal_dependencies_hash
- the initial implementation returned an array but now it doesn't
- simplify usage of #tap in #internal_dependencies_hash
- remove safe navigation operator usages in #internal_dependencies_hash
- better document why implicit dependencies are not included in the API JSON
- add new test fixture formula to better test generation of uses from
macos bounds with the new internal json format
2024-04-30 23:44:25 -07:00
apainintheneck
541305ae98
Update internal json v3 formula tests
2024-04-27 18:07:54 -07:00
Caleb Xu
a3cfff72fd
formula_installer: conditionally deny network access in sandbox
2024-04-22 22:39:45 -04:00
Bo Anderson
326bc3f889
Fix cask source checksum handling
2024-03-19 21:21:37 +00:00
Mike McQuaid
03e583e746
cask: read bundle version from Info.plist
when sensible.
...
If you're trying to use `brew info --json=v2` to get an installed
version and figure out if it is outdated: you're going to have a bad
time with `auto_updates` casks because `installed_version` alone is not
enough to get the actually currently installed version of the app.
Instead, in these cases, try to read from `Info.plist` if there is one
and use that version.
While we're here, add a `blank?` method to `Version` so we can use it
for `present?` checks (making a `null?` `Version` object `blank?`).
Co-authored-by: Markus Reiter <me@reitermark.us>
2024-03-06 15:52:16 +00:00
apainintheneck
f1f2e24aec
test fixture: pretty print JSON for readability
2024-02-27 20:55:16 -08:00
apainintheneck
200fe2a6b7
api/formula: Add tests for internal JSON v3
...
These tests cover both generating and loading formulae from the JSON
bundle. The tests are not comprehensive but they do provide a nice
sanity check that things are working as expected.
2024-02-27 20:55:16 -08:00
Markus Reiter
d42f419217
Don't use slashes when loading casks in tests.
2024-02-09 23:17:25 +01:00
Razvan Azamfirei
82cdf27eb8
fixture/cask: fix style violations
2024-01-28 10:19:39 -05:00
Issy Long
a6b8a795b4
Merge pull request #16365 from issyl0/rubocop-cask-zap-arrays-alphabetical
...
Add a new RuboCop for alphabetizing `zap trash` array elements
2024-01-24 21:34:18 +00:00
Issy Long
693a27d48b
Treat zap
and uninstall
the same
...
- Since `zap` can have more than just `trash`.
2024-01-21 19:48:30 +00:00
Issy Long
8910d5a479
Remove the single-element array in everything.json
used for Cask tests
...
```
1) Cask::Cask#to_h when loaded from cask file returns expected hash
Failure/Error: expect(JSON.pretty_generate(hash)).to eq(expected_json)
Diff:
@@ -28,9 +28,7 @@
"uninstall": [
{
"launchctl": "com.every.thing.agent",
- "delete": [
- "/Library/EverythingHelperTools"
- ],
+ "delete": "/Library/EverythingHelperTools",
"kext": "com.every.thing.driver",
"signal": [
[
@@ -103,7 +101,7 @@
],
"ruby_source_path": "Casks/everything.rb",
"ruby_source_checksum": {
- "sha256": "b2707d1952f02c3fa566b7ad2a707a847a959d36f51d3dee642dbe5deec12f27"
+ "sha256": "0c4af571cce1632fc6a3dcf3e75ba82a3283077ef12399428192c26f9d6f779b"
}
}
# ./test/cask/cask_spec.rb:225:in `block (4 levels) in <top (required)>'
# ./test/support/helper/spec/shared_context/homebrew_cask.rb:53:in `block (2 levels) in <top (required)>'
```
2024-01-21 01:32:15 +00:00
Issy Long
2c9e6e425b
Autofix Cask/ArrayAlphabetization
offenses in test fixtures
2024-01-14 20:57:08 +00:00
Rylan Polster
254fcf7c1f
Update livecheck test fixtures to use deprecate!
and disable!
2023-12-17 16:31:04 -05:00
Rylan Polster
40d3ab6a5d
Add tests and fix brew typecheck
2023-12-16 20:01:47 -05:00
Mike McQuaid
54012f14ce
cask: add installed_time
to JSON output.
...
This is provided for formulae in `installed.time` and is useful to have
for casks as well as formulae so let's output it here too.
2023-11-03 11:37:01 +00:00