kettle-family 1.3.48 → 1.3.50
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 +33 -1
- data/README.md +1 -1
- data/lib/kettle/family/report.rb +55 -3
- data/lib/kettle/family/secrets.rb +36 -6
- data/lib/kettle/family/version.rb +1 -1
- data/lib/kettle/family/workflow.rb +10 -1
- data.tar.gz.sig +0 -0
- metadata +9 -9
- 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: e692acbd3c1a3dcefaa8b372e7d09d003a68add09064406f423254ed5994ea00
|
|
4
|
+
data.tar.gz: d80ffadee93eabd11f5cb1c4f1d021dabeffb9f5b0d1a4802364ee18131b4d2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7495456ac77b3fd691bf775a58678d283043738bbeee14a8e21bc20f9eebb0e99508271d00483dd28007223d3f2183c05822008942ab87cd74ff285e245d8779
|
|
7
|
+
data.tar.gz: 81e489ba2f25082425aab50bfb0e2cc2135b6e83760ff60aea567baee2ba809b4d0672bf53e9af4884854a9d014a1b9d156b902aa8e729567cdbe327f1796489
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,34 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [1.3.50] - 2026-11-26
|
|
34
|
+
|
|
35
|
+
- TAG: [v1.3.50][1.3.50t]
|
|
36
|
+
- COVERAGE: 94.24% -- 8722/9255 lines in 49 files
|
|
37
|
+
- BRANCH COVERAGE: 79.44% -- 3660/4607 branches in 49 files
|
|
38
|
+
- 41.69% documented
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- manual RubyGems MFA prompt: a typed code is validated (exactly six digits; spaces ignored). The same code pasted more than once (for example 12 characters from a keyboard whose first Enter only woke it) is reduced to its first six digits; anything else is rejected and the prompt asks again, without ever echoing the code, instead of being sent to RubyGems and failing the release
|
|
43
|
+
|
|
44
|
+
## [1.3.49] - 2026-11-25
|
|
45
|
+
|
|
46
|
+
- TAG: [v1.3.49][1.3.49t]
|
|
47
|
+
- COVERAGE: 94.22% -- 8704/9238 lines in 49 files
|
|
48
|
+
- BRANCH COVERAGE: 79.28% -- 3643/4595 branches in 49 files
|
|
49
|
+
- 41.76% documented
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- release report: a failed streamed step is summarized by its root-cause Ruby error header (class and message) instead of the last output line that mentions "error", which was often a backtrace frame such as bundler/friendly_errors.rb; backtrace frames are never chosen, and known failure signatures (Bundler/RubyGems mismatch, frozen path-gem lockfile, unauthorized gem push, 1Password authorization) now attach a recommended fix
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
|
|
57
|
+
- release: the aggregate GitHub release no longer fails with "all selected members must have the same version" when only independently versioned members (for example kettle-jem) are released; the shared-version release is taken from the family's shared cohort and the member's artifacts attach to it
|
|
58
|
+
|
|
59
|
+
- release: an independently versioned member (release.version_series.independent_members) no longer has its own changelog skipped when it rides the shared cohort; --skip-changelog now applies only to the cohort members the family changelog covers
|
|
60
|
+
|
|
33
61
|
## [1.3.48] - 2026-11-23
|
|
34
62
|
|
|
35
63
|
- TAG: [v1.3.48][1.3.48t]
|
|
@@ -3539,7 +3567,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
3539
3567
|
- Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
|
|
3540
3568
|
- Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
|
|
3541
3569
|
|
|
3542
|
-
[Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.
|
|
3570
|
+
[Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.50...HEAD
|
|
3571
|
+
[1.3.50]: https://github.com/kettle-dev/kettle-family/compare/v1.3.49...v1.3.50
|
|
3572
|
+
[1.3.50t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.50
|
|
3573
|
+
[1.3.49]: https://github.com/kettle-dev/kettle-family/compare/v1.3.48...v1.3.49
|
|
3574
|
+
[1.3.49t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.49
|
|
3543
3575
|
[1.3.48]: https://github.com/kettle-dev/kettle-family/compare/v1.3.47...v1.3.48
|
|
3544
3576
|
[1.3.48t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.48
|
|
3545
3577
|
[1.3.47]: https://github.com/kettle-dev/kettle-family/compare/v1.3.46...v1.3.47
|
data/README.md
CHANGED
|
@@ -1143,7 +1143,7 @@ If none of the available licenses suit your use case, please [contact us](mailto
|
|
|
1143
1143
|
[📌gitmoji]: https://gitmoji.dev
|
|
1144
1144
|
[📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
|
1145
1145
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
|
1146
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-9.
|
|
1146
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-9.255-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
|
1147
1147
|
[🔐security]: https://github.com/kettle-dev/kettle-family/blob/main/SECURITY.md
|
|
1148
1148
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
|
1149
1149
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/lib/kettle/family/report.rb
CHANGED
|
@@ -334,17 +334,69 @@ module Kettle
|
|
|
334
334
|
lines << " output: omitted because it was already streamed"
|
|
335
335
|
end
|
|
336
336
|
|
|
337
|
+
# A Ruby backtrace frame ("path:12:in 'meth'" or "from path:12:in ..."). These
|
|
338
|
+
# must never be chosen as a summary: a frame such as bundler/friendly_errors.rb
|
|
339
|
+
# matches /error/ by file name alone and previously became the whole summary.
|
|
340
|
+
BACKTRACE_FRAME = /\A(?:from\s+)?\S+:\d+:in\s+['`]/
|
|
341
|
+
# The first line of a Ruby error report: "path:12:in 'meth': message (Class)".
|
|
342
|
+
ERROR_HEADER = /:\d+:in\s+['`][^'`]*['`]:\s+(?<message>.+?)\s+\((?<klass>[A-Z][\w:]*)\)\z/
|
|
343
|
+
|
|
344
|
+
# Known failure signatures with the command that fixes them. A tool's own
|
|
345
|
+
# "Recommended fix:" line always wins over these.
|
|
346
|
+
FAILURE_HINTS = [
|
|
347
|
+
[
|
|
348
|
+
/does not match the version of the specification installed for it|Bundler::CorruptBundlerInstallError/,
|
|
349
|
+
"kettle-family update-bundler --execute (RubyGems/Bundler were upgraded but lockfiles still pin the old " \
|
|
350
|
+
"BUNDLED WITH version, so Bundler re-execs into the old gem; reinstalling Ruby is not needed)"
|
|
351
|
+
],
|
|
352
|
+
[
|
|
353
|
+
/The gemspecs for path gems changed, but the lockfile can't be updated because\s*frozen mode is set/,
|
|
354
|
+
"re-lock the named lockfile (bundle lock --update) and commit it; the path gem's version changed"
|
|
355
|
+
],
|
|
356
|
+
[
|
|
357
|
+
/You are not allowed to push this gem/,
|
|
358
|
+
"register a trusted publisher for the gem on rubygems.org (or push the built gem once by hand), then re-run"
|
|
359
|
+
],
|
|
360
|
+
[
|
|
361
|
+
/1Password .*(?:authorization|desktop app|not signed in)/i,
|
|
362
|
+
"unlock 1Password and approve the access prompt, then re-run the resume command"
|
|
363
|
+
]
|
|
364
|
+
].freeze
|
|
365
|
+
|
|
337
366
|
def streamed_output_summary(result)
|
|
338
367
|
lines = streamed_output_lines(result)
|
|
339
|
-
lines
|
|
368
|
+
root_cause_summary(lines) || last_failure_line(lines)
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# The first error header in the output is the root cause; later ones are
|
|
372
|
+
# wrappers re-raising it ("Failed to get coverage data: ...").
|
|
373
|
+
def root_cause_summary(lines)
|
|
374
|
+
lines.each do |line|
|
|
375
|
+
match = ERROR_HEADER.match(line)
|
|
376
|
+
next unless match
|
|
377
|
+
|
|
378
|
+
return "#{match[:klass]}: #{match[:message]}"[0, 400]
|
|
379
|
+
end
|
|
380
|
+
nil
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
def last_failure_line(lines)
|
|
384
|
+
candidates = lines.reject { |line| line.match?(BACKTRACE_FRAME) }
|
|
385
|
+
candidates.reverse.find do |line|
|
|
340
386
|
line.match?(/(?:failed|failure|error|exited|aborted)/i) && !line.match?(/\A(?:Files|CI|Actions)/)
|
|
341
|
-
end ||
|
|
387
|
+
end || candidates.reverse.find { |line| !line.match?(/\A(?:Files|CI|Actions)/) }
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
def known_failure_hint(result)
|
|
391
|
+
text = [result.stdout, result.stderr].join("\n")
|
|
392
|
+
FAILURE_HINTS.each { |pattern, fix| return fix if text.match?(pattern) }
|
|
393
|
+
nil
|
|
342
394
|
end
|
|
343
395
|
|
|
344
396
|
def streamed_recommended_fix(result)
|
|
345
397
|
lines = streamed_output_lines(result)
|
|
346
398
|
line = lines.reverse.find { |candidate| candidate.match?(/\ARecommended fix:\s+/) }
|
|
347
|
-
return
|
|
399
|
+
return known_failure_hint(result) unless line
|
|
348
400
|
|
|
349
401
|
# Some hints are incomplete without their follow-up step (e.g. the
|
|
350
402
|
# kettle-gha-pins pin refresh must be committed + pushed BEFORE
|
|
@@ -70,6 +70,7 @@ module Kettle
|
|
|
70
70
|
}.freeze
|
|
71
71
|
|
|
72
72
|
REMIND_EVERY_SECONDS = 60
|
|
73
|
+
OTP_LENGTH = 6
|
|
73
74
|
|
|
74
75
|
def initialize(input: $stdin, output: $stderr, remind_every: REMIND_EVERY_SECONDS)
|
|
75
76
|
@input = input
|
|
@@ -95,19 +96,48 @@ module Kettle
|
|
|
95
96
|
@output.print("\a#{label}: ")
|
|
96
97
|
@output.flush
|
|
97
98
|
reminder = start_reminder(label, instructions)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
loop do
|
|
100
|
+
value = read_line
|
|
101
|
+
@output.puts
|
|
102
|
+
return value.to_s.chomp unless operation == "rubygems_otp"
|
|
103
|
+
|
|
104
|
+
code, problem = sanitize_otp(value.to_s)
|
|
105
|
+
return code if problem.nil?
|
|
106
|
+
|
|
107
|
+
@output.puts("#{problem} Paste the #{label} again (or press Enter on an empty line to ask the vault again).")
|
|
108
|
+
@output.print("\a#{label}: ")
|
|
109
|
+
@output.flush
|
|
102
110
|
end
|
|
103
|
-
@output.puts
|
|
104
|
-
value.to_s.chomp
|
|
105
111
|
ensure
|
|
106
112
|
reminder&.kill
|
|
107
113
|
end
|
|
108
114
|
|
|
109
115
|
private
|
|
110
116
|
|
|
117
|
+
def read_line
|
|
118
|
+
@input.respond_to?(:noecho) ? @input.noecho(&:gets) : @input.gets
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# RubyGems one-time codes are exactly six digits. Pasting into a terminal that is still
|
|
122
|
+
# waking up, or pasting twice, produced twelve characters and a rejected release. Accept
|
|
123
|
+
# a six digit code (spaces and newlines ignored) or the same code pasted several times;
|
|
124
|
+
# reject anything else instead of guessing. Returns [code, nil] or [nil, problem]; an
|
|
125
|
+
# empty answer is kept (it means "ask the vault again"). Never echoes the digits.
|
|
126
|
+
def sanitize_otp(raw)
|
|
127
|
+
cleaned = raw.gsub(/\s+/, "")
|
|
128
|
+
return [cleaned, nil] if cleaned.empty?
|
|
129
|
+
return [nil, "A RubyGems code is six digits, but this has #{cleaned.length} characters, not all digits."] unless cleaned.match?(/\A\d+\z/)
|
|
130
|
+
return [cleaned, nil] if cleaned.length == OTP_LENGTH
|
|
131
|
+
|
|
132
|
+
repeats, remainder = cleaned.length.divmod(OTP_LENGTH)
|
|
133
|
+
if remainder.zero? && repeats > 1 && cleaned == cleaned[0, OTP_LENGTH] * repeats
|
|
134
|
+
@output.puts("Took the first #{OTP_LENGTH} digits: the same code was pasted #{repeats} times.")
|
|
135
|
+
return [cleaned[0, OTP_LENGTH], nil]
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
[nil, "A RubyGems code is #{OTP_LENGTH} digits, but this has #{cleaned.length}."]
|
|
139
|
+
end
|
|
140
|
+
|
|
111
141
|
def start_reminder(label, instructions)
|
|
112
142
|
return nil unless @remind_every&.positive?
|
|
113
143
|
|
|
@@ -5,7 +5,7 @@ module Kettle
|
|
|
5
5
|
# Version namespace for this gem.
|
|
6
6
|
module Version
|
|
7
7
|
# Current gem version.
|
|
8
|
-
VERSION = "1.3.
|
|
8
|
+
VERSION = "1.3.50"
|
|
9
9
|
end
|
|
10
10
|
# Current gem version exposed at the traditional constant location.
|
|
11
11
|
VERSION = Version::VERSION # Traditional Constant Location
|
|
@@ -4337,7 +4337,10 @@ module Kettle
|
|
|
4337
4337
|
effective_skip_steps = (configured_skip_steps + release_skip_steps_for(member).split(",")).uniq.join(",")
|
|
4338
4338
|
args << "start_step=#{effective_start_step}" if effective_start_step
|
|
4339
4339
|
args << "skip_steps=#{effective_skip_steps}" unless effective_skip_steps.empty?
|
|
4340
|
-
|
|
4340
|
+
# The family changelog covers the shared-version cohort only. An
|
|
4341
|
+
# independently versioned member keeps its own CHANGELOG and series, so
|
|
4342
|
+
# its own release must still cut its changelog section.
|
|
4343
|
+
args << "--skip-changelog" if skip_changelog || (aggregate_validation_member?(member) && !independent_version_series_member?(member))
|
|
4341
4344
|
args << "--skip-appraisals" if skip_appraisals
|
|
4342
4345
|
args << "--ci-workflows=#{ci_workflows}" if ci_workflows && !ci_workflows.to_s.empty?
|
|
4343
4346
|
args << "--local-ci" if local_ci
|
|
@@ -4668,6 +4671,12 @@ module Kettle
|
|
|
4668
4671
|
# exempt from the uniformity check while their artifacts still
|
|
4669
4672
|
# attach — at their own series version, not the cohort's.
|
|
4670
4673
|
shared_members = members.reject { |member| independent_version_series_member?(member) }
|
|
4674
|
+
# Releasing only independently versioned members (for example just
|
|
4675
|
+
# kettle-jem) leaves no shared cohort among the contributed members. The
|
|
4676
|
+
# repository-level release still belongs to the family's shared version,
|
|
4677
|
+
# so take that version from the family's shared cohort and attach the
|
|
4678
|
+
# independent member's artifacts to it.
|
|
4679
|
+
shared_members = Array(family_members).reject { |member| independent_version_series_member?(member) } if shared_members.empty?
|
|
4671
4680
|
version = shared_members.map { |member| member.version.to_s }.uniq
|
|
4672
4681
|
return aggregate_release_result("all selected members must have the same version") unless version.length == 1
|
|
4673
4682
|
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kettle-family
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.50
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -152,7 +152,7 @@ dependencies:
|
|
|
152
152
|
-
|
|
153
153
|
- ">="
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
|
-
version: 1.0.
|
|
155
|
+
version: 1.0.21
|
|
156
156
|
type: :runtime
|
|
157
157
|
prerelease: false
|
|
158
158
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -164,7 +164,7 @@ dependencies:
|
|
|
164
164
|
-
|
|
165
165
|
- ">="
|
|
166
166
|
- !ruby/object:Gem::Version
|
|
167
|
-
version: 1.0.
|
|
167
|
+
version: 1.0.21
|
|
168
168
|
- !ruby/object:Gem::Dependency
|
|
169
169
|
name: kettle-deps-floor
|
|
170
170
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -200,7 +200,7 @@ dependencies:
|
|
|
200
200
|
-
|
|
201
201
|
- ">="
|
|
202
202
|
- !ruby/object:Gem::Version
|
|
203
|
-
version: 3.1.
|
|
203
|
+
version: 3.1.32
|
|
204
204
|
type: :runtime
|
|
205
205
|
prerelease: false
|
|
206
206
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -212,7 +212,7 @@ dependencies:
|
|
|
212
212
|
-
|
|
213
213
|
- ">="
|
|
214
214
|
- !ruby/object:Gem::Version
|
|
215
|
-
version: 3.1.
|
|
215
|
+
version: 3.1.32
|
|
216
216
|
- !ruby/object:Gem::Dependency
|
|
217
217
|
name: kettle-gha-pins
|
|
218
218
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -729,10 +729,10 @@ licenses:
|
|
|
729
729
|
- AGPL-3.0-only
|
|
730
730
|
metadata:
|
|
731
731
|
homepage_uri: "https://structuredmerge.org"
|
|
732
|
-
source_code_uri: "https://github.com/kettle-dev/kettle-family/tree/v1.3.
|
|
733
|
-
changelog_uri: "https://github.com/kettle-dev/kettle-family/blob/v1.3.
|
|
732
|
+
source_code_uri: "https://github.com/kettle-dev/kettle-family/tree/v1.3.50"
|
|
733
|
+
changelog_uri: "https://github.com/kettle-dev/kettle-family/blob/v1.3.50/CHANGELOG.md"
|
|
734
734
|
bug_tracker_uri: "https://github.com/kettle-dev/kettle-family/issues"
|
|
735
|
-
documentation_uri: "https://www.rubydoc.info/gems/kettle-family/1.3.
|
|
735
|
+
documentation_uri: "https://www.rubydoc.info/gems/kettle-family/1.3.50"
|
|
736
736
|
funding_uri: "https://github.com/sponsors/pboling"
|
|
737
737
|
wiki_uri: "https://github.com/kettle-dev/kettle-family/wiki"
|
|
738
738
|
news_uri: "https://www.railsbling.com/tags/kettle-family"
|
|
@@ -764,7 +764,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
764
764
|
- !ruby/object:Gem::Version
|
|
765
765
|
version: "0"
|
|
766
766
|
requirements: []
|
|
767
|
-
rubygems_version: 4.1.
|
|
767
|
+
rubygems_version: 4.1.1
|
|
768
768
|
specification_version: 4
|
|
769
769
|
summary: 👩👩👧👧 CLI helpers for managing related Ruby gems as a family.
|
|
770
770
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|