kettle-family 1.3.46 → 1.3.48
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 +27 -1
- data/README.md +1 -1
- data/lib/kettle/family/report.rb +8 -1
- data/lib/kettle/family/secrets.rb +35 -3
- data/lib/kettle/family/secrets_broker.rb +18 -8
- data/lib/kettle/family/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: e3c826833b5e3d997eed5dea81628f1013fc8370a7e7cf0f87f84795efd2619f
|
|
4
|
+
data.tar.gz: 25db681eece199d28081d71bd745e9213304955e16b1aa37cc7f09df9f3963ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 250d23db0d131754012b2f4cb0310c50534741dc9f2cebf43d79d0f4d83f340917c484311e55a70fa40c52fbb7ac0cc5b595d22eab5b8262b3286b820c4f7bab
|
|
7
|
+
data.tar.gz: a89da80c7de57938a10dbd876a13cdbf1a0fe265c409d9dda31abbef3ae8854e36c82e7ac06e7a00691fe256bf7755d2c50bb7e80519f4dd70d242635d345c42
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -30,6 +30,28 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
30
30
|
|
|
31
31
|
### Security
|
|
32
32
|
|
|
33
|
+
## [1.3.48] - 2026-11-23
|
|
34
|
+
|
|
35
|
+
- TAG: [v1.3.48][1.3.48t]
|
|
36
|
+
- COVERAGE: 94.21% -- 8688/9222 lines in 49 files
|
|
37
|
+
- BRANCH COVERAGE: 79.26% -- 3639/4591 branches in 49 files
|
|
38
|
+
- 41.76% documented
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- release resume hints no longer point a family changelog failure at its anchor member (often already released); the unfinished members are the resume set
|
|
43
|
+
|
|
44
|
+
## [1.3.47] - 2026-11-23
|
|
45
|
+
|
|
46
|
+
- TAG: [v1.3.47][1.3.47t]
|
|
47
|
+
- COVERAGE: 94.21% -- 8686/9220 lines in 49 files
|
|
48
|
+
- BRANCH COVERAGE: 79.25% -- 3637/4589 branches in 49 files
|
|
49
|
+
- 41.76% documented
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
|
|
53
|
+
- release secrets broker: an empty Enter at the manual MFA/passphrase prompt now asks the vault again (up to 3 attempts) instead of failing every queued member; the prompt states exactly what to paste, and repeats a reminder every minute while waiting
|
|
54
|
+
|
|
33
55
|
## [1.3.46] - 2026-11-20
|
|
34
56
|
|
|
35
57
|
- TAG: [v1.3.46][1.3.46t]
|
|
@@ -3517,7 +3539,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
3517
3539
|
- Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
|
|
3518
3540
|
- Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
|
|
3519
3541
|
|
|
3520
|
-
[Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.
|
|
3542
|
+
[Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.48...HEAD
|
|
3543
|
+
[1.3.48]: https://github.com/kettle-dev/kettle-family/compare/v1.3.47...v1.3.48
|
|
3544
|
+
[1.3.48t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.48
|
|
3545
|
+
[1.3.47]: https://github.com/kettle-dev/kettle-family/compare/v1.3.46...v1.3.47
|
|
3546
|
+
[1.3.47t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.47
|
|
3521
3547
|
[1.3.46]: https://github.com/kettle-dev/kettle-family/compare/v1.3.45...v1.3.46
|
|
3522
3548
|
[1.3.46t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.46
|
|
3523
3549
|
[1.3.45]: https://github.com/kettle-dev/kettle-family/compare/v1.3.44...v1.3.45
|
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.222-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
|
@@ -840,8 +840,15 @@ module Kettle
|
|
|
840
840
|
end
|
|
841
841
|
|
|
842
842
|
def release_resume_hints
|
|
843
|
-
failed_hints = merged_release_failure_hints(visible_results.reject(&:ok?))
|
|
844
843
|
pending_names = summary_pending.map { |entry| entry.fetch("member") }
|
|
844
|
+
failures = visible_results.reject(&:ok?)
|
|
845
|
+
# The family changelog runs before any member and is attributed to the
|
|
846
|
+
# member that owns the shared version file, which is often an already
|
|
847
|
+
# released member of an earlier wave. Resuming "--only <that member>"
|
|
848
|
+
# would target a published gem; the resumed run redoes the changelog
|
|
849
|
+
# itself, so the unfinished members are the whole resume set.
|
|
850
|
+
failures = failures.reject { |result| result.phase == "family_changelog" } unless pending_names.empty?
|
|
851
|
+
failed_hints = merged_release_failure_hints(failures)
|
|
845
852
|
return failed_hints if pending_names.empty?
|
|
846
853
|
|
|
847
854
|
[*failed_hints, release_resume_hint_for_pending(pending_names)]
|
|
@@ -69,19 +69,32 @@ module Kettle
|
|
|
69
69
|
"rubygems_otp" => "RubyGems MFA code"
|
|
70
70
|
}.freeze
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
REMIND_EVERY_SECONDS = 60
|
|
73
|
+
|
|
74
|
+
def initialize(input: $stdin, output: $stderr, remind_every: REMIND_EVERY_SECONDS)
|
|
73
75
|
@input = input
|
|
74
76
|
@output = output
|
|
77
|
+
@remind_every = remind_every
|
|
75
78
|
end
|
|
76
79
|
|
|
77
80
|
def self.for_terminal(input: $stdin, output: $stderr)
|
|
78
81
|
new(input: input, output: output) if input.respond_to?(:tty?) && input.tty?
|
|
79
82
|
end
|
|
80
83
|
|
|
84
|
+
# Blocks until the user presses Enter. An empty answer means "ask the
|
|
85
|
+
# vault again" (the broker retries the adapter), so the instructions
|
|
86
|
+
# say so, and a reminder repeats once a minute so a long-running release
|
|
87
|
+
# never looks like a silent hang.
|
|
81
88
|
def ask(operation:, reason: nil)
|
|
82
|
-
|
|
83
|
-
|
|
89
|
+
label = LABELS.fetch(operation, operation)
|
|
90
|
+
instructions = "paste the #{label} and press Enter (nothing is shown while you type or paste), " \
|
|
91
|
+
"or press Enter on an empty line to ask the vault again"
|
|
92
|
+
@output.puts
|
|
93
|
+
@output.puts("🔑 #{label} needed#{": #{reason}" if reason}")
|
|
94
|
+
@output.puts(" Action required: #{instructions}.")
|
|
95
|
+
@output.print("\a#{label}: ")
|
|
84
96
|
@output.flush
|
|
97
|
+
reminder = start_reminder(label, instructions)
|
|
85
98
|
value = if @input.respond_to?(:noecho)
|
|
86
99
|
@input.noecho(&:gets)
|
|
87
100
|
else
|
|
@@ -89,6 +102,25 @@ module Kettle
|
|
|
89
102
|
end
|
|
90
103
|
@output.puts
|
|
91
104
|
value.to_s.chomp
|
|
105
|
+
ensure
|
|
106
|
+
reminder&.kill
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
private
|
|
110
|
+
|
|
111
|
+
def start_reminder(label, instructions)
|
|
112
|
+
return nil unless @remind_every&.positive?
|
|
113
|
+
|
|
114
|
+
Thread.new do # rubocop:disable ThreadSafety/NewThread -- the reminder must tick while the main thread blocks on terminal input
|
|
115
|
+
waited = 0
|
|
116
|
+
loop do
|
|
117
|
+
sleep(@remind_every)
|
|
118
|
+
waited += @remind_every
|
|
119
|
+
@output.puts("\n⏳ Still waiting for the #{label} (#{waited / 60} min): #{instructions}.")
|
|
120
|
+
@output.print("#{label}: ")
|
|
121
|
+
@output.flush
|
|
122
|
+
end
|
|
123
|
+
end
|
|
92
124
|
end
|
|
93
125
|
end
|
|
94
126
|
|
|
@@ -15,6 +15,8 @@ module Kettle
|
|
|
15
15
|
# one release session is shared across sequential and parallel waves.
|
|
16
16
|
class Broker
|
|
17
17
|
OPERATIONS = %w[gem_signing_passphrase rubygems_otp].freeze
|
|
18
|
+
# Approval attempts per request: the first plus retries after the user presses Enter on an empty line.
|
|
19
|
+
MAX_APPROVAL_ATTEMPTS = 3
|
|
18
20
|
UNIX_SOCKET_PATH_MAX = RbConfig::CONFIG["host_os"].include?("darwin") ? 103 : 107
|
|
19
21
|
|
|
20
22
|
attr_reader :path
|
|
@@ -118,14 +120,22 @@ module Kettle
|
|
|
118
120
|
+""
|
|
119
121
|
end
|
|
120
122
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
attempts = 0
|
|
124
|
+
begin
|
|
125
|
+
attempts += 1
|
|
126
|
+
provider.public_send(operation)
|
|
127
|
+
rescue AuthorizationError => error
|
|
128
|
+
# An empty answer from the user means "ask the vault again", so a
|
|
129
|
+
# blank Enter retries the adapter (re-raising the approval prompt)
|
|
130
|
+
# instead of failing the whole release.
|
|
131
|
+
typed = prompt_user(operation, error.message)
|
|
132
|
+
return typed if typed
|
|
133
|
+
retry if attempts < MAX_APPROVAL_ATTEMPTS && @prompter
|
|
134
|
+
|
|
135
|
+
message = "#{error.message} (approve the access prompt, then resume the release)"
|
|
136
|
+
@authorization_failure = {at: Process.clock_gettime(Process::CLOCK_MONOTONIC), message: message}
|
|
137
|
+
raise Error, message
|
|
138
|
+
end
|
|
129
139
|
end
|
|
130
140
|
|
|
131
141
|
def prompt_user(operation, reason)
|
|
@@ -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.48"
|
|
9
9
|
end
|
|
10
10
|
# Current gem version exposed at the traditional constant location.
|
|
11
11
|
VERSION = Version::VERSION # Traditional Constant Location
|
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.48
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter H. Boling
|
|
@@ -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.48"
|
|
733
|
+
changelog_uri: "https://github.com/kettle-dev/kettle-family/blob/v1.3.48/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.48"
|
|
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"
|
metadata.gz.sig
CHANGED
|
Binary file
|