kettle-dev 2.2.21 → 2.2.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c84739dfdebb3ae9c5c6fd438c7cc1db6e5707d9cecfe7a3e2e754e41390301
4
- data.tar.gz: 9e1f2b9e2f3c842c218977027c6cf69c1a753072f2d281e39239dc3e7097e9ee
3
+ metadata.gz: 4eae68fe1a6357a69649df35339f11f14c9ee4619b178bd75aca169f0dda3100
4
+ data.tar.gz: 65ef0e0c7fb48335463f448b27b4604e6fccdf62c8451c38d3a9c282978db573
5
5
  SHA512:
6
- metadata.gz: 287be3949983f25366e89ec2de3058bc63cf14dee7ff5b45a5da6a49a09d524493e91318788a370bb6ff92d4bed313771596368638f5026802850523be74f4df
7
- data.tar.gz: 20bf852b21d4fa605b151e9ee4fe91b50921fa7320ded4ec937951e3cfcc4177ae653246448139ede0188d4741d70f0b5d1b7afce04ed042442d31cbbbb4f98b
6
+ metadata.gz: 4ce029f2bd1491ca589430f8f9495bb104d35f76b00ea0a3ec27573d73292af9c574dabc1c2f3931236cd02b1c05a3787d226fd6282b015945873ea77bb38def
7
+ data.tar.gz: 7d8544ef88af548ace5c0eb776076c2bf0fdf5ed36eabfd249c8661345cd599a464c098531cbb31b089ab583ab171012a131cc5ba7f03195e4123260c96b37e6
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,30 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [2.2.23] - 2026-06-28
34
+
35
+ - TAG: [v2.2.23][2.2.23t]
36
+ - COVERAGE: 91.63% -- 4160/4540 lines in 33 files
37
+ - BRANCH COVERAGE: 72.82% -- 1650/2266 branches in 33 files
38
+ - 61.04% documented
39
+
40
+ ### Fixed
41
+
42
+ - `kettle-release` no longer tries to switch an active local/dev checkout when
43
+ the release is running from that same branch-stack checkout.
44
+
45
+ ## [2.2.22] - 2026-06-28
46
+
47
+ - TAG: [v2.2.22][2.2.22t]
48
+ - COVERAGE: 92.01% -- 4171/4533 lines in 33 files
49
+ - BRANCH COVERAGE: 73.08% -- 1653/2262 branches in 33 files
50
+ - 61.04% documented
51
+
52
+ ### Fixed
53
+
54
+ - `kettle-release` now passes the exact built gem artifact to `bin/gem_checksums`
55
+ so stale packages in `pkg/` cannot cause checksums for the wrong version.
56
+
33
57
  ## [2.2.21] - 2026-06-28
34
58
 
35
59
  - TAG: [v2.2.21][2.2.21t]
@@ -2334,7 +2358,11 @@ Please file a bug if you notice a violation of semantic versioning.
2334
2358
  - Selecting will run the selected workflow via `act`
2335
2359
  - This may move to its own gem in the future.
2336
2360
 
2337
- [Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v2.2.21...HEAD
2361
+ [Unreleased]: https://github.com/kettle-dev/kettle-dev/compare/v2.2.23...HEAD
2362
+ [2.2.23]: https://github.com/kettle-dev/kettle-dev/compare/v2.2.22...v2.2.23
2363
+ [2.2.23t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.2.23
2364
+ [2.2.22]: https://github.com/kettle-dev/kettle-dev/compare/v2.2.21...v2.2.22
2365
+ [2.2.22t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.2.22
2338
2366
  [2.2.21]: https://github.com/kettle-dev/kettle-dev/compare/v2.2.20...v2.2.21
2339
2367
  [2.2.21t]: https://github.com/kettle-dev/kettle-dev/releases/tag/v2.2.21
2340
2368
  [2.2.20]: https://github.com/kettle-dev/kettle-dev/compare/v2.2.19...v2.2.20
data/README.md CHANGED
@@ -874,7 +874,7 @@ Thanks for RTFM. ☺️
874
874
  [📌gitmoji]: https://gitmoji.dev
875
875
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
876
876
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
877
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-4.529-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
877
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-4.540-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
878
878
  [🔐security]: https://github.com/kettle-dev/kettle-dev/blob/main/SECURITY.md
879
879
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
880
880
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -344,8 +344,9 @@ module Kettle
344
344
  # release build to include them in the gem, thus altering the artifact, and invalidating the checksums.
345
345
  if run_step?(16)
346
346
  # Generate checksums for the just-built artifact, commit them, then validate
347
- run_cmd!("bin/gem_checksums")
348
347
  version ||= detect_version
348
+ gem_path = checksum_gem_path_for_version!(version)
349
+ run_cmd!("bin/gem_checksums #{Shellwords.escape(gem_path)}")
349
350
  validate_checksums!(version, stage: "after release")
350
351
  end
351
352
 
@@ -422,6 +423,8 @@ module Kettle
422
423
  abort("Cannot select RUBOCOP_LTS_LOCAL branch for #{ruby_gem.inspect}.") unless branch
423
424
 
424
425
  checkout = File.join(local_root, "rubocop-lts")
426
+ return if active_local_branch_stack_release_checkout?(checkout)
427
+
425
428
  current, ok = git_output(["-C", checkout, "branch", "--show-current"])
426
429
  abort("Cannot inspect RUBOCOP_LTS_LOCAL checkout at #{checkout}.") unless ok
427
430
  return if current == branch
@@ -431,6 +434,18 @@ module Kettle
431
434
  abort("Cannot switch RUBOCOP_LTS_LOCAL checkout at #{checkout} to #{branch}. Commit or stash local changes, then retry.") unless switched
432
435
  end
433
436
 
437
+ def active_local_branch_stack_release_checkout?(checkout)
438
+ return false if local_kettle_family_release_target_branches.empty?
439
+
440
+ same_path?(@root, checkout)
441
+ end
442
+
443
+ def same_path?(left, right)
444
+ File.realpath(left) == File.realpath(right)
445
+ rescue Errno::ENOENT
446
+ false
447
+ end
448
+
434
449
  def rubocop_lts_local_root
435
450
  value = ENV["RUBOCOP_LTS_LOCAL"].to_s.strip
436
451
  return nil if value.empty? || %w[false 0 no off].include?(value.downcase)
@@ -1159,10 +1174,7 @@ module Kettle
1159
1174
  end
1160
1175
 
1161
1176
  def validate_checksums!(version, stage: "")
1162
- gem_path = gem_file_for_version(version)
1163
- unless gem_path && File.file?(gem_path)
1164
- abort("Unable to locate built gem for version #{version} in pkg/. Did the build succeed?")
1165
- end
1177
+ gem_path = checksum_gem_path_for_version!(version)
1166
1178
  actual = compute_sha256(gem_path)
1167
1179
  checks_path = File.join(@root, "checksums", "#{File.basename(gem_path)}.sha256")
1168
1180
  unless File.file?(checks_path)
@@ -1184,6 +1196,14 @@ module Kettle
1184
1196
  end
1185
1197
  end
1186
1198
 
1199
+ def checksum_gem_path_for_version!(version)
1200
+ gem_path = gem_file_for_version(version)
1201
+ unless gem_path && File.file?(gem_path)
1202
+ abort("Unable to locate built gem for version #{version} in pkg/. Did the build succeed?")
1203
+ end
1204
+ gem_path
1205
+ end
1206
+
1187
1207
  def gem_file_for_version(version)
1188
1208
  pkg = File.join(@root, "pkg")
1189
1209
  pattern = File.join(pkg, "*.gem")
@@ -3,7 +3,7 @@
3
3
  module Kettle
4
4
  module Dev
5
5
  module Version
6
- VERSION = "2.2.21"
6
+ VERSION = "2.2.23"
7
7
  end
8
8
  VERSION = Version::VERSION # Traditional Constant Location
9
9
  end
data.tar.gz.sig CHANGED
@@ -1,3 +1,2 @@
1
- 4>��F��C]�t���
2
- �/F�,˪9�
3
- ��oK
1
+ q������\��� � P��L�z^r��':�� �����mc-�3K�# �#�"��&�֕j�,;��n|txG*�X��Pn��!�s�σ�E��"֯ҿ L <M�y.�VR�5�#�bM�z����Q ���E��Vp�,�C��1a�}��Ȃ����]ޣH�΀�U��1h/�F�ᐙ���Z�&�&���~y�������=�ɩXWT�/6�#��F�ڲ�����*���3�K���6�,���9l<�f8��u!�|����/���Z�����X��*�6~f��J83�'h��*O9���1�%�8"\m*�<J��w+<�o�7I�hn&��>���#�m?'{
2
+ �o&[i%9eHs���v o�9�xA��@
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.2.21
4
+ version: 2.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -208,7 +208,7 @@ dependencies:
208
208
  version: '1.0'
209
209
  - - ">="
210
210
  - !ruby/object:Gem::Version
211
- version: 1.0.3
211
+ version: 1.0.4
212
212
  type: :development
213
213
  prerelease: false
214
214
  version_requirements: !ruby/object:Gem::Requirement
@@ -218,7 +218,7 @@ dependencies:
218
218
  version: '1.0'
219
219
  - - ">="
220
220
  - !ruby/object:Gem::Version
221
- version: 1.0.3
221
+ version: 1.0.4
222
222
  - !ruby/object:Gem::Dependency
223
223
  name: gitmoji-regex
224
224
  requirement: !ruby/object:Gem::Requirement
@@ -359,10 +359,10 @@ licenses:
359
359
  - AGPL-3.0-only
360
360
  metadata:
361
361
  homepage_uri: https://kettle-dev.galtzo.com
362
- source_code_uri: https://github.com/kettle-dev/kettle-dev/tree/v2.2.21
363
- changelog_uri: https://github.com/kettle-dev/kettle-dev/blob/v2.2.21/CHANGELOG.md
362
+ source_code_uri: https://github.com/kettle-dev/kettle-dev/tree/v2.2.23
363
+ changelog_uri: https://github.com/kettle-dev/kettle-dev/blob/v2.2.23/CHANGELOG.md
364
364
  bug_tracker_uri: https://github.com/kettle-dev/kettle-dev/issues
365
- documentation_uri: https://www.rubydoc.info/gems/kettle-dev/2.2.21
365
+ documentation_uri: https://www.rubydoc.info/gems/kettle-dev/2.2.23
366
366
  funding_uri: https://github.com/sponsors/pboling
367
367
  wiki_uri: https://github.com/kettle-dev/kettle-dev/wiki
368
368
  news_uri: https://www.railsbling.com/tags/kettle-dev
metadata.gz.sig CHANGED
Binary file