kettle-family 1.3.31 → 1.3.32

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: 2e33765024c5355ceb460600f38a4699aa8b6ac1940520313b1e8ca5dc3de80e
4
- data.tar.gz: 3b51fc7b19a05a471fffb8d3c6f6e4136af611e7b0857f55769825ca04edf328
3
+ metadata.gz: '08c77450947a59e4d899708d9ea06ac1f6a3ecdbca9f1875697a111221c8a513'
4
+ data.tar.gz: 39bab3f859dffecd3c7c7bf218bf60a31d593d174f7bf35cc78ee00120796e77
5
5
  SHA512:
6
- metadata.gz: 765c430983dcc06ec76ffd956f7352b0b81149ebd6dbd36fadaa960a3ba528fdd226a4489863dcd1a0ddf2f78a5dd2679313bd4e9c6fe5b55c6f0c9ef1290136
7
- data.tar.gz: 69b1ad005954541847254deb17c8bdc83574d41c48c55d5d7cb1f745fa4565afef6797c82f8d832b01aa8c194053bbba0d603050c3de25ffab26dc1e762a8a11
6
+ metadata.gz: e11ec34af3513c579f0de85e0ac3967736d9296edd3181c824661d0e77c958dba7fde98870a37b8ab0e030776f24ff8f90cee743e989b174ded6745f6c589363
7
+ data.tar.gz: f3420d41b085ff447bc05e0f4976fa4ee12b1eba42b73047a1afb5cadf8966b82f7a17430a2e9a5c7923f66ef6498646bcb7225aa71677264ed57cbf8c10fda6
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.32] - 2026-10-23
34
+
35
+ - TAG: [v1.3.32][1.3.32t]
36
+ - COVERAGE: 93.10% -- 7548/8107 lines in 45 files
37
+ - BRANCH COVERAGE: 77.70% -- 3034/3905 branches in 45 files
38
+ - 38.69% documented
39
+
40
+ ### Fixed
41
+
42
+ - MiseTasks.materialize_managed_suite no longer silently deletes root mise.toml task definitions that duplicate the managed suite. Root redefinitions shadow the managed file under mise precedence and may be deliberate local overrides; they are now REPORTED (template workflow, kettle-jem plugin, and mise-tasks CLI all warn with the same message and remediation hint) and removal stays opt-in via kettle-family mise-tasks --clean. Previously the CLI's documented warn-by-default path was dead code: materialize cleaned before the warning check ran, so redefinitions vanished without notice on every template run.
43
+
33
44
  ## [1.3.31] - 2026-10-23
34
45
 
35
46
  - TAG: [v1.3.31][1.3.31t]
@@ -3225,7 +3236,9 @@ Please file a bug if you notice a violation of semantic versioning.
3225
3236
  - Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
3226
3237
  - Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
3227
3238
 
3228
- [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.31...HEAD
3239
+ [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.3.32...HEAD
3240
+ [1.3.32]: https://github.com/kettle-dev/kettle-family/compare/v1.3.31...v1.3.32
3241
+ [1.3.32t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.32
3229
3242
  [1.3.31]: https://github.com/kettle-dev/kettle-family/compare/v1.3.30...v1.3.31
3230
3243
  [1.3.31t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.3.31
3231
3244
  [1.3.30]: https://github.com/kettle-dev/kettle-family/compare/v1.3.29...v1.3.30
data/README.md CHANGED
@@ -1225,7 +1225,7 @@ Thanks for RTFM. ☺️
1225
1225
  [📌gitmoji]: https://gitmoji.dev
1226
1226
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
1227
1227
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
1228
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-8.102-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
1228
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-8.107-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
1229
1229
  [🔐security]: https://github.com/kettle-dev/kettle-family/blob/main/SECURITY.md
1230
1230
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
1231
1231
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -8,10 +8,12 @@ module Kettle
8
8
  module Family
9
9
  # Slice-1044 family mise tasks primitive: ensure a destination root
10
10
  # `mise.toml` references the kettle-family-managed TOML task file via
11
- # `[task_config] includes`, and report (optionally clean) task
12
- # redefinitions between the root file and the managed file. Family
13
- # refreshes migrate managed task names out of the root so old commands
14
- # cannot shadow generated fixes. Other tasks and settings remain local.
11
+ # `[task_config] includes`, and report (never silently remove) task
12
+ # redefinitions between the root file and the managed file. Removal is
13
+ # the caller's explicit choice (`kettle-family mise-tasks --clean`): a
14
+ # root redefinition shadows the managed definition under mise precedence
15
+ # and may be a deliberate local override. Other tasks and settings remain
16
+ # local.
15
17
  #
16
18
  # All edits go through ast-crispr Actors with the ast-crispr-toml adapter.
17
19
  module MiseTasks
@@ -320,14 +322,23 @@ module Kettle
320
322
 
321
323
  task_file_path = File.join(root, task_file_name)
322
324
  original = File.read(root_mise)
323
- included = ensure_include(root_content: original, task_file_name: task_file_name)
324
- result = clean_redefinitions(
325
- root_content: included.content,
326
- task_file_name: task_file_name,
327
- task_file_content: content
328
- )
325
+ result = ensure_include(root_content: original, task_file_name: task_file_name, task_file_content: content)
329
326
  File.write(task_file_path, content) unless File.exist?(task_file_path) && File.read(task_file_path) == content
330
327
  File.write(root_mise, result.content) unless result.content == original
328
+ result
329
+ end
330
+
331
+ # Warn about each redefinition to the given stream. Shared by the CLI
332
+ # command, the template workflow, and the kettle-jem plugin so the
333
+ # message and remediation hint stay identical everywhere.
334
+ #
335
+ # @param redefinitions [Array<String>]
336
+ # @param task_file_name [String]
337
+ # @param err [IO]
338
+ def self.warn_redefinitions(redefinitions, task_file_name: DEFAULT_TASK_FILE_NAME, err: $stderr)
339
+ Array(redefinitions).each do |name|
340
+ err.puts("kettle-family: task #{name.inspect} is defined in both mise.toml and #{task_file_name}; root mise.toml wins (redefinition allowed; run `kettle-family mise-tasks --clean` to restore the managed definition)")
341
+ end
331
342
  end
332
343
 
333
344
  # Comprehensive managed family mise task suite, generated from family
@@ -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.31"
8
+ VERSION = "1.3.32"
9
9
  end
10
10
  # Current gem version exposed at the traditional constant location.
11
11
  VERSION = Version::VERSION # Traditional Constant Location
@@ -259,7 +259,8 @@ module Kettle
259
259
  )
260
260
  results = checkout_preflight + sync_results + workflow_results + rollback_results + restore_results
261
261
  if results.all?(&:ok?)
262
- MiseTasks.materialize_managed_suite(context: {project_root: config.root})
262
+ suite_result = MiseTasks.materialize_managed_suite(context: {project_root: config.root})
263
+ MiseTasks.warn_redefinitions(suite_result&.redefinitions)
263
264
  # `mise trust` requires the mise executable; spec environments and
264
265
  # minimal CI images may not have it installed. Trust is only an
265
266
  # enabler for subsequent nested mise runs, so skip when absent.
data/lib/kettle/family.rb CHANGED
@@ -71,7 +71,8 @@ module Kettle
71
71
 
72
72
  def register_kettle_jem_plugin(registrar)
73
73
  registrar.on_phase("remaining_files", timing: :after) do |context:|
74
- MiseTasks.materialize_managed_suite(context: context)
74
+ suite_result = MiseTasks.materialize_managed_suite(context: context)
75
+ MiseTasks.warn_redefinitions(suite_result&.redefinitions)
75
76
  end
76
77
  end
77
78
  end
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.31
4
+ version: 1.3.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -568,10 +568,10 @@ licenses:
568
568
  - AGPL-3.0-only
569
569
  metadata:
570
570
  homepage_uri: https://kettle-family.galtzo.com
571
- source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.3.31
572
- changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.31/CHANGELOG.md
571
+ source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.3.32
572
+ changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.3.32/CHANGELOG.md
573
573
  bug_tracker_uri: https://github.com/kettle-dev/kettle-family/issues
574
- documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.3.31
574
+ documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.3.32
575
575
  funding_uri: https://github.com/sponsors/pboling
576
576
  wiki_uri: https://github.com/kettle-dev/kettle-family/wiki
577
577
  news_uri: https://www.railsbling.com/tags/kettle-family
metadata.gz.sig CHANGED
Binary file