1667 Commits

Author SHA1 Message Date
Mike McQuaid
1588f6cc56
Merge pull request #13356 from SMillerDev/feature/influx_analytics
analytics: optionally duplicate to InfluxDB
2023-01-20 15:19:44 +00:00
Mike McQuaid
1adc2c096b
Merge pull request #14370 from Kentzo/fix-cask-lowpriv-sudo
cask: don't assume that sudo has write access to the caskroom
2023-01-20 10:57:35 +00:00
Sean Molenaar
59ebdab2b7
analytics: switch to InfluxDB for logging 2023-01-19 18:15:27 +01:00
Mike McQuaid
344d32bf7f
Merge pull request #14368 from Kentzo/fix-cask-backup
cask: fix writability check backing up an artifact
2023-01-19 09:58:03 +00:00
Ilya Kulakov
618700a95c cask: don't assume that sudo has write access to the caskroom 2023-01-13 18:10:21 -08:00
Ilya Kulakov
085bd8ddd1 cask: don't attempt to make a directory that already exists. 2023-01-13 16:15:31 -08:00
Ilya Kulakov
3d16112b14 cask: fix writability check backing up an artifact 2023-01-13 15:30:14 -08:00
Mike McQuaid
9dbd76fced
Merge pull request #14350 from Rylan12/fix-depends-on-arch
Fix `depends_on arch:` when loading casks from API
2023-01-11 19:24:55 +00:00
Rylan Polster
4c8c547027
Add clarifying comment 2023-01-11 13:16:34 -05:00
Douglas Eichelberger
9958ab3ecf Make Cask::DSL::Container#pairs a derived property 2023-01-11 09:04:09 -08:00
Rylan Polster
6468897458
Fix depends_on arch: when loading casks from API 2023-01-10 12:35:39 -05:00
Rylan Polster
3c4f60c604
Create metadata subdirectory when needed 2023-01-08 02:45:56 -05:00
Mike McQuaid
20a200bdb7
cask/installer: ensure config_path exists.
I encountered this when installing `microsoft-edge`.

Perhaps `HOMEBREW_INSTALL_FROM_API` related.
2023-01-07 19:44:44 +00:00
Rylan Polster
ec8adb617e
Use cask-source API when needed 2023-01-06 02:46:22 -05:00
Rylan Polster
ffc74a51fb
Load *flight blocks from API 2023-01-06 02:46:22 -05:00
Rylan Polster
374b61584b
Load casks from the JSON API with HOMEBREW_INSTALL_FROM_API 2023-01-06 02:46:21 -05:00
Mike McQuaid
37be5bea52
dev-cmd/edit: handle editing with install_from_api.
Before this change, this would fail every time, even when available on
disk (which was not the case for formulae).

With this change, it will attempt to find it from a tap on disk and only
fail if it cannot be found in any.
2023-01-04 13:51:21 +00:00
Rylan Polster
a81710542f
Merge pull request #14324 from Rylan12/flight-blocks-cask-api
Include `*flight` block source in cask API
2023-01-03 11:44:53 -05:00
Rylan Polster
7ca5a5d9a7
Simplify require "method_source" calls 2023-01-02 17:41:36 -05:00
Rylan Polster
2d5d132713
Include *flight block source in cask API 2023-01-02 14:33:33 -05:00
Mike McQuaid
6a25229567
brew style --fix 2023-01-02 19:18:51 +00:00
Rylan Polster
55a8c0208f
Merge pull request #14303 from Rylan12/cask-json-api-container
Use JSON instead of `#inspect` to include cask container in API
2022-12-29 14:33:52 -05:00
Mike McQuaid
5994f165f5
Merge pull request #14123 from bevanjkay/cask-wildcard-launchctl
cask/artifact/abstract_uninstall: allow wildcard entries for launchctl
2022-12-29 19:26:53 +00:00
Rylan Polster
7a85492176
Use JSON instead of #inspect to include cask container in API 2022-12-29 02:05:16 -05:00
Patrick Linnane
7b6c8329b1
Update Library/Homebrew/cask/audit.rb
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2022-12-28 21:31:02 -08:00
Patrick Linnane
ed6d7ce995
cask/audit: improve handling nil in sparkle 2022-12-28 21:17:38 -08:00
Bevan Kay
3869bf156c
change line splitting method 2022-12-29 12:54:59 +11:00
Bevan Kay
c45a32ea8d
Update Library/Homebrew/cask/audit.rb
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2022-12-28 16:32:58 +11:00
Bevan Kay
2788efb732
Update audit.rb 2022-12-28 16:26:45 +11:00
Bevan Kay
3e11f315f7
cask/audit: improve sparkle minimum version audit 2022-12-28 15:18:59 +11:00
Bevan Kay
db9d48a7ec
fix tests 2022-12-28 12:50:16 +11:00
Rylan Polster
09a2ccdf24
Improve minimum macOS version audit for casks 2022-12-27 18:14:46 -05:00
Nanda H Krishna
fe0eb9b5b0
Fix style issues 2022-12-22 23:52:26 -05:00
Bevan Kay
2614a29419
fix style 2022-12-19 14:43:16 +11:00
Bevan Kay
84f288be79
fix style 2022-12-19 14:39:48 +11:00
Bevan Kay
1ddd130ef9
add comment to .drop(), don't add blank lines to services array 2022-12-19 14:35:20 +11:00
apainintheneck
47b3f6fe6e Stop including/extending search.rb
- Instead use class methods.
- This is better than use it as a mixin
  when only a small number of methods are
  used in each class or module.
- It also allows us to conditionally
  require it in `brew install`.
- Removed unused search require in descriptions.rb.
2022-12-17 11:08:13 -08:00
Mike McQuaid
77c0d38c35
brew style --fix 2022-12-13 11:37:06 +00:00
Bevan Kay
e8e6ee30b4
add initial tests 2022-12-13 00:00:43 +11:00
Bevan Kay
836efe621f
cask/artifiact/abstract_uninstall: allow wildcard entries for launchctl 2022-12-05 15:08:23 +11:00
apainintheneck
c477b9aab3 Cleanup after adding os specific rubocop
- Change name of rubocop warning
- Disable linting on remaining offending lines
- Add todos to move lines with disabled linting
  checks to extend/os in the future
2022-11-29 23:13:50 -08:00
Daniel Bayley
b9ee9b868d Fix install <cask> --dry-run 2022-11-11 17:33:11 +00:00
Bevan Kay
33d3a5d728
cask/artifiact/abstract_uninstall: allow wildcard entries for launchctl 2022-11-09 13:21:49 +11:00
moabits
b57cea84dd Fix style 2022-11-04 17:36:47 +01:00
moabits
a4bbdf8500 Update description for unsigned_accessibility caveat 2022-11-04 17:05:49 +01:00
Patrick Linnane
a975ad1a5c
Fix: Sparkle audit prior to el_capitan 2022-11-02 21:30:51 -07:00
Bo Anderson
31e97ca500
cask/dsl/depends_on: fix type signature 2022-11-01 20:49:16 +00:00
Sean Molenaar
f5c6667980
Update Library/Homebrew/cask/audit.rb
Co-authored-by: Bo Anderson <mail@boanderson.me>
2022-11-01 21:13:03 +01:00
Sean Molenaar
94c0d8917e
fix: allow sparkle without a macOS version 2022-11-01 20:49:43 +01:00
Mike McQuaid
29e3e5906b
Merge pull request #14060 from SMillerDev/feature/cask/minos_audit
cask: audit for minimal OS version in sparkle feeds
2022-11-01 12:46:48 +00:00