Bo Anderson
b7d6d00c34
api: use signed endpoint
2023-02-22 21:53:32 +00:00
Mike McQuaid
f7f04bae26
api: use formulae.brew.sh for cask-source API again.
...
GitHub's raw endpoint is proving hilariously unreliable for us here.
2023-02-16 12:05:38 +00:00
Mike McQuaid
2a01529cad
api/versions: remove.
...
We no longer (never?) need/use these APIs so can remove them from here
and from Homebrew/formulae.brew.sh.
2023-02-04 13:09:59 +01:00
Mike McQuaid
561e520467
api: warn rather than fail if we've got a cached version.
...
Rather than failing every time we fail to update (breaking most usage
while offline) instead only fail if we cannot obtain the JSON and we
don't have a valid local file we can use.
Also tweak the timeout and retry logic and values to make a bit more
sense in this context and not be so noisy when offline.
2023-02-03 10:22:50 +00:00
Rylan Polster
014b603b1f
Fix tests
2023-01-28 02:15:05 -06:00
Rylan Polster
08529c38a6
Expand testing of Homebrew::API
2023-01-06 02:46:21 -05:00
Rylan Polster
89483abda9
Remove Bottle API
2022-06-14 16:06:05 -04:00
Issy Long
72e48024f0
Fix (auto-correct) RuboCop Rspec/BeEq
offenses
2022-03-01 00:10:14 +00:00
Rylan Polster
5d536d66fc
Rename HOMEBREW_JSON_CORE
to HOMEBREW_INSTALL_FROM_API
2021-08-27 00:24:15 -04:00
Rylan Polster
e08d5f113c
Make Homebrew::API::Versions#latest_cask_version
tests macOS-only
2021-08-26 23:35:33 -04:00
Rylan Polster
186c839525
Fix tests
2021-08-26 23:21:48 -04:00
Rylan Polster
a8c03c1cc6
Restrict HOMEBREW_JSON_CORE
use in tests
2021-08-06 11:52:21 -04:00
Rylan Polster
b1215800d4
Fix tests
2021-08-06 11:42:55 -04:00
Rylan Polster
2afbd38dde
Remove extra comment
2021-08-06 04:35:45 -04:00
Rylan Polster
737dd1654b
Refactor API methods
2021-08-06 04:31:27 -04:00