Mike McQuaid
aeee3637e5
Merge pull request #19808 from Homebrew/cask-dsl-initialize-instance-variables-2
...
Cask::DSL: initialize more instance variables
2025-04-23 07:23:38 +00:00
Bevan Kay
b255a670c0
bump-formula-pr: restore pr message
2025-04-23 14:45:15 +10:00
Sam Ford
6f511ee4e2
Cask::DSL: initialize more instance variables
...
I recently updated `Cask::DSL` to define instance variables in
`#initialize` to get us closer to resolving a "shape variation"
warning from Ruby. The reason why we continued to receive this warning
after the previous changes is because I overlooked the variables that
are set using `set_unique_stanza`.
The tricky part about those instance variables is that we need to be
able to identify if they've been set. I've handled this by using a
`nil` initial value and updating the `instance_variable_defined?`
condition to check for a non-`nil` value instead. This works for these
variables but it would be a problem if we ever have a DSL method that
accepts a `nil` argument.
2025-04-22 23:21:05 -04:00
Sam Ford
5b5c460ab9
Cask::DSL: define instance variables in initialize
...
We're now seeing warnings related to the cask DSL surfaced by Ruby
3.4:
```
/opt/homebrew/Library/Homebrew/cask/dsl.rb:456: warning: The class
Cask::DSL reached 8 shape variations, instance variables accesses
will be slower and memory usage increased.
It is recommended to define instance variables in a consistent order,
for instance by eagerly defining them all in the #initialize method.
```
I've been working on upgrading `Cask::DSL` to `typed: strict` and
part of that involves defining all of the instance variables in the
`initialize` method, so I've extracted this part of that work as a
way of helping to resolve the aforementioned warning. This doesn't
fully resolve the warning but it addresses what it was originally
referencing, at least.
For what it's worth, this includes some type fixes but I've only
included what's necessary to pass `brew typecheck`.
2025-04-22 18:12:33 -04:00
Sam Ford
c495aa3e63
Cask::DSL::DependsOn: add empty?, present? methods
...
`#present?` is called on a `DependsOn` object in `Cask::DSL` and this
is seemingly deferred to the underlying hash object but Sorbet doesn't
understand this kind of `SimpleDelegator` magic. This adds `empty?`
and `present?` methods that explicitly interact with the hash in a
way that Sorbet can understand.
2025-04-22 18:07:09 -04:00
Patrick Linnane
2f67c29db6
Exclude parser again
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-04-22 13:00:19 -07:00
BrewTestBot
aed2a35362
Update RBI files for sorbet.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2025-04-22 19:24:40 +00:00
BrewTestBot
9dec0f5a8a
brew vendor-gems: commit updates.
2025-04-22 19:24:35 +00:00
dependabot[bot]
4ff6d1e94e
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
...
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ), [sorbet-runtime](https://github.com/sorbet/sorbet ), [sorbet](https://github.com/sorbet/sorbet ) and [sorbet-static](https://github.com/sorbet/sorbet ).
Updates `sorbet-static-and-runtime` from 0.5.12026 to 0.5.12028
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.12026 to 0.5.12028
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet` from 0.5.12026 to 0.5.12028
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static` from 0.5.12026 to 0.5.12028
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
dependency-version: 0.5.12028
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-runtime
dependency-version: 0.5.12028
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet
dependency-version: 0.5.12028
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-static
dependency-version: 0.5.12028
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-22 19:20:59 +00:00
Patrick Linnane
5d8d453a90
Portable Ruby 3.4.3
2025-04-22 11:50:08 -07:00
Mike McQuaid
c9a7b62b1d
Homebrew 4.5 deprecations/disables/removals
...
The usual cycle of deprecating, disabling, and removing things in
Homebrew major/minor releases.
2025-04-22 17:15:23 +01:00
Bevan Kay
de8c088d15
fix opening PR from fork
2025-04-22 22:03:49 +10:00
Bevan Kay
2b132c0802
dev-cmd/bump-formula-pr: fix reference
2025-04-22 22:03:18 +10:00
Bevan Kay
c5a3879fdb
bump: bump synced formula together
2025-04-22 22:03:06 +10:00
Mike McQuaid
7873f0200f
Revert "bump: bump synced formula together"
2025-04-22 12:33:59 +01:00
Mike McQuaid
c45a734293
Merge pull request #19213 from bevanjkay/bump-synced-versions
...
bump: bump synced formula together
2025-04-22 10:02:12 +00:00
Mike McQuaid
444a520836
Merge pull request #19578 from botantony/replacement-type
...
deprecate!/disable!: allow to specify replacement type
2025-04-22 08:12:52 +00:00
Patrick Linnane
bc6a5d2844
Merge pull request #19791 from Homebrew/dependabot/pip/Library/Homebrew/formula-analytics/setuptools-79.0.0
...
build(deps): bump setuptools from 78.1.0 to 79.0.0 in /Library/Homebrew/formula-analytics
2025-04-22 04:12:30 +00: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
ca447e1ce9
deprecate!/disable!: replacement_formula/replacement_cask fields
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-21 21:13:25 +02:00
botantony
e594e7e0bb
deprecate!/disable!: allow to specify replacement type
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-21 21:13:25 +02:00
BrewTestBot
8d88ba3d1a
brew vendor-gems: commit updates.
2025-04-21 18:45:14 +00:00
dependabot[bot]
afbe1d86e1
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
...
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ), [sorbet-runtime](https://github.com/sorbet/sorbet ), [sorbet](https://github.com/sorbet/sorbet ) and [sorbet-static](https://github.com/sorbet/sorbet ).
Updates `sorbet-static-and-runtime` from 0.5.12024 to 0.5.12026
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.12024 to 0.5.12026
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet` from 0.5.12024 to 0.5.12026
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static` from 0.5.12024 to 0.5.12026
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
dependency-version: 0.5.12026
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-runtime
dependency-version: 0.5.12026
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet
dependency-version: 0.5.12026
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-static
dependency-version: 0.5.12026
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-21 18:31:22 +00:00
dependabot[bot]
9de4ca27df
build(deps): bump setuptools in /Library/Homebrew/formula-analytics
...
Bumps [setuptools](https://github.com/pypa/setuptools ) from 78.1.0 to 79.0.0.
- [Release notes](https://github.com/pypa/setuptools/releases )
- [Changelog](https://github.com/pypa/setuptools/blob/main/NEWS.rst )
- [Commits](https://github.com/pypa/setuptools/compare/v78.1.0...v79.0.0 )
---
updated-dependencies:
- dependency-name: setuptools
dependency-version: 79.0.0
dependency-type: indirect
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-21 18:29:39 +00:00
Patrick Linnane
e8f7d02e37
Disable RSpec/IncludeExamples
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-04-18 19:54:16 -07:00
BrewTestBot
a505b67b91
Update RBI files for rubocop-rspec.
...
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml ) workflow.
2025-04-18 18:53:39 -07:00
BrewTestBot
49cc9bc17b
brew vendor-gems: commit updates.
2025-04-18 18:53:39 -07:00
dependabot[bot]
9cf387c1ee
build(deps-dev): bump rubocop-rspec in /Library/Homebrew
...
Bumps [rubocop-rspec](https://github.com/rubocop/rubocop-rspec ) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/rubocop/rubocop-rspec/releases )
- [Changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop-rspec/compare/v3.5.0...v3.6.0 )
---
updated-dependencies:
- dependency-name: rubocop-rspec
dependency-version: 3.6.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-18 18:53:37 -07:00
Patrick Linnane
2f0c160739
Merge pull request #19787 from Homebrew/dependabot/bundler/Library/Homebrew/sorbet-185e0b1891
...
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
2025-04-18 21:38:43 +00:00
BrewTestBot
fb64b796b0
brew vendor-gems: commit updates.
2025-04-18 21:28:31 +00:00
dependabot[bot]
885c9f65c0
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
...
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ), [sorbet-runtime](https://github.com/sorbet/sorbet ), [sorbet](https://github.com/sorbet/sorbet ) and [sorbet-static](https://github.com/sorbet/sorbet ).
Updates `sorbet-static-and-runtime` from 0.5.12020 to 0.5.12024
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.12020 to 0.5.12024
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet` from 0.5.12020 to 0.5.12024
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static` from 0.5.12020 to 0.5.12024
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
dependency-version: 0.5.12024
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-runtime
dependency-version: 0.5.12024
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet
dependency-version: 0.5.12024
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-static
dependency-version: 0.5.12024
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-18 18:54:03 +00:00
Bo Anderson
30c7e6024f
standalone/init: enable more warnings for developers
2025-04-18 17:41:56 +01:00
BrewTestBot
8b942368a5
brew vendor-gems: commit updates.
2025-04-17 20:27:24 +00:00
dependabot[bot]
cade63c1dc
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
...
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ), [sorbet-runtime](https://github.com/sorbet/sorbet ), [sorbet](https://github.com/sorbet/sorbet ) and [sorbet-static](https://github.com/sorbet/sorbet ).
Updates `sorbet-static-and-runtime` from 0.5.12017 to 0.5.12020
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.12017 to 0.5.12020
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet` from 0.5.12017 to 0.5.12020
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static` from 0.5.12017 to 0.5.12020
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
dependency-version: 0.5.12020
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-runtime
dependency-version: 0.5.12020
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet
dependency-version: 0.5.12020
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-static
dependency-version: 0.5.12020
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-17 18:49:08 +00:00
BrewTestBot
4800f9f580
brew vendor-gems: commit updates.
2025-04-16 17:19:08 +00:00
dependabot[bot]
ade01d62b4
build(deps): bump the sorbet group in /Library/Homebrew with 4 updates
...
Bumps the sorbet group in /Library/Homebrew with 4 updates: [sorbet-static-and-runtime](https://github.com/sorbet/sorbet ), [sorbet-runtime](https://github.com/sorbet/sorbet ), [sorbet](https://github.com/sorbet/sorbet ) and [sorbet-static](https://github.com/sorbet/sorbet ).
Updates `sorbet-static-and-runtime` from 0.5.12016 to 0.5.12017
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-runtime` from 0.5.12016 to 0.5.12017
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet` from 0.5.12016 to 0.5.12017
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
Updates `sorbet-static` from 0.5.12016 to 0.5.12017
- [Release notes](https://github.com/sorbet/sorbet/releases )
- [Commits](https://github.com/sorbet/sorbet/commits )
---
updated-dependencies:
- dependency-name: sorbet-static-and-runtime
dependency-version: 0.5.12017
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-runtime
dependency-version: 0.5.12017
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet
dependency-version: 0.5.12017
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
- dependency-name: sorbet-static
dependency-version: 0.5.12017
dependency-type: indirect
update-type: version-update:semver-patch
dependency-group: sorbet
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 17:11:09 +00:00
Bo Anderson
dc9d97cfc7
Merge pull request #19778 from Homebrew/rm-api-base64-gem
...
api: remove TODO comment
2025-04-16 16:35:59 +00:00
Patrick Linnane
2bb9f6f5e3
api: remove TODO comment
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-04-16 09:26:13 -07:00
Bo Anderson
f530863a29
Merge pull request #19770 from Homebrew/global-no-fileutils
...
global: mark `extend FileUtils` for dropping
2025-04-16 16:25:39 +00:00
Bo Anderson
dd298af691
Merge pull request #19777 from Homebrew/cask-container-test-fix-3.4
...
test/cask/dsl/container_spec: fix test failure with Ruby 3.4
2025-04-16 16:22:53 +00:00
Bo Anderson
3589574f67
Merge pull request #19776 from Homebrew/cask-warning-fix
...
cask/artifact/abstract_flight_block: fix warning in Ruby 3.4
2025-04-16 16:22:46 +00:00
Bo Anderson
f863e1ed51
Merge pull request #19775 from Homebrew/services-fileutils
...
services: fix FileUtils usage in Ruby 3.4
2025-04-16 16:22:39 +00:00
Bo Anderson
4a35e781d6
Merge pull request #19774 from Homebrew/aliases-require
...
aliases: fix missing require with Ruby 3.4
2025-04-16 16:22:32 +00:00
Bo Anderson
3049d21ca0
test/cask/dsl/container_spec: fix test failure with Ruby 3.4
2025-04-16 17:10:10 +01:00
Bo Anderson
4cda5a1aa9
cask/artifact/abstract_flight_block: fix warning in Ruby 3.4
2025-04-16 17:06:59 +01:00
Bo Anderson
1db3f6d694
services: fix FileUtils usage in Ruby 3.4
2025-04-16 17:05:51 +01:00
Bo Anderson
9410a7858b
aliases: fix missing require with Ruby 3.4
2025-04-16 17:03:40 +01:00
Bo Anderson
ccee96511f
global: drop extend FileUtils
2025-04-16 17:02:22 +01:00
Bo Anderson
e8f9dfc3e9
mktemp: drop include FileUtils
2025-04-16 16:22:36 +01:00
Bevan Kay
7ccdc340a3
bump: bump synced formula together
2025-04-16 22:49:14 +10:00