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
Mike McQuaid
5a4e226b2a
Merge pull request #14372 from samford/rubocops-caveats-disallow-ansi-escape-codes
...
rubocops/caveats: Disallow ANSI escape codes
2023-01-19 09:56:19 +00:00
Mike McQuaid
653b349c8b
Change HOMEBREW_INSTALL_FROM_API update frequency
...
This doesn't need to be nearly as often for HOMEBREW_INSTALL_FROM_API users because we're getting the latest information from the API when needed rather than just at `brew update` time.
2023-01-18 15:11:42 +00:00
Sam Ford
a1993b9086
rubocops/caveats: Disallow ANSI escape codes
...
Formula caveats text appears on formulae.brew.sh but escape
characters, as used in ANSI escape codes, should not appear in HTML.
This commit adds a RuboCop to disallow escape characters in the
caveats text.
2023-01-16 01:30:19 -05:00
Ilya Kulakov
3d16112b14
cask: fix writability check backing up an artifact
2023-01-13 15:30:14 -08:00
Mike McQuaid
aa077d5f86
Merge pull request #14316 from alebcay/reproducible-gzip
...
utils: add reproducible_gzip helper function
2023-01-12 09:36:06 +00:00
Douglas Eichelberger
b4ed7b9924
Add tests
2023-01-11 09:04:09 -08:00
Kevin
dbf0e28f6b
Merge pull request #14344 from apainintheneck/allow-cask-switch-for-dev-cmds-on-linux
...
Allow --cask for linux dev cmds
2023-01-09 21:33:04 -08:00
apainintheneck
ad57705029
All --cask for linux dev cmds
...
This ability was removed around a month
ago but needs to be added back in.
Developers want to be able to use the
`bump` and `audit` commands when on Linux.
This is especially useful for CI.
2023-01-08 17:34:52 -08:00
Caleb Xu
f6474c5048
utils: prepare for deprecation of Utils.gzip
2023-01-06 22:58:53 -05:00
Caleb Xu
c75adc8238
utils/gzip: introduce new module
2023-01-06 22:58:22 -05:00
Rylan Polster
08529c38a6
Expand testing of Homebrew::API
2023-01-06 02:46:21 -05: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
Mike McQuaid
077e9dccaf
Merge pull request #14322 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.42.0
...
build(deps): bump rubocop from 1.41.1 to 1.42.0 in /Library/Homebrew
2023-01-03 13:34:05 +00:00
Rylan Polster
7ca5a5d9a7
Simplify require "method_source"
calls
2023-01-02 17:41:36 -05:00
Kevin
2e0b18f762
Merge pull request #14315 from apainintheneck/better-error-cask-on-linux
...
cli/parser: Better error message for cask on linux
2023-01-02 13:21:56 -08: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
Mike McQuaid
585d10fdc8
Merge pull request #14313 from apainintheneck/fix-brew-prof
...
cmd/prof: Fix gem errors
2023-01-02 19:14:03 +00:00
apainintheneck
d8c2e311ab
Use odie instead of bare exception
...
The reason that odie works well here
is that it doesn't print a stacktrace
or get caught and print the help page.
2023-01-02 10:59:08 -08:00
Kevin
073c004ef3
Add :needs_network to brew prof tests
...
They need network access to download the profiler gems.
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-01-02 10:02:51 -08:00
apainintheneck
a8384c0ce7
cli/parser: Better error message for cask on linux
...
1. Validate options before constraint violations. This allows
us to error out when --cask is passed on Linux before getting
a constraint violation when --cask and --formula are set.
2. Skip printing the help page when --cask is passed on Linux.
2022-12-31 12:34:18 -08:00
apainintheneck
d318c56013
Add integration tests for profiler
2022-12-30 19:37:32 -08: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
Bevan Kay
3bdab156c2
add additional test
2022-12-29 12:54:21 +11:00
Rylan Polster
d316819f0c
Add tests
2022-12-28 16:10:26 -05:00
Rylan Polster
a504d2c1aa
Check for loose Hardware::CPU
method calls
2022-12-28 16:10:26 -05:00
Mike McQuaid
1a21c7e7ef
Merge pull request #13658 from bevanjkay/extract-plist-installerpath
...
unversioned_cask_checker: check installer artifacts
2022-12-28 15:05:26 +00:00
Bevan Kay
db9d48a7ec
fix tests
2022-12-28 12:50:16 +11:00
Bevan Kay
e0f067bab8
Update tests
2022-12-28 11:49:37 +11:00
Kevin
740f9ddcc6
Merge pull request #14260 from apainintheneck/cleanup-search-module
...
Cleanup search module
2022-12-20 18:09:34 -08:00
Branch Vincent
db6d3156f2
python: reinstate pip's --no-binary
2022-12-19 23:25:53 -08:00
Carlo Cabrera
4bcd166956
Merge pull request #14239 from orf/enable-wheel-cache
...
Allow pip to use the local wheel cache while installing dependencies
2022-12-20 13:15:43 +08:00
Bevan Kay
01f865f93a
update test
2022-12-19 14:35:31 +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
Tom Forbes
173e6bf1d3
Fix tests
2022-12-10 15:02:18 +00:00
Michael Cho
776d6b934d
language/python: optionally link manpages
2022-12-08 17:03:59 -08:00
EricFromCanada
8f445de261
dev-cmd/create: also prompt for name with --cask
2022-12-06 13:04:51 -05:00
Sean Molenaar
855a2b8096
Merge pull request #14209 from SMillerDev/feature/caveats/respect_require_root
...
caveats: print sudo in caveats if service requires it
2022-12-06 13:06:03 +01:00
Mike McQuaid
3070fd7fef
Merge pull request #14206 from apainintheneck/make-formula-default-on-linux
...
Make :formula? the default on Linux
2022-12-06 11:29:16 +00:00
Sam Ford
e56735a171
ElectronBuilder: Allow Date/Time deserialization
...
The `ElectronBuilder` strategy uses `YAML#safe_load` to parse YAML
content and this limits deserialization to appropriate classes. We
recently encountered a `Tried to load unspecified class: Time` error
when using the `ElectronBuilder` strategy on a `latest-mac.yml` file
containing `releaseDate: 2022-12-01T02:02:46.419Z`.
The electron-builder YAML files we usually encounter use single
quotes around the `releaseDate` value to ensure it's treated as a
string (e.g., `releaseDate: '2022-10-12T17:55:26.718Z'`) and this is
what we do in `electron_builder_spec.rb`. The aforementioned YAML
file doesn't use single quotes around the value, so it's treated as
a timestamp and apparently this makes Psych use `Time` (which
`#safe_load` doesn't allow by default).
Seeing as we can't control the YAML content and there's a chance we
may encounter other files like this in the future, this commit
modifies the related `#safe_load` call to allow `Time` (and `Date`
for good measure). This will resolve the aforementioned error and
allow the `ElectronBuilder` strategy to work as expected in this
scenario.
2022-12-05 21:45:18 -05:00
Sean Molenaar
0cd10ed65e
caveats: print sudo in caveats if service requires it
2022-12-05 12:12:51 +01:00
apainintheneck
35500130c4
Update parser tests
...
- Remove named_args linux specs now that that
logic has been moved to the parser
2022-12-04 23:02:44 -08:00
Bevan Kay
96574c831f
fix tests
2022-12-05 15:20:45 +11:00
apainintheneck
b7e28ef48f
Make :formula? the default on Linux
...
This makes :formula? the default whenever
defined throughout the codebase on Linux.
It also makes :cask? illegal for all Linux
users.
2022-12-04 19:43:12 -08:00
Bevan Kay
40fd8f7d78
unversioned_cask_checker: check installer artifacts
2022-12-05 14:26:38 +11:00
Tim Visher
fc31d5560c
livecheck/strategy/sparkle.rb: Add macos
to the candidate os
values list
...
As can be seen by TextExpander's Sparkle Feed, `macos` is a possible
value.
```
$ date -u '+%FT%T%z' && xmlstarlet sel -t -v '//rss//channel//item//enclosure/@*[name()="url" or name()="sparkle:version" or name()="sparkle:shortVersionString" or name()="sparkle:os"]' <(curl --location --silent https://textexpander.com/appcast/TextExpander-macOS.xml )
2022-10-22T17:07:06+0000
https://cdn.textexpander.com/mac/731.2/TextExpander_7.3.1.dmg
731.2
7.3.1
macos
https://cdn.textexpander.com/mac/720.16/TextExpander_7.2.dmg
720.16
7.2
macos
https://cdn.textexpander.com/mac/710.6/TextExpander_7.1.dmg
710.6
7.1
macos
https://cdn.textexpander.com/mac/702.2/TextExpander_7.0.2.dmg
702.2
7.0.2
macos
https://cdn.textexpander.com/mac/701.2/TextExpander_7.0.1.dmg
701.2
7.0.1
macos
https://cdn.textexpander.com/mac/700.33/TextExpander_7.0.dmg
700.33
7.0
macos
https://cdn.textexpander.com/mac/685.6/TextExpander_6.8.5.zip
685.6
6.8.5
https://cdn.textexpander.com/mac/684.8/TextExpander_6.8.4.zip
684.8
6.8.4
https://cdn.textexpander.com/mac/683.2/TextExpander_6.8.3.zip
683.2
6.8.3
https://cdn.textexpander.com/mac/682.10/TextExpander_6.8.2.zip
682.10
6.8.2
https://cdn.textexpander.com/mac/681.3/TextExpander_6.8.1.zip
681.3
6.8.1
https://cdn.textexpander.com/mac/680.30/TextExpander_6.8.zip
680.30
6.8
https://cdn.textexpander.com/mac/TextExpander_6.5.6.zip
656.3
6.5.6
https://cdn.textexpander.com/mac/TextExpander_6.5.5.zip
655.0
6.5.5
https://cdn.textexpander.com/mac/TextExpander_6.5.4.zip
654.3
6.5.4
https://cdn.textexpander.com/mac/TextExpander_6.5.3.zip
653.3
6.5.3
https://cdn.textexpander.com/mac/TextExpander_6.5.2.zip
652.0
6.5.2
https://smilesoftware.com/downloads/test/TextExpander_6.5.1.zip
651.5
6.5.1
```
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2022-12-04 14:21:27 -05:00
apainintheneck
00990e34a7
Merge branch 'master' into create-cop-for-os-checks
2022-11-29 23:14:15 -08:00