90 Commits

Author SHA1 Message Date
Dawid Dziurla
33f5c41cd2
dev-cmd/bump: check if Repology output is a version first 2022-12-05 16:20:35 +01:00
Dawid Dziurla
84795bdd02
dev-cmd/bump: don't use Repology version if livecheckable 2022-11-30 10:14:26 +01:00
Mohammad Zain Abbas
8496ca0416 Added skip_conditions support for resource 2022-09-14 03:42:12 +02:00
Bo Anderson
cd73e6bac5
Introduce more Ruby constants for values set by brew.sh 2022-06-17 19:47:57 +01:00
EricFromCanada
415f05ca31
bump: resume checking for TLS 1.3 support
macOS 12.3's shipping curl now supports TLS 1.3.
2022-04-11 22:59:33 -04:00
Issy Long
9ad3a9cefe
dev-cmd/bump: Tell the user why we didn't bump a package
Co-authored-by: Nanda H Krishna <me@nandahkrishna.com>
2022-02-20 17:56:33 +00:00
Issy Long
0a91c40ed5
dev-cmd/bump: Ignore Repology if the livecheck uses GithubLatest
- I got frustrated when I fixed the build and test failures for
  https://github.com/Homebrew/homebrew-core/pull /95430 only to have the
  audit step say it was a pre-release.
- Repology can list versions that are GitHub pre-releases. Pre-release
  versions of software are things we don't generally want to ship:
  there's an audit specifically for that.
- This fixes `brew bump` to not mark a Repology version as the newest if
  the formula's livecheck strategy is `GithubLatest`. If the livecheck
  doesn't exist, or its update strategy is something other than
  `GithubLatest`, Repology's reported package version is respected.
2022-02-19 21:41:17 +00:00
Nanda H Krishna
325d90bcbe
brew bump: don't use Repology for versioned formulae 2022-01-31 04:34:17 -05:00
Mike McQuaid
af6d995de8
dev-cmd/bump: add switch to open pull requests.
This enables the simplification of
https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb
and exposing this workflow to more Homebrew users.
2022-01-12 17:31:55 +00:00
Mike McQuaid
b09f421027
repology: always use Homebrew curl.
This seems to be required even with TLSv1.3 support now.

Also, while we're here, improve the error handling/output.
2022-01-03 13:17:12 +00:00
XuehaiPan
9ef52080e3 utils: extract common word "for" in reason 2021-11-23 23:59:09 +08:00
XuehaiPan
d749173adc utils: mark reason as keyword argument in ensure_formula_installed! 2021-11-23 23:31:22 +08:00
XuehaiPan
3376479e95 utils: add method ensure_formula_installed! 2021-11-23 22:48:39 +08:00
EricFromCanada
dd439b4c11
bump: skip PR check if livecheck does not return a version 2021-11-11 10:02:30 -05:00
EricFromCanada
c952ea7358
bump: fix tests 2021-10-25 15:55:11 -04:00
EricFromCanada
811d0fa0bd
bump: add option to retrieve a subset of results
Plus a few fixes for output.
2021-10-19 20:14:39 -04:00
Sam Ford
f03c12d2db
bump: support inheriting from a formula/cask 2021-08-02 09:12:23 -04:00
Nanda H Krishna
8e1c9234e3
dev-cmd/bump: fix empty array check 2021-05-09 18:07:33 +05:30
Rylan Polster
4e61f61a20
utils/github: handle non-standard tap remotes 2021-03-21 12:35:45 -04:00
nandahkrishna
8ddf9b37bd
Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2021-03-05 18:55:51 +05:30
nandahkrishna
ab0e427d3e
Disambiguate formulae/casks from different taps 2021-03-04 23:56:04 +05:30
nandahkrishna
6efb37206f
dev-cmd/bump: sort formulae and casks by name 2021-03-04 23:56:04 +05:30
nandahkrishna
7d5216c500
Improve formula/cask disambiguation 2021-03-04 23:56:04 +05:30
nandahkrishna
f11786d63d
Apply suggestions from code review
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2021-03-04 23:56:04 +05:30
nandahkrishna
22cc750c66
livecheck and bump: formula/cask disambiguation 2021-03-04 23:56:04 +05:30
nandahkrishna
88f78c4523
dev-cmd/bump: rescue if livecheck_result errors 2021-02-17 02:36:29 +05:30
nandahkrishna
bf60e2da3d
utils/repology: add constants for repository names 2021-02-17 02:12:18 +05:30
nandahkrishna
24bb6040a7
dev-cmd/bump: add cask support 2021-02-17 00:42:07 +05:30
EricFromCanada
cd3cb6928b indent suggested commands on subsequent line
and combine sequential puts calls
2021-01-26 15:36:44 -05:00
nandahkrishna
9c914106ed
dev-cmd/bump: increase test coverage 2021-01-25 17:12:43 +05:30
nandahkrishna
138f7de18f
Refactor brew bump: apply suggestions from code review
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com>
2021-01-24 19:10:47 +05:30
nandahkrishna
417b1d7a66
dev-cmd/bump: use Livecheck::SkipConditions 2021-01-24 19:10:47 +05:30
nandahkrishna
4fa01fc8b7
utils/repology: use project-by tool to retrieve Formula data 2021-01-24 19:10:47 +05:30
nandahkrishna
61ff1d7e74
dev-cmd/bump: fix skip message handling 2021-01-24 19:10:47 +05:30
nandahkrishna
e2ddf9894a
Refactor brew bump 2021-01-24 19:10:46 +05:30
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner 2021-01-18 21:20:11 -05:00
Dawid Dziurla
cf654da251
dev-cmd: indicate multiple named args in usage banner 2021-01-15 13:04:07 +01:00
Rylan Polster
da811373d3 Add named_args DSL for commands 2021-01-13 17:09:42 -05:00
Markus Reiter
5be4c9b5e0 Upgrade typed sigils. 2020-11-25 17:04:19 +01:00
EricFromCanada
72bc057014 manpage: fixes for formatting 2020-11-16 08:02:50 -05:00
Markus Reiter
da9289eff0 Add more type signatures. 2020-11-13 12:26:36 +01:00
Markus Reiter
24ae318a3d Move type annotations into files. 2020-10-10 14:59:39 +02:00
William Ma
fa7bd3bff6 args: Migrate usage of args loading methods to args.named 2020-08-23 09:02:20 -04:00
Baffour Adu Boampong
afe9a48373 Add limit to repology api 2020-08-18 22:18:03 +00:00
Baffour Adu Boampong
7982e6f3c0 Update response display 2020-08-18 13:29:36 +00:00
Baffour Adu Boampong
605228d07c
Update Library/Homebrew/dev-cmd/bump.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-08-18 09:53:39 +00:00
Baffour Adu Boampong
49882571ea
Update Library/Homebrew/dev-cmd/bump.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2020-08-17 14:52:15 +00:00
Elizabeth Tackett
dc1bbe7f81 handle requests for multiple formulae 2020-08-16 20:38:03 -05:00
Elizabeth Tackett
388b0ae8ba show formula livecheck and brew data when repology response is nil 2020-08-16 19:22:24 -05:00
Elizabeth Tackett
9cae9f284c update argument handling and syntactical feedback changes 2020-08-16 18:45:50 -05:00