kettle-dev 2.3.10 → 2.3.11
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 +16 -1
- data/LICENSE.md +1 -1
- data/README.md +5 -5
- data/lib/kettle/dev/ci_helpers.rb +30 -8
- data/lib/kettle/dev/ci_monitor.rb +1 -1
- data/lib/kettle/dev/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e30ac2b82038eea94426435c99852b725d70fab0838aeaf8ab43728305a11bb2
|
|
4
|
+
data.tar.gz: 02e8ab6c76c1d443fa5f00c184d452fd6d2b4bfc44bd425a572e948ce76b9d0d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfebbbb3262abd7998ab3ec508b2235ce6df8c560839a8d4e63acfbe19534ccf975bed2d0f4afe32dd72bd910d5f0a795802b43f47d4442b63801555c6f7ec15
|
|
7
|
+
data.tar.gz: 11e0ea51634549b3d1676926ea6e5abb2c5bc363de47f6e8b6c811f69e88e17253bebbaaa6f4ba5dfbfc1a527e3e61f6950db686990e0c8b90b0c5ade5c20158
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,19 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [2.3.11] - 2026-07-23
|
|
34
|
+
|
|
35
|
+
- TAG: [v2.3.11][2.3.11t]
|
|
36
|
+
- COVERAGE: 92.17% -- 3791/4113 lines in 37 files
|
|
37
|
+
- BRANCH COVERAGE: 75.80% -- 1500/1979 branches in 37 files
|
|
38
|
+
- 59.51% documented
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- GitHub Actions release monitoring now falls back to repository-level workflow
|
|
43
|
+
runs when a per-workflow endpoint lags for the pushed HEAD, and waits up to
|
|
44
|
+
five minutes by default for workflows to appear.
|
|
45
|
+
|
|
33
46
|
## [2.3.10] - 2026-07-23
|
|
34
47
|
|
|
35
48
|
- TAG: [v2.3.10][2.3.10t]
|
|
@@ -2613,7 +2626,9 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
2613
2626
|
- Selecting will run the selected workflow via `act`
|
|
2614
2627
|
- This may move to its own gem in the future.
|
|
2615
2628
|
|
|
2616
|
-
[Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.
|
|
2629
|
+
[Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.11...HEAD
|
|
2630
|
+
[2.3.11]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.10...v2.3.11
|
|
2631
|
+
[2.3.11t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.3.11
|
|
2617
2632
|
[2.3.10]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.9...v2.3.10
|
|
2618
2633
|
[2.3.10t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.3.10
|
|
2619
2634
|
[2.3.9]: https://github.com/kettle-dev/kettle-dev/compare/v2.3.8...v2.3.9
|
data/LICENSE.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
This project is made available under the following license.
|
|
4
4
|
Choose the option that best fits your use case:
|
|
5
5
|
|
|
6
|
-
- [AGPL-3.0-only](AGPL-3.0-only.md)
|
|
6
|
+
- [AGPL-3.0-only](https://github.com/kettle-dev/kettle-dev/blob/main/AGPL-3.0-only.md)
|
|
7
7
|
|
|
8
8
|
If none of the above licenses fit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
|
|
9
9
|
|
data/README.md
CHANGED
|
@@ -94,7 +94,7 @@ bin/kettle-release
|
|
|
94
94
|
| Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎ruby-3.0-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎ruby-3.1-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎ruby-3.2-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎ruby-3.3-wf] [![Ruby 3.4 Compat][💎ruby-3.4i]][🚎ruby-3.4-wf]|
|
|
95
95
|
| Works with MRI Ruby 2 | [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎ruby-2.4-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎ruby-2.5-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎ruby-2.6-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎ruby-2.7-wf]|
|
|
96
96
|
| 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] |
|
|
97
|
-
| Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on
|
|
97
|
+
| 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] |
|
|
98
98
|
| 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] |
|
|
99
99
|
| 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] |
|
|
100
100
|
| 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] |
|
|
@@ -666,7 +666,7 @@ See [CHANGELOG.md][📌changelog] for a list of releases.
|
|
|
666
666
|
|
|
667
667
|
## 📄 License
|
|
668
668
|
|
|
669
|
-
The gem is available under the following license: [AGPL-3.0-only](AGPL-3.0-only.md).
|
|
669
|
+
The gem is available under the following license: [AGPL-3.0-only](https://github.com/kettle-dev/kettle-dev/blob/main/AGPL-3.0-only.md).
|
|
670
670
|
See [LICENSE.md][📄license] for details.
|
|
671
671
|
|
|
672
672
|
If none of the available licenses suit your use case, please [contact us](mailto:floss@galtzo.com) to discuss a custom commercial license.
|
|
@@ -783,7 +783,7 @@ Thanks for RTFM. ☺️
|
|
|
783
783
|
[📜src-gl]: https://gitlab.com/kettle-dev/kettle-dev
|
|
784
784
|
[📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
|
|
785
785
|
[📜src-cb]: https://codeberg.org/kettle-dev/kettle-dev
|
|
786
|
-
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=
|
|
786
|
+
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=GitHub&logoColor=green
|
|
787
787
|
[📜src-gh]: https://github.com/kettle-dev/kettle-dev
|
|
788
788
|
[📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
789
789
|
[📜docs-head-rd-img]: https://img.shields.io/badge/YARD_on_Galtzo.com-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
|
@@ -891,12 +891,12 @@ Thanks for RTFM. ☺️
|
|
|
891
891
|
[📌gitmoji]: https://gitmoji.dev
|
|
892
892
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
893
893
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
894
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-4.
|
|
894
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-4.113-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
895
895
|
[🔐security]: https://github.com/kettle-dev/kettle-dev/blob/main/SECURITY.md
|
|
896
896
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
897
897
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
|
898
898
|
[📄license]: LICENSE.md
|
|
899
|
-
[📄license-ref]: AGPL-3.0-only.md
|
|
899
|
+
[📄license-ref]: https://github.com/kettle-dev/kettle-dev/blob/main/AGPL-3.0-only.md
|
|
900
900
|
[📄license-img]: https://img.shields.io/badge/License-AGPL--3.0--only-259D6C.svg
|
|
901
901
|
[📄license-compat]: https://www.apache.org/legal/resolved.html#category-x
|
|
902
902
|
[📄license-compat-img]: https://img.shields.io/badge/Apache_Incompatible:_Category_X-%E2%9C%97-C0392B.svg?style=flat&logo=Apache
|
|
@@ -97,19 +97,17 @@ module Kettle
|
|
|
97
97
|
|
|
98
98
|
# Scope to the exact commit SHA when available to avoid picking up a previous run on the same branch.
|
|
99
99
|
sha = head_sha || current_head_sha
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
|
|
106
|
-
return unless res.is_a?(Net::HTTPSuccess)
|
|
100
|
+
data = github_get_json(
|
|
101
|
+
"https://api.github.com/repos/#{owner}/#{repo}/actions/workflows/#{workflow_file}/runs?branch=#{URI.encode_www_form_component(b)}&per_page=5",
|
|
102
|
+
token: token
|
|
103
|
+
)
|
|
104
|
+
return unless data
|
|
107
105
|
|
|
108
|
-
data = JSON.parse(res.body)
|
|
109
106
|
runs = Array(data["workflow_runs"]) || []
|
|
110
107
|
# Try to match by head_sha first; fall back to first run (branch-scoped) if none matches yet.
|
|
111
108
|
run = if sha
|
|
112
109
|
match = runs.find { |r| r["head_sha"] == sha }
|
|
110
|
+
match ||= latest_repository_workflow_run(owner: owner, repo: repo, workflow_file: workflow_file, branch: b, head_sha: sha, token: token)
|
|
113
111
|
require_head ? match : (match || runs.first)
|
|
114
112
|
else
|
|
115
113
|
runs.first unless require_head
|
|
@@ -128,6 +126,30 @@ module Kettle
|
|
|
128
126
|
nil
|
|
129
127
|
end
|
|
130
128
|
|
|
129
|
+
def latest_repository_workflow_run(owner:, repo:, workflow_file:, branch:, head_sha:, token:)
|
|
130
|
+
data = github_get_json(
|
|
131
|
+
"https://api.github.com/repos/#{owner}/#{repo}/actions/runs?branch=#{URI.encode_www_form_component(branch)}&per_page=100",
|
|
132
|
+
token: token
|
|
133
|
+
)
|
|
134
|
+
return unless data
|
|
135
|
+
|
|
136
|
+
workflow_path = ".github/workflows/#{workflow_file}"
|
|
137
|
+
Array(data["workflow_runs"]).find do |run|
|
|
138
|
+
run["head_sha"] == head_sha && run["path"] == workflow_path
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
def github_get_json(url, token:)
|
|
143
|
+
uri = URI(url)
|
|
144
|
+
req = Net::HTTP::Get.new(uri)
|
|
145
|
+
req["User-Agent"] = "kettle-dev/ci-helpers"
|
|
146
|
+
req["Authorization"] = "token #{token}" if token && !token.empty?
|
|
147
|
+
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
|
|
148
|
+
return unless res.is_a?(Net::HTTPSuccess)
|
|
149
|
+
|
|
150
|
+
JSON.parse(res.body)
|
|
151
|
+
end
|
|
152
|
+
|
|
131
153
|
# Whether a run has completed successfully.
|
|
132
154
|
# @param run [Hash, nil]
|
|
133
155
|
# @return [Boolean]
|
data/lib/kettle/dev/version.rb
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kettle-dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -334,10 +334,10 @@ licenses:
|
|
|
334
334
|
- AGPL-3.0-only
|
|
335
335
|
metadata:
|
|
336
336
|
homepage_uri: https://kettle-dev.galtzo.com
|
|
337
|
-
source_code_uri: https://github.com/kettle-dev/kettle-dev/tree/v2.3.
|
|
338
|
-
changelog_uri: https://github.com/kettle-dev/kettle-dev/blob/v2.3.
|
|
337
|
+
source_code_uri: https://github.com/kettle-dev/kettle-dev/tree/v2.3.11
|
|
338
|
+
changelog_uri: https://github.com/kettle-dev/kettle-dev/blob/v2.3.11/CHANGELOG.md
|
|
339
339
|
bug_tracker_uri: https://github.com/kettle-dev/kettle-dev/issues
|
|
340
|
-
documentation_uri: https://www.rubydoc.info/gems/kettle-dev/2.3.
|
|
340
|
+
documentation_uri: https://www.rubydoc.info/gems/kettle-dev/2.3.11
|
|
341
341
|
funding_uri: https://github.com/sponsors/pboling
|
|
342
342
|
wiki_uri: https://github.com/kettle-dev/kettle-dev/wiki
|
|
343
343
|
news_uri: https://www.railsbling.com/tags/kettle-dev
|
metadata.gz.sig
CHANGED
|
Binary file
|