kettle-family 1.3.49 → 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 +14 -1
- data/README.md +1 -1
- data/lib/kettle/family/secrets.rb +36 -6
- data/lib/kettle/family/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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,17 @@ 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
|
+
|
|
33
44
|
## [1.3.49] - 2026-11-25
|
|
34
45
|
|
|
35
46
|
- TAG: [v1.3.49][1.3.49t]
|
|
@@ -3556,7 +3567,9 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
|
3556
3567
|
- Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
|
|
3557
3568
|
- Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
|
|
3558
3569
|
|
|
3559
|
-
[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
|
|
3560
3573
|
[1.3.49]: https://github.com/kettle-dev/kettle-family/compare/v1.3.48...v1.3.49
|
|
3561
3574
|
[1.3.49t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.49
|
|
3562
3575
|
[1.3.48]: https://github.com/kettle-dev/kettle-family/compare/v1.3.47...v1.3.48
|
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
|
|
@@ -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
|
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
|
|
@@ -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"
|
metadata.gz.sig
CHANGED
|
Binary file
|