apainintheneck
5cc1c85a5f
cachable: Move registry to test directory
...
Now we only include the cachable registry when running tests.
We basically just load it first and add a bunch of methods to
it before loading the rest of the formula files when we require
global.rb. I added a check to make sure this require order is
preserved.
I also made a bunch of methods private, stop excluding classes
that inherit from casks since it's unnecessary and add more docs.
2024-02-26 20:41:10 -08:00
apainintheneck
536ae08a44
cachable: make sure to clear caches between tests
...
This adds a registry for all modules and classes that
cachable is included in. The registry allows us to
programmatically clear all caches in between tests
so that we don't forget to do that when adding a new
class or refactoring code. The goal here is to reduce
the number of flaky tests in the future.
2024-02-25 17:47:30 -08:00
Bo Anderson
58874de60b
Generalise internal cross-image handling
2024-02-22 17:25:20 +00:00
Mike McQuaid
aa925598ee
Merge pull request #16699 from dduugg/modern-rspec
...
Modernize RSpec configuration
2024-02-19 16:56:53 +00:00
Mike McQuaid
412852bd5f
Apply suggestions from code review
...
Co-authored-by: Markus Reiter <me@reitermark.us>
2024-02-19 14:05:12 +00:00
Douglas Eichelberger
d6b3f5031a
Enable and fix warnings
2024-02-19 13:57:27 +00:00
Douglas Eichelberger
8a71570a6b
brew style --fix
2024-02-18 15:47:56 -08:00
Douglas Eichelberger
aab04229d1
Code review fixes
2024-02-11 20:27:39 -08:00
Douglas Eichelberger
5b5cfe89de
Resolve violations from removing hidden.rbi
2024-02-11 20:27:38 -08:00
Douglas Eichelberger
eb7c3e52a0
Require SystemInclude only where needed
2024-01-31 11:42:01 -08:00
Douglas Eichelberger
3a27cac7df
Merge pull request #16510 from dduugg/inverse-include-exclude-cop
...
Vendor remaining Rails cops, remove ActiveSupport
2024-01-30 11:59:10 -08:00
Douglas Eichelberger
e00d066d87
Replace Time refinement with Timer Util
2024-01-29 18:50:12 -08:00
Douglas Eichelberger
6472aca1a6
Prefer endless methods
2024-01-26 15:03:59 -08:00
Douglas Eichelberger
8c832e0905
Remove some fixed FIXMEs
2024-01-26 12:00:13 -08:00
Douglas Eichelberger
e574904cb7
Use each_with_object
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
1a40468ce4
Fix compact_blank style
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
2f8ad2f5e6
Inline index_by
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
53bba9c00f
cleanup
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
66aff2af7b
concise
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
4c25250e72
Improve atomic_write sig
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
1790904152
Resolve 'Error: can't add a new key into hash during iteration'
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
8efe73b32c
Add Object#deep_dup to extend/
2024-01-22 10:52:43 -08:00
Douglas Eichelberger
f6c7eb7124
Add hash/keys to extend/
2024-01-19 13:36:17 -08:00
Douglas Eichelberger
14f8a086d8
brew vendor-gems: commit updates.
2024-01-19 13:36:17 -08:00
Douglas Eichelberger
a87cdf0d21
Add Hash#deep_transform_values to extend/
2024-01-19 13:36:16 -08:00
Douglas Eichelberger
0cdd4eee3b
Add Hash#deep_merge to extend/
2024-01-19 13:36:16 -08:00
Douglas Eichelberger
8e9d294df2
Add File.atomic_write to extend/
2024-01-19 13:36:16 -08:00
Douglas Eichelberger
79e2379d98
Add Array#fourth to resolve cask errors
2024-01-19 13:36:16 -08:00
Douglas Eichelberger
c02520f604
Fix style/type violations
2024-01-19 13:36:16 -08:00
Douglas Eichelberger
2e21efff46
Add ActiveSupport String#exclude? to extend/
2024-01-19 13:35:34 -08:00
Douglas Eichelberger
b60d951d48
Update from upstream, remove unused methods
2024-01-19 13:34:52 -08:00
Douglas Eichelberger
f8de5dfd60
Copy enumerable file
2024-01-19 13:34:52 -08:00
Douglas Eichelberger
5546f778e5
Extend Module when requiring sorbet
2024-01-19 13:34:52 -08:00
Douglas Eichelberger
08e12b2383
Remove ActiveSupport Array access core extensions
2024-01-19 13:34:52 -08:00
Issy Long
c63723bd7d
Merge pull request #16501 from issyl0/rubocop-new-rules-style-redundant-freeze
...
Fix RuboCop `Style/RedundantFreeze` offenses
2024-01-19 15:05:08 +00:00
Issy Long
bc5e422815
Merge pull request #16497 from issyl0/rubocop-new-rules-style-array-intersect
...
Fix RuboCop `Style/ArrayIntersect` offenses
2024-01-19 13:00:30 +00:00
Patrick Linnane
74a487ccfc
hardware/cpu: add virtualized?
check
...
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2024-01-18 16:46:59 -08:00
Issy Long
f682147598
Fix RuboCop Style/RedundantFreeze
offenses
2024-01-18 22:20:01 +00:00
Issy Long
0e27dc2564
Fix RuboCop Style/ArrayIntersect
offenses
2024-01-18 14:11:43 +00:00
Michael Cho
0ff2458952
extend/ENV/shared: effective_arch as public API
2024-01-13 15:26:38 -05:00
Patrick Linnane
f63b089735
os/mac/hardware/cpu: add update comment
2024-01-06 08:58:20 -08:00
Douglas Eichelberger
ffd761d2e9
Create dedicated Attrable mixin for attr_ methods
2023-12-28 11:46:27 -08:00
Patrick Linnane
c0e6892c63
os/mac/hardware/cpu: update M3 values
2023-12-28 09:39:21 -08:00
Douglas Eichelberger
3abbf4447e
Some minor regexp match perf improvements
2023-12-27 13:16:36 -08:00
Bo Anderson
fba5a874fc
os/mac/hardware: use Westmere on >= Ventura
2023-12-23 04:58:53 +00:00
apainintheneck
536b37c766
cmd/config: Add core cask tap to output
...
This information is occasionally useful when debugging so we should
include it by default to make our lives easier.
2023-12-21 22:54:38 -08:00
Patrick Linnane
9dee80cb2d
various: fix style errors
2023-12-18 09:34:01 -08:00
Issy Long
149b0e4f31
Fix new Style/MutableConstant
RuboCop offenses for Ruby 3.1
...
- A follow-up to de592af20bbff5bcb548d2474f0722e59ff1129a, resetting the previous disabled comments too.
2023-12-16 11:57:06 +00:00
Issy Long
de592af20b
rubocop: Set TargetRubyVersion to 3.1 & disable all cops that fail
...
- As discussed in
https://github.com/Homebrew/brew/pull/16337#issuecomment-1855668516 ,
then we won't have the chicken/egg problem of fixing cops for syntax
that's unsupported on Ruby 2.6 _before_ we set the TargetRubyVersion
to 3.1, but if we set it too early then all the taps will fail.
2023-12-14 23:19:43 +00:00
Bo Anderson
5692c8ecbf
Fix style violations under newer RuboCop
2023-12-14 05:47:12 +00:00