Douglas Eichelberger
eb7c3e52a0
Require SystemInclude only where needed
2024-01-31 11:42:01 -08:00
Douglas Eichelberger
53bba9c00f
cleanup
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
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
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
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
f682147598
Fix RuboCop Style/RedundantFreeze
offenses
2024-01-18 22:20:01 +00:00
Douglas Eichelberger
7b1a3c7535
Remove ActiveSupport String indent core extension
2024-01-08 13:36:45 -08:00
Douglas Eichelberger
b3522b3bb8
Remove ActiveSupport String filters
2024-01-02 16:56:27 -08:00
Douglas Eichelberger
ffd761d2e9
Create dedicated Attrable mixin for attr_ methods
2023-12-28 11:46:27 -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
Douglas Eichelberger
7ebee52614
Remove monkey-patched Hash#except
2023-12-12 10:12:01 -08:00
Douglas Eichelberger
c7c539efa5
Strict typing
2023-11-26 10:05:14 -08:00
Douglas Eichelberger
b0338417c7
Vendor Object#blank?
2023-11-26 09:33:42 -08:00
Douglas Eichelberger
00ba09d73d
Remove use of ActiveSupport try
2023-11-05 09:28:19 -08:00
Mike McQuaid
20b8a74906
global: use correct user-agent.
2023-10-21 09:37:57 +01:00
Rui Chen
2c4b282bff
chore(global): update safari user-agent to latest
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-10-20 19:44:16 -04:00
Mike McQuaid
4e0ec2555e
Merge pull request #15986 from EricFromCanada/docs-assorted-improvements
...
Docs: assorted refinements for output
2023-09-11 13:06:52 +01:00
Eric Knibbe
2f79bdd257
global: add HOMEBREW_API_WWW
2023-09-11 02:26:37 -04:00
Rui Chen
e5c714fa91
chore: update safari UA to the latest
...
Signed-off-by: Rui Chen <rui@chenrui.dev>
2023-09-06 15:10:05 -04:00
Mike McQuaid
c940e15a5c
Use HOMEBREW_CELLAR_PLACEHOLDER
...
Similarly to HOMEBREW_PREFIX_PLACEHOLDER, this allows the substitution
of HOMEBREW_CELLAR in JSON output when using the API.
Fixes #15668 .
2023-07-18 10:59:27 +01:00
Markus Reiter
8274920217
Rename OS::Mac::Version
to MacOSVersion
.
2023-05-09 05:08:38 +02:00
Douglas Eichelberger
03ee70b1ae
Remove kernel/reporting extension
2023-04-26 09:16:55 -07:00
Douglas Eichelberger
8539607a89
Organize activesupport requires
2023-04-25 11:02:31 -07:00
Douglas Eichelberger
7224ff5f77
Include T::Sig in Module
2023-04-24 20:42:38 -07:00
Douglas Eichelberger
403f08db8b
Remove delegation
2023-04-16 09:30:21 -07:00
Douglas Eichelberger
b90897e280
Create git_repo attr
2023-04-15 19:35:13 -07:00
Douglas Eichelberger
429f23dcc6
Create GitRepoPath
2023-04-15 19:35:12 -07:00
apainintheneck
801ee5e474
Address feedback
...
- style nits
- better comments for tests that are not idempotent
- moved appdir placeholder constant to global.rb
2023-03-22 19:43:49 -07:00
apainintheneck
38146893c3
api_hashable: Make API path subs generic
...
This turns the ability to replace common paths with placeholders
into a mixin that can be used with both Casks and Formulae.
The idea here is to make formula hash generation more consistent.
2023-03-21 23:20:42 -07:00
Douglas Eichelberger
cc5b013cb9
Remove compatibility layer
2023-03-14 14:49:34 -07:00
Douglas Eichelberger
1943132cf6
Move i18n out of global
2023-03-11 17:27:53 -08:00
Mike McQuaid
5631310653
Auto-update from the API less often
...
Instead of doing so literally whenever we query for a formula, Instead
do so only when we're in an auto-updateable command.
This better fits the existing behaviour while still updating when it's
most important to do so.
2023-03-10 17:53:15 +00:00
Douglas Eichelberger
7aab1c2a38
Remove ActiveSupport String inflections
2023-03-07 10:16:52 -08:00
Douglas Eichelberger
e68b02c4a6
Move tests and requires
2023-03-03 12:44:23 -08:00
Douglas Eichelberger
91ad24b876
Remove Array#to_sentence monkey-patch
2023-03-03 12:44:22 -08:00
Bo Anderson
e86a8c2477
Move HOMEBREW_NO_INSTALL_FROM_API
defaults to shell
2023-02-24 21:53:08 +00:00
Mike McQuaid
2884b1649b
api: don't download files as root when Homebrew's not owned by root.
...
This was mentioned in a random comment. While we're here, make some
helper functions to query this a bit more nicely elsewhere when we do
it.
2023-02-23 10:04:50 +00:00
Mike McQuaid
c5252817c2
analytics: refactor InfluxDB/Google handling.
2023-02-15 16:34:50 +00:00
Mike McQuaid
237eec8ef8
Overhaul Formula/Cask JSON generation
...
- Use constants for placeholders
- Monkeypatch to set `HOMEBREW_PREFIX` consistently to placeholder
- Use environment variable to set `Dir.home` consistently to placeholder
- Use `appdir` short-circuit to set `Cask#appdir` consistently to placeholder
- Use `Cask.generating_hash!` to enable "generating mode" with these patches
- Fix `Formula#caveats` from JSON
Fixes #14505
Fixes #14595
2023-02-14 14:19:40 +00:00
Mike McQuaid
179974ce26
Merge pull request #14502 from dduugg/active-support-reduce
...
Remove active_support Time extensions
2023-02-05 11:51:48 +01:00
Douglas Eichelberger
24e7c2c5bd
Remove active_support Time extensions
2023-02-04 13:51:35 -08:00
Xuehai Pan
ba3bccf9ed
api: download from HOMEBREW_API_DOMAIN
2023-02-04 13:05:20 +00:00
Douglas Eichelberger
e98e668a34
remove redundant string extension
2023-01-28 08:26:11 -08:00
Mike McQuaid
77c0d38c35
brew style --fix
2022-12-13 11:37:06 +00:00
Troy McCabe
ac9a96874e
Adds brew docs
to close #13834
2022-09-11 22:10:37 -05:00
Rylan Polster
ac067eedb2
Create MacOSVersions
module
2022-06-29 11:34:49 -04:00