kettle-jem-appraisals 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +65 -1
- data/README.md +94 -136
- data/lib/kettle/jem/appraisals/cli.rb +1 -11
- data/lib/kettle/jem/appraisals/ruby_series_detector.rb +3 -68
- data/lib/kettle/jem/appraisals/version.rb +1 -1
- data/lib/kettle/jem/appraisals.rb +0 -1
- data/sig/kettle/jem/appraisals.rbs +0 -16
- data.tar.gz.sig +0 -0
- metadata +397 -350
- metadata.gz.sig +0 -0
- data/lib/kettle/jem/appraisals/workflow_strategy_generator.rb +0 -135
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac59f719f55070f07a480e8ed1d48969b9054d9cb9bc0a48966bc655495aeb63
|
|
4
|
+
data.tar.gz: 540f958054a88114b1d686422bcb7b8b239ae48998cf64d78e64721e58bbb483
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 42806eea5d1e0cdc9a916761d287e55bc03f823bd20b962cc116fdcdfd1ed45d957ae65bdd59c72e6a8955ac393bba911f3346c36dca788bf95a1d328f740c5b
|
|
7
|
+
data.tar.gz: 8386ea010fefedd1dbcea8b016c2580efbcb862e4e4447c3cbf4a473cf1f15ef4b262547a80082895deb07a372098e062180e2d3f60b6c7fe7cf38003fa111f8
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,66 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [0.1.10] - 2026-12-04
|
|
34
|
+
|
|
35
|
+
- TAG: [v0.1.10][0.1.10t]
|
|
36
|
+
- COVERAGE: 95.44% -- 900/943 lines in 14 files
|
|
37
|
+
- BRANCH COVERAGE: 83.96% -- 267/318 branches in 14 files
|
|
38
|
+
- 91.46% documented
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- [kc] kettle-jem/template: updated 13 project files since the last release:
|
|
43
|
+
- dependencies (9)
|
|
44
|
+
- documentation (1)
|
|
45
|
+
- other (3)
|
|
46
|
+
|
|
47
|
+
- kettle-jem-template-20261204-001 - Documented the `autoload` library-loading
|
|
48
|
+
convention and the `kettle-jem`-managed `version.rb` `require_relative` exception in `AGENTS.md`.
|
|
49
|
+
|
|
50
|
+
## [0.1.9] - 2026-12-04
|
|
51
|
+
|
|
52
|
+
- TAG: [v0.1.9][0.1.9t]
|
|
53
|
+
- COVERAGE: 95.44% -- 900/943 lines in 14 files
|
|
54
|
+
- BRANCH COVERAGE: 83.96% -- 267/318 branches in 14 files
|
|
55
|
+
- 91.46% documented
|
|
56
|
+
|
|
57
|
+
### Added
|
|
58
|
+
|
|
59
|
+
- Use kettle-rb's shared Ruby-series bucket range calculation.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
|
|
63
|
+
- Widen `kettle-jem` runtime dependency from `~> 7.1, >= 7.1.28` to `>= 7.1.28, < 9` to support StructuredMerge 8.x alongside 7.1.x.
|
|
64
|
+
|
|
65
|
+
- [kc] kettle-jem/template: updated 51 project files since the last release:
|
|
66
|
+
- code and tests (2)
|
|
67
|
+
- configuration (2)
|
|
68
|
+
- dependencies (23)
|
|
69
|
+
- documentation (3)
|
|
70
|
+
- other (11)
|
|
71
|
+
- workflows (10)
|
|
72
|
+
|
|
73
|
+
- kettle-jem-template-20261203-002 - Updated `CODE_OF_CONDUCT.md` and README
|
|
74
|
+
badges from Contributor Covenant 2.1 to Contributor Covenant 3.0.
|
|
75
|
+
- kettle-jem-template-20261203-004 - Development Gemfiles now pass
|
|
76
|
+
`relative_paths: true` to `nomono` (`>= 1.1.20`) so sibling `Gemfile.lock`
|
|
77
|
+
PATH remotes stay relative and checkout-independent.
|
|
78
|
+
- kettle-jem-template-20261203-006 - Trimmed generated `AGENTS.md` to ~4k
|
|
79
|
+
characters by removing duplicate sections, a hardcoded local path, and
|
|
80
|
+
IDE-specific tool names.
|
|
81
|
+
- kettle-jem-template-20261203-007 - Split non-Linux CI lanes (macOS and
|
|
82
|
+
Windows) out of `.github/workflows/current.yml` into `.github/workflows/platforms.yml`
|
|
83
|
+
(with `fail-fast: false` and `Jitujoshi71/soft-fail`) so macOS runner starvation does not turn the Current MRI badge red.
|
|
84
|
+
|
|
85
|
+
### Removed
|
|
86
|
+
|
|
87
|
+
- WorkflowStrategyGenerator and its resolve-mode output: it grouped appraisals into obsolete supported/legacy/unsupported/ancient workflow lifecycles and was never consumed
|
|
88
|
+
|
|
89
|
+
- kettle-jem-template-20261203-005 - Removed retired Tidelift funding links
|
|
90
|
+
and badges; `SECURITY.md` now directs vulnerability reports to GitHub Private
|
|
91
|
+
Vulnerability Reporting.
|
|
92
|
+
|
|
33
93
|
## [0.1.8] - 2026-10-22
|
|
34
94
|
|
|
35
95
|
- TAG: [v0.1.8][0.1.8t]
|
|
@@ -305,7 +365,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
305
365
|
- kettle-jem-template-20260802-001 - Devcontainer JSON files now merge as JSONC,
|
|
306
366
|
preserving comments and trailing commas during template updates.
|
|
307
367
|
|
|
308
|
-
[Unreleased]: https://github.com/appraisal-rb/kettle-jem-appraisals/compare/v0.1.
|
|
368
|
+
[Unreleased]: https://github.com/appraisal-rb/kettle-jem-appraisals/compare/v0.1.10...HEAD
|
|
369
|
+
[0.1.10]: https://github.com/appraisal-rb/kettle-jem-appraisals/compare/v0.1.9...v0.1.10
|
|
370
|
+
[0.1.10t]: https://github.com/appraisal-rb/kettle-jem-appraisals/releases/tag/v0.1.10
|
|
371
|
+
[0.1.9]: https://github.com/appraisal-rb/kettle-jem-appraisals/compare/v0.1.8...v0.1.9
|
|
372
|
+
[0.1.9t]: https://github.com/appraisal-rb/kettle-jem-appraisals/releases/tag/v0.1.9
|
|
309
373
|
[0.1.8]: https://github.com/appraisal-rb/kettle-jem-appraisals/compare/v0.1.7...v0.1.8
|
|
310
374
|
[0.1.8t]: https://github.com/appraisal-rb/kettle-jem-appraisals/releases/tag/v0.1.8
|
|
311
375
|
[0.1.7]: https://github.com/appraisal-rb/kettle-jem-appraisals/compare/v0.1.6...v0.1.7
|
data/README.md
CHANGED
|
@@ -6,18 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
`if ci_badges.map(&:color).detect { it != "green"}` ☝️ [let me know on Discord][✉️discord-invite] or [RubyForum][✉️ruby-forum], as I may have missed the notification.
|
|
8
8
|
|
|
9
|
-
---
|
|
10
|
-
|
|
11
9
|
`if ci_badges.map(&:color).all? { it == "green"}` 👇️ send money so I can do more of this. FLOSS maintenance is now my full-time job.
|
|
12
10
|
|
|
13
11
|
[![OpenCollective Backers][🖇osc-backers-i]][🖇osc-backers] [![OpenCollective Sponsors][🖇osc-sponsors-i]][🖇osc-sponsors] [![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor] [![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay] [![Donate on PayPal][🖇paypal-img]][🖇paypal] [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
|
|
19
|
-
|
|
20
|
-
</details>
|
|
13
|
+
<!-- kettle-sponsors:shields:start -->
|
|
14
|
+
<a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/github.svg" alt="services: GitHub"></a> <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/healthsherpa.svg" alt="sponsor: HealthSherpa"></a> <a href="#corporate-sponsorship"><img src="https://logos.galtzo.com/assets/images/sponsors/shield/microsoft.svg" alt="compute: Microsoft"></a>
|
|
15
|
+
<!-- kettle-sponsors:shields:end -->
|
|
21
16
|
|
|
22
17
|
## 🌻 Synopsis <a href="https://discord.gg/3qme4XHNKN"><img alt="Galtzo FLOSS Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/galtzo-floss/avatar-128px.svg" width="8%" align="right"/></a> <a href="https://ruby-toolbox.com"><img alt="ruby-lang Logo, Yukihiro Matsumoto, Ruby Visual Identity Team, CC BY-SA 2.5" src="https://logos.galtzo.com/assets/images/ruby-lang/avatar-128px.svg" width="8%" align="right"/></a>
|
|
23
18
|
|
|
@@ -28,7 +23,6 @@ seam points (where `required_ruby_version` changes), and produces:
|
|
|
28
23
|
|
|
29
24
|
- **Modular gemfiles** under `gemfiles/modular/{gem}/{ruby_series}/v{version}.gemfile`
|
|
30
25
|
- An **Appraisals** file for use with [appraisal2](https://github.com/appraisal-rb/appraisal2)
|
|
31
|
-
- **Workflow strategy** matrix snippets for GitHub Actions CI
|
|
32
26
|
|
|
33
27
|
If you want a lighter-weight DSL for the original
|
|
34
28
|
[`appraisal`](https://github.com/thoughtbot/appraisal) gem, consider
|
|
@@ -47,101 +41,6 @@ targets **`appraisal`** (which does not support `eval_gemfile`, and only support
|
|
|
47
41
|
| **Mode** | Version selection strategy: `major`, `minor`, `patch`, `minor-minmax`, or `semver` |
|
|
48
42
|
| **`kja-` prefix** | All generated appraisal names start with `kja-` for reliable cleanup on regeneration |
|
|
49
43
|
|
|
50
|
-
## 💡 Info you can shake a stick at
|
|
51
|
-
|
|
52
|
-
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
|
53
|
-
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
54
|
-
| Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
|
|
55
|
-
| Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Get help from RubyForum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork] [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor] |
|
|
56
|
-
| Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on GitHub.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
|
|
57
|
-
| Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![YARD on Galtzo.com][📜docs-head-rd-img]][🚎yard-head] [![Maintainer Blog][🚂maint-blog-img]][🚂maint-blog] [![GitLab Wiki][📜gl-wiki-img]][📜gl-wiki] [![GitHub Wiki][📜gh-wiki-img]][📜gh-wiki] |
|
|
58
|
-
| Compliance | [![License: AGPL-3.0-only][📄license-img]][📄license] [![Apache license compatibility: Category X][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
|
|
59
|
-
| Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] [![Compatibility appraised by: appraisal2][💎appraisal2-img]][💎appraisal2] |
|
|
60
|
-
| Maintainer 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact] [![My technical writing][💖💁🏼♂️devto-img]][💖💁🏼♂️devto] |
|
|
61
|
-
| `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼♂️aboutme-img]][💖💁🏼♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
|
|
62
|
-
|
|
63
|
-
### Compatibility
|
|
64
|
-
|
|
65
|
-
Compatible with MRI Ruby 4.0.0+.
|
|
66
|
-
CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
|
|
67
|
-
This test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml` and
|
|
68
|
-
may be higher than the gem's runtime compatibility floor when legacy Rubies are
|
|
69
|
-
not practical for the current toolchain.
|
|
70
|
-
|
|
71
|
-
<a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
|
|
72
|
-
|
|
73
|
-
The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
74
|
-
|
|
75
|
-
<details markdown="1">
|
|
76
|
-
<summary>How kettle-dev manages complexity in tests</summary>
|
|
77
|
-
|
|
78
|
-
| Gem | Source | Role | Total downloads |
|
|
79
|
-
|-----|--------|------|---------------------|
|
|
80
|
-
| [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [](https://clickgems.clickhouse.com/dashboard/appraisal2) |
|
|
81
|
-
| [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
|
|
82
|
-
| [kettle-dev](https://clickgems.clickhouse.com/dashboard/kettle-dev) | [GitHub](https://github.com/kettle-dev/kettle-dev) | development, release, and CI workflow tooling | [](https://clickgems.clickhouse.com/dashboard/kettle-dev) |
|
|
83
|
-
| [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
|
|
84
|
-
| [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
|
|
85
|
-
| [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [](https://clickgems.clickhouse.com/dashboard/kettle-test) |
|
|
86
|
-
| [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
|
|
87
|
-
| [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
|
|
88
|
-
|
|
89
|
-
</details>
|
|
90
|
-
|
|
91
|
-
### Runtime and Platform Support
|
|
92
|
-
|
|
93
|
-
Support tiers describe what this project's CI actually exercises, not what may
|
|
94
|
-
work in an untested environment:
|
|
95
|
-
|
|
96
|
-
- **Parallel support**: CI runs the test suite with multiple workers available.
|
|
97
|
-
- **Unsupported**: the engine/platform combination is not covered by CI and is
|
|
98
|
-
not a project compatibility claim.
|
|
99
|
-
|
|
100
|
-
| Ruby engine/version | Linux | macOS | Windows | Notes |
|
|
101
|
-
|---------------------|-------|-------|---------|-------|
|
|
102
|
-
| MRI 4.0-4.0 | Parallel support | Unsupported | Unsupported | Versioned Ruby workflows run on Linux. |
|
|
103
|
-
| MRI current | Parallel support | Parallel support | Unsupported | Current Ruby workflow covers the declared OS platforms. |
|
|
104
|
-
| MRI head | Parallel support | Unsupported | Unsupported | CI is allowed to fail while Ruby is in development. |
|
|
105
|
-
|
|
106
|
-
### Federated DVCS
|
|
107
|
-
|
|
108
|
-
<details markdown="1">
|
|
109
|
-
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
110
|
-
|
|
111
|
-
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
|
|
112
|
-
|-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
|
|
113
|
-
| 🧪 [appraisal-rb/kettle-jem-appraisals on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
|
|
114
|
-
| 🧊 [appraisal-rb/kettle-jem-appraisals on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
|
|
115
|
-
| 🐙 [appraisal-rb/kettle-jem-appraisals on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
|
|
116
|
-
|
|
117
|
-
</details>
|
|
118
|
-
|
|
119
|
-
### Enterprise Support
|
|
120
|
-
|
|
121
|
-
[](https://tidelift.com/subscription/pkg/rubygems-kettle-jem-appraisals?utm_source=rubygems-kettle-jem-appraisals&utm_medium=referral&utm_campaign=readme)
|
|
122
|
-
|
|
123
|
-
Available as part of the Tidelift Subscription.
|
|
124
|
-
|
|
125
|
-
<details markdown="1">
|
|
126
|
-
<summary>Need enterprise-level guarantees?</summary>
|
|
127
|
-
|
|
128
|
-
The maintainers of this and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
|
129
|
-
|
|
130
|
-
[![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]
|
|
131
|
-
|
|
132
|
-
- 💡Subscribe for support guarantees covering _all_ your FLOSS dependencies
|
|
133
|
-
- 💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]
|
|
134
|
-
- 💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers
|
|
135
|
-
|
|
136
|
-
Alternatively:
|
|
137
|
-
|
|
138
|
-
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
139
|
-
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
140
|
-
- [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork]
|
|
141
|
-
- [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor]
|
|
142
|
-
|
|
143
|
-
</details>
|
|
144
|
-
|
|
145
44
|
## ✨ Installation
|
|
146
45
|
|
|
147
46
|
Install the gem and add to the application's Gemfile by executing:
|
|
@@ -530,18 +429,87 @@ appraisal_matrix:
|
|
|
530
429
|
|
|
531
430
|
Produces entries like `kja-ar-7-1-oa-2-1-r3`, `kja-sq-5-0-oa-2-1-r3`.
|
|
532
431
|
|
|
533
|
-
|
|
432
|
+
## 🏢 Corporate Sponsorship
|
|
433
|
+
|
|
434
|
+
<!-- kettle-sponsors:cards:start -->
|
|
435
|
+
<a href="https://github.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/github.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/github.svg" align="top" alt="Sponsor: GitHub - Copilot Max"></picture></a> <a href="https://healthsherpa.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/healthsherpa.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/healthsherpa.svg" align="top" alt="Sponsor: HealthSherpa - GitHub Sponsors => @pboling (maintainer)"></picture></a> <a href="https://opensource.microsoft.com"><picture><source media="(max-width: 600px)" srcset="https://logos.galtzo.com/assets/images/sponsors/phone/microsoft.svg"><img src="https://logos.galtzo.com/assets/images/sponsors/microsoft.svg" align="top" alt="Sponsor: Microsoft - Azure compute resources"></picture></a>
|
|
436
|
+
|
|
437
|
+
<sub>Create sponsorship badges for your project with [kettle-sponsors](https://github.com/kettle-dev/kettle-sponsors).</sub>
|
|
438
|
+
<!-- kettle-sponsors:cards:end -->
|
|
439
|
+
|
|
440
|
+
**If you're working in a company that's making significant use of appraisal-rb tools we'd
|
|
441
|
+
appreciate it if you suggest to your company to become a appraisal-rb sponsor.**
|
|
442
|
+
|
|
443
|
+
## 💡 Info you can shake a stick at
|
|
444
|
+
|
|
445
|
+
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
|
446
|
+
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
447
|
+
| Works with MRI Ruby 4 | [![Ruby current Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf]|
|
|
448
|
+
| Support & Community | [![Join Me on Daily.dev's RubyFriends][✉️ruby-friends-img]][✉️ruby-friends] [![Get help from RubyForum][✉️ruby-forum-img]][✉️ruby-forum] [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite] [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork] [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor] |
|
|
449
|
+
| Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on GitHub.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
|
|
450
|
+
| Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![YARD on Galtzo.com][📜docs-head-rd-img]][🚎yard-head] [![Maintainer Blog][🚂maint-blog-img]][🚂maint-blog] [![GitLab Wiki][📜gl-wiki-img]][📜gl-wiki] [![GitHub Wiki][📜gh-wiki-img]][📜gh-wiki] |
|
|
451
|
+
| Compliance | [![License: AGPL-3.0-only][📄license-img]][📄license] [![Apache license compatibility: Category X][📄license-compat-img]][📄license-compat] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![Contributor Covenant 3.0][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] |
|
|
452
|
+
| Style | [![Enforced Code Style Linter][💎rlts-img]][💎rlts] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] [![Compatibility appraised by: appraisal2][💎appraisal2-img]][💎appraisal2] |
|
|
453
|
+
| Maintainer 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact Maintainer][🚂maint-contact-img]][🚂maint-contact] [![My technical writing][💖💁🏼♂️devto-img]][💖💁🏼♂️devto] |
|
|
454
|
+
| `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼♂️aboutme-img]][💖💁🏼♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
|
|
455
|
+
|
|
456
|
+
### Compatibility
|
|
457
|
+
|
|
458
|
+
The gem's declared runtime compatibility floor is MRI Ruby 4.0.0+.
|
|
459
|
+
CI workflows and Appraisals are generated for MRI Ruby 4.0.0+.
|
|
460
|
+
The current MRI CI lane runs on Linux and macOS.
|
|
461
|
+
The test floor is configured by `ruby.test_minimum` in `.structuredmerge/kettle-jem.yml`.
|
|
462
|
+
When it is higher than the runtime floor, older runtime-compatible Rubies are
|
|
463
|
+
not covered by the generated CI or Appraisal matrix.
|
|
464
|
+
|
|
465
|
+
<a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
|
|
466
|
+
|
|
467
|
+
The _amazing_ test matrix is powered by the kettle-dev stack.
|
|
468
|
+
|
|
469
|
+
<details markdown="1">
|
|
470
|
+
<summary>How kettle-dev manages complexity in tests</summary>
|
|
471
|
+
|
|
472
|
+
| Gem | Source | Role | Total downloads |
|
|
473
|
+
|-----|--------|------|---------------------|
|
|
474
|
+
| [appraisal2](https://clickgems.clickhouse.com/dashboard/appraisal2) | [GitHub](https://github.com/appraisal-rb/appraisal2) | multi-dependency Appraisal matrix generation | [](https://clickgems.clickhouse.com/dashboard/appraisal2) |
|
|
475
|
+
| [appraisal2-rubocop](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) | [GitHub](https://github.com/appraisal-rb/appraisal2-rubocop) | RuboCop Appraisal generator integration | [](https://clickgems.clickhouse.com/dashboard/appraisal2-rubocop) |
|
|
476
|
+
| [kettle-dev](https://clickgems.clickhouse.com/dashboard/kettle-dev) | [GitHub](https://github.com/kettle-dev/kettle-dev) | development, release, and CI workflow tooling | [](https://clickgems.clickhouse.com/dashboard/kettle-dev) |
|
|
477
|
+
| [kettle-jem](https://clickgems.clickhouse.com/dashboard/kettle-jem) | [GitHub](https://github.com/kettle-dev/kettle-jem) | Appraisals & CI workflow templates | [](https://clickgems.clickhouse.com/dashboard/kettle-jem) |
|
|
478
|
+
| [kettle-soup-cover](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) | [GitHub](https://github.com/kettle-dev/kettle-soup-cover) | SimpleCov coverage policy and reporting | [](https://clickgems.clickhouse.com/dashboard/kettle-soup-cover) |
|
|
479
|
+
| [kettle-test](https://clickgems.clickhouse.com/dashboard/kettle-test) | [GitHub](https://github.com/kettle-dev/kettle-test) | standard test runner and coverage harness | [](https://clickgems.clickhouse.com/dashboard/kettle-test) |
|
|
480
|
+
| [rubocop-lts](https://clickgems.clickhouse.com/dashboard/rubocop-lts) | [GitHub](https://github.com/rubocop-lts/rubocop-lts) | Ruby-version-aware linting | [](https://clickgems.clickhouse.com/dashboard/rubocop-lts) |
|
|
481
|
+
| [turbo_tests2](https://clickgems.clickhouse.com/dashboard/turbo_tests2) | [GitHub](https://github.com/galtzo-floss/turbo_tests2) | parallel test execution | [](https://clickgems.clickhouse.com/dashboard/turbo_tests2) |
|
|
482
|
+
|
|
483
|
+
</details>
|
|
484
|
+
|
|
485
|
+
### Federated DVCS
|
|
486
|
+
|
|
487
|
+
<details markdown="1">
|
|
488
|
+
<summary>Find this repo on federated forges (Coming soon!)</summary>
|
|
489
|
+
|
|
490
|
+
| Federated [DVCS][💎d-in-dvcs] Repository | Status | Issues | PRs | Wiki | CI |
|
|
491
|
+
|-------------------------------------------------|-------------------------------------------|-------------------|------------------|-----------------|----------------|
|
|
492
|
+
| 🧪 [appraisal-rb/kettle-jem-appraisals on GitLab][📜src-gl] | The Truth | [💚][🤝gl-issues] | [💚][🤝gl-pulls] | [💚][📜gl-wiki] | 🐭 Tiny Matrix |
|
|
493
|
+
| 🧊 [appraisal-rb/kettle-jem-appraisals on CodeBerg][📜src-cb] | An Ethical Mirror ([Donate][🤝cb-donate]) | [💚][🤝cb-issues] | [💚][🤝cb-pulls] | ➖ | ⭕️ No Matrix |
|
|
494
|
+
| 🐙 [appraisal-rb/kettle-jem-appraisals on GitHub][📜src-gh] | Another Mirror | [💚][🤝gh-issues] | [💚][🤝gh-pulls] | [💚][📜gh-wiki] | 💯 Full Matrix |
|
|
495
|
+
|
|
496
|
+
</details>
|
|
497
|
+
|
|
498
|
+
<details markdown="1">
|
|
499
|
+
<summary>👣 How will this project approach the September 2025 hostile takeover of RubyGems? 🚑️</summary>
|
|
500
|
+
|
|
501
|
+
I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-takeover-of-rubygems-my-thoughts-5hlo).
|
|
502
|
+
|
|
503
|
+
</details>
|
|
504
|
+
|
|
505
|
+
### Enterprise Support
|
|
534
506
|
|
|
535
|
-
|
|
507
|
+
For enterprise support from the maintainer, use [Upwork][👨🏼🏫expsup-upwork] or [CodeMentor][👨🏼🏫expsup-codementor].
|
|
536
508
|
|
|
537
|
-
|
|
538
|
-
|---------------|-------------------------------------------|
|
|
539
|
-
| `supported` | Current Ruby series (actively maintained) |
|
|
540
|
-
| `legacy` | Older Ruby series (maintenance mode) |
|
|
541
|
-
| `unsupported` | Ruby versions past EOL |
|
|
542
|
-
| `ancient` | Very old Ruby (best-effort) |
|
|
509
|
+
Other support channels:
|
|
543
510
|
|
|
544
|
-
|
|
511
|
+
- [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
|
|
512
|
+
- [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
545
513
|
|
|
546
514
|
## 🔐 Security
|
|
547
515
|
|
|
@@ -556,6 +524,8 @@ We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you m
|
|
|
556
524
|
|
|
557
525
|
See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
|
|
558
526
|
|
|
527
|
+
Want to contribute with AI coding agents? This project is developed with [Cloudroom][🖇cloudroom] and ships an `AGENTS.md` with repo conventions so agents can jump straight in. Signing up with [my referral link][🖇cloudroom] also supports ongoing maintenance at no extra cost to you.
|
|
528
|
+
|
|
559
529
|
### 🚀 Release Instructions
|
|
560
530
|
|
|
561
531
|
See [CONTRIBUTING.md][🤝contributing].
|
|
@@ -574,7 +544,7 @@ See [CONTRIBUTING.md][🤝contributing].
|
|
|
574
544
|
### 🪇 Code of Conduct
|
|
575
545
|
|
|
576
546
|
Everyone interacting with this project's codebases, issue trackers,
|
|
577
|
-
chat rooms and mailing lists agrees to follow the [![Contributor Covenant
|
|
547
|
+
chat rooms and mailing lists agrees to follow the [![Contributor Covenant 3.0][🪇conduct-img]][🪇conduct].
|
|
578
548
|
|
|
579
549
|
## 🌈 Contributors
|
|
580
550
|
|
|
@@ -628,27 +598,18 @@ See [LICENSE.md][📄license] for the official copyright notice.
|
|
|
628
598
|
|
|
629
599
|
</details>
|
|
630
600
|
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
Maintainers have teeth and need to pay their dentists.
|
|
634
|
-
After getting laid off in an RIF in March, and encountering difficulty finding a new one,
|
|
635
|
-
I began spending most of my time building open source tools.
|
|
636
|
-
I'm hoping to be able to pay for my kids' health insurance this month,
|
|
637
|
-
so if you value the work I am doing, I need your support.
|
|
638
|
-
Please consider sponsoring me or the project.
|
|
639
|
-
|
|
640
|
-
To join the community or get help, use the RubyForum or Discord.
|
|
601
|
+
### Please give the project a star ⭐ ♥.
|
|
641
602
|
|
|
642
|
-
|
|
643
|
-
[![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
|
|
603
|
+
Many parts of this project are actively managed by a [kettle-jem](https://github.com/structuredmerge/structuredmerge-ruby/tree/main/gems/kettle-jem) smart template utilizing [StructuredMerge.org](https://structuredmerge.org) merge contracts.
|
|
644
604
|
|
|
645
|
-
|
|
605
|
+
If this project helps you, please consider supporting the maintainer. This is not gated on the project's license; it appears in every README:
|
|
646
606
|
|
|
647
|
-
[![Sponsor kettle-dev/kettle-jem-appraisals on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal]
|
|
607
|
+
[![Sponsor kettle-dev/kettle-jem-appraisals on Open Source Collective][🖇osc-all-bottom-img]][🖇osc] 💌 [![Sponsor me on GitHub Sponsors][🖇sponsor-bottom-img]][🖇sponsor] 💌 [![Sponsor me on Liberapay][⛳liberapay-bottom-img]][⛳liberapay] 💌 [![Donate on PayPal][🖇paypal-bottom-img]][🖇paypal] 💌 [![Buy me a coffee][🖇buyme-small-img]][🖇buyme] 💌 [![Donate at ko-fi.com][🖇kofi-img]][🖇kofi]
|
|
648
608
|
|
|
649
|
-
|
|
609
|
+
I use [Cloudroom][🖇cloudroom], an agentic AI coding environment, every day. It's the first AI product that made me say "shut up and take my money."
|
|
610
|
+
If you sign up with [my referral link][🖇cloudroom], I receive a share of your subscription for as long as you stay subscribed, at no extra cost to you.
|
|
650
611
|
|
|
651
|
-
|
|
612
|
+
[🖇cloudroom]: https://go.cloudroom.dev/u9f53f181a
|
|
652
613
|
|
|
653
614
|
Thanks for RTFM. ☺️
|
|
654
615
|
|
|
@@ -722,9 +683,6 @@ Thanks for RTFM. ☺️
|
|
|
722
683
|
[👨🏼🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
|
|
723
684
|
[👨🏼🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
|
724
685
|
[👨🏼🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
|
|
725
|
-
[🏙️entsup-tidelift]: https://tidelift.com/subscription/pkg/rubygems-kettle-jem-appraisals?utm_source=rubygems-kettle-jem-appraisals&utm_medium=referral&utm_campaign=readme
|
|
726
|
-
[🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
|
|
727
|
-
[🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
|
|
728
686
|
[💁🏼♂️peterboling]: http://www.peterboling.com
|
|
729
687
|
[🚂railsbling]: http://www.railsbling.com
|
|
730
688
|
[📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
|
|
@@ -777,7 +735,7 @@ Thanks for RTFM. ☺️
|
|
|
777
735
|
[🖐contributors-img]: https://contrib.rocks/image?repo=appraisal-rb/kettle-jem-appraisals
|
|
778
736
|
[🚎contributors-gl]: https://gitlab.com/appraisal-rb/kettle-jem-appraisals/-/graphs/main
|
|
779
737
|
[🪇conduct]: https://github.com/appraisal-rb/kettle-jem-appraisals/blob/main/CODE_OF_CONDUCT.md
|
|
780
|
-
[🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-
|
|
738
|
+
[🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-3.0-259D6C.svg
|
|
781
739
|
[📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
|
782
740
|
[📌semver]: https://semver.org/spec/v2.0.0.html
|
|
783
741
|
[📌semver-img]: https://img.shields.io/badge/semver-2.0.0-259D6C.svg?style=flat
|
|
@@ -789,7 +747,7 @@ Thanks for RTFM. ☺️
|
|
|
789
747
|
[📌gitmoji]: https://gitmoji.dev
|
|
790
748
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
791
749
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
792
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-
|
|
750
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.943-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
793
751
|
[🔐security]: https://github.com/appraisal-rb/kettle-jem-appraisals/blob/main/SECURITY.md
|
|
794
752
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
795
753
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
@@ -819,7 +777,7 @@ Thanks for RTFM. ☺️
|
|
|
819
777
|
| Homepage | https://github.com/appraisal-rb/kettle-jem-appraisals |
|
|
820
778
|
| Source | https://github.com/appraisal-rb/kettle-jem-appraisals |
|
|
821
779
|
| License | `AGPL-3.0-only` |
|
|
822
|
-
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/kettle-dev, https://thanks.dev/u/gh/pboling, https://
|
|
780
|
+
| Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/kettle-dev, https://thanks.dev/u/gh/pboling, https://www.buymeacoffee.com/pboling |
|
|
823
781
|
<!-- kettle-jem:metadata:end -->
|
|
824
782
|
|
|
825
783
|
[kettle-rb]: https://github.com/kettle-dev/kettle-rb
|
|
@@ -18,7 +18,7 @@ module Kettle
|
|
|
18
18
|
#
|
|
19
19
|
# In *resolve* mode, queries RubyGems for version data, assigns gem
|
|
20
20
|
# versions to Ruby-series buckets, generates modular gemfiles, an
|
|
21
|
-
# +Appraisals+ file
|
|
21
|
+
# +Appraisals+ file.
|
|
22
22
|
#
|
|
23
23
|
# @example Run from the command line
|
|
24
24
|
# Kettle::Jem::Appraisals::CLI.run(["--resolve"])
|
|
@@ -312,16 +312,6 @@ module Kettle
|
|
|
312
312
|
|
|
313
313
|
puts " 📊 Generated #{appraisal_entries.size} appraisal entries"
|
|
314
314
|
|
|
315
|
-
# Generate workflow strategy matrix snippets
|
|
316
|
-
workflow_gen = WorkflowStrategyGenerator.new(
|
|
317
|
-
bucket_ranges: bucket_ranges,
|
|
318
|
-
exec_cmd: matrix.dig("exec_cmd") || "rake spec"
|
|
319
|
-
)
|
|
320
|
-
workflow_groups = workflow_gen.generate(appraisal_entries)
|
|
321
|
-
workflow_groups.each do |lifecycle, entries|
|
|
322
|
-
puts " 🔧 #{lifecycle}.yml: #{entries.size} matrix entries"
|
|
323
|
-
end
|
|
324
|
-
|
|
325
315
|
# Clean up stale kja-* flat gemfiles from previous runs
|
|
326
316
|
cleanup_stale_gemfiles(appraisal_entries)
|
|
327
317
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "kettle/jem"
|
|
4
|
+
require "kettle/rb/ruby_series_buckets"
|
|
4
5
|
|
|
5
6
|
module Kettle
|
|
6
7
|
module Jem
|
|
@@ -81,9 +82,9 @@ module Kettle
|
|
|
81
82
|
end
|
|
82
83
|
|
|
83
84
|
minor_versions = all_min_rubies.map { |v| minor_key(v) }.uniq.sort
|
|
84
|
-
buckets_and_ranges =
|
|
85
|
+
buckets_and_ranges = Kettle::Rb::RubySeriesBuckets.from_minor_versions(minor_versions)
|
|
85
86
|
buckets = buckets_and_ranges[:buckets].sort_by { |b| bucket_sort_key(b) }
|
|
86
|
-
{buckets: buckets, bucket_ranges: buckets_and_ranges[:
|
|
87
|
+
{buckets: buckets, bucket_ranges: buckets_and_ranges[:bucket_ranges]}
|
|
87
88
|
end
|
|
88
89
|
|
|
89
90
|
# Returns the seam points for a single gem where +min_ruby+ increases.
|
|
@@ -144,72 +145,6 @@ module Kettle
|
|
|
144
145
|
"#{segs[0]}.#{segs[1] || 0}"
|
|
145
146
|
end
|
|
146
147
|
|
|
147
|
-
# Converts a sorted list of minor version strings into bucket names
|
|
148
|
-
# and computes the floor/ceiling Ruby version for each bucket.
|
|
149
|
-
#
|
|
150
|
-
# Algorithm: Group by major. Within each major, the LAST (newest) minor
|
|
151
|
-
# becomes the catch-all "rN" bucket. Every earlier minor gets an
|
|
152
|
-
# explicit "rN.M" bucket.
|
|
153
|
-
#
|
|
154
|
-
# Example: ["2.4", "2.6", "2.7", "3.0", "3.1", "3.2"]
|
|
155
|
-
# Major 2: 2.4→r2.4 (floor=2.4, ceil=2.5), 2.6→r2.6 (floor=2.6, ceil=2.6),
|
|
156
|
-
# 2.7→r2 (floor=2.7, ceil=2.99)
|
|
157
|
-
# Major 3: 3.0/3.1→r3.1 (floor=3.0, ceil=3.1), 3.2→r3 (floor=3.2, ceil=3.99)
|
|
158
|
-
def minor_versions_to_buckets_with_ranges(minor_versions)
|
|
159
|
-
by_major = {}
|
|
160
|
-
minor_versions.each do |mv|
|
|
161
|
-
major = mv.split(".").first.to_i
|
|
162
|
-
by_major[major] ||= []
|
|
163
|
-
by_major[major] << mv
|
|
164
|
-
end
|
|
165
|
-
|
|
166
|
-
buckets = []
|
|
167
|
-
ranges = {}
|
|
168
|
-
|
|
169
|
-
by_major.each do |major, minors|
|
|
170
|
-
sorted = minors.sort_by { |m| Gem::Version.new(m) }
|
|
171
|
-
|
|
172
|
-
if sorted.size == 1
|
|
173
|
-
bucket = "r#{major}"
|
|
174
|
-
buckets << bucket
|
|
175
|
-
ranges[bucket] = {
|
|
176
|
-
floor: Gem::Version.new(sorted[0]),
|
|
177
|
-
ceiling: Gem::Version.new("#{major}.99")
|
|
178
|
-
}
|
|
179
|
-
else
|
|
180
|
-
sorted.each_with_index do |mv, idx|
|
|
181
|
-
minor_num = mv.split(".").last.to_i
|
|
182
|
-
|
|
183
|
-
if idx == sorted.size - 1
|
|
184
|
-
# Last → catch-all
|
|
185
|
-
bucket = "r#{major}"
|
|
186
|
-
buckets << bucket
|
|
187
|
-
ranges[bucket] = {
|
|
188
|
-
floor: Gem::Version.new(mv),
|
|
189
|
-
ceiling: Gem::Version.new("#{major}.99")
|
|
190
|
-
}
|
|
191
|
-
else
|
|
192
|
-
# Named bucket rN.M where M = next_minor - 1
|
|
193
|
-
next_minor = sorted[idx + 1].split(".").last.to_i
|
|
194
|
-
upper = (next_minor > 0) ? next_minor - 1 : minor_num
|
|
195
|
-
upper = [upper, minor_num].max
|
|
196
|
-
bucket = "r#{major}.#{upper}"
|
|
197
|
-
buckets << bucket unless buckets.include?(bucket)
|
|
198
|
-
# Don't overwrite if bucket already exists (merged ranges)
|
|
199
|
-
unless ranges.key?(bucket)
|
|
200
|
-
ranges[bucket] = {
|
|
201
|
-
floor: Gem::Version.new(mv),
|
|
202
|
-
ceiling: Gem::Version.new("#{major}.#{upper}")
|
|
203
|
-
}
|
|
204
|
-
end
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
{buckets: buckets.uniq, ranges: ranges}
|
|
211
|
-
end
|
|
212
|
-
|
|
213
148
|
# Sort key for bucket names so r2.4 < r2.6 < r2 < r3.1 < r3
|
|
214
149
|
def bucket_sort_key(bucket)
|
|
215
150
|
match = bucket.match(/\Ar(\d+)(?:\.(\d+))?\z/)
|
|
@@ -6,7 +6,7 @@ module Kettle
|
|
|
6
6
|
# Version namespace for this gem.
|
|
7
7
|
module Version
|
|
8
8
|
# Current gem version.
|
|
9
|
-
VERSION = "0.1.
|
|
9
|
+
VERSION = "0.1.10"
|
|
10
10
|
end
|
|
11
11
|
# Current gem version exposed at the traditional constant location.
|
|
12
12
|
VERSION = Version::VERSION # Traditional Constant Location
|
|
@@ -26,7 +26,6 @@ module Kettle
|
|
|
26
26
|
autoload :AppraisalsGenerator, "kettle/jem/appraisals/appraisals_generator"
|
|
27
27
|
autoload :RubySeriesDetector, "kettle/jem/appraisals/ruby_series_detector"
|
|
28
28
|
autoload :SubDepResolver, "kettle/jem/appraisals/sub_dep_resolver"
|
|
29
|
-
autoload :WorkflowStrategyGenerator, "kettle/jem/appraisals/workflow_strategy_generator"
|
|
30
29
|
autoload :XStdLibsExclusion, "kettle/jem/appraisals/x_std_libs_exclusion"
|
|
31
30
|
end
|
|
32
31
|
end
|
|
@@ -193,22 +193,6 @@ module Kettle
|
|
|
193
193
|
def latest_patch: (String gem_name, String minor_version) -> String
|
|
194
194
|
end
|
|
195
195
|
VERSION: String
|
|
196
|
-
class WorkflowStrategyGenerator
|
|
197
|
-
LIFECYCLE_RANGES: Hash[String, Hash[Symbol, untyped]]
|
|
198
|
-
|
|
199
|
-
attr_reader bucket_ranges: Hash[String, Hash[Symbol, Gem::Version]]
|
|
200
|
-
attr_reader exec_cmd: String
|
|
201
|
-
|
|
202
|
-
def initialize: (bucket_ranges: Hash[String, Hash[Symbol, Gem::Version]], ?exec_cmd: String) -> void
|
|
203
|
-
def generate: (Array[Hash[Symbol, untyped]] appraisal_entries) -> Hash[String, Array[Hash[Symbol, untyped]]]
|
|
204
|
-
def generate_yaml_snippets: (Array[Hash[Symbol, untyped]] appraisal_entries) -> Hash[String, String]
|
|
205
|
-
|
|
206
|
-
private
|
|
207
|
-
|
|
208
|
-
def lifecycle_for: (Gem::Version ruby_floor) -> String
|
|
209
|
-
def ruby_version_for: (Gem::Version ruby_floor, String lifecycle) -> String
|
|
210
|
-
def build_matrix_entry: (Hash[Symbol, untyped] entry, String ruby_version) -> Hash[Symbol, untyped]
|
|
211
|
-
end
|
|
212
196
|
|
|
213
197
|
module XStdLibsExclusion
|
|
214
198
|
ALWAYS_EXCLUDED: Array[String]
|
data.tar.gz.sig
CHANGED
|
Binary file
|