kettle-family 1.2.6 → 1.2.8

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: 87022fba999d5343044afcf1c679be7b53f49648ce71ff7aebfe29044ee6064a
4
- data.tar.gz: 775df5e0ce6843e9013fbe7a4cc17ea2608322aae8139f9116f51a456051a5b8
3
+ metadata.gz: 29d07c7927fc1e4369d1deaf88fe88855c533f1f2794f012a5452705df3c332c
4
+ data.tar.gz: 24eece688e92ec4253be48cf041d6e97ae3457f3668215dbc1edb82c13160eb0
5
5
  SHA512:
6
- metadata.gz: 258275ea92c47f043220780188c6967427e700bf66f7e8675700ac39d4ffb4a7da775a809a587babfa839f32778bc81e4b525f2f33f839648cf11be1be1b239c
7
- data.tar.gz: ec9fd4d7a541edd9f82b4bb9e57510563f264b5893734814c27a6eae24f3af4ca05fbd80baa1986de388ab6a4b83daa4bbfafae3117bf748693fe50a2261a2d3
6
+ metadata.gz: d47c545b53878e0fa85111529a912263f829293ec111d7d929936d84dde80b9e9504fe123674c3b903bd360ab73d889cc88dbc65a5fd4f9ff07bed50a1f00637
7
+ data.tar.gz: 7198da5864c986c0e5b8a94b07e67fa5153588fb179f87d073972baa5b51b97f6814d576cc20d1565acaf068a0310c695d3eec06c0264c706fb2802aae345a79
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,36 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [1.2.8] - 2026-07-29
34
+
35
+ - TAG: [v1.2.8][1.2.8t]
36
+ - COVERAGE: 93.98% -- 3652/3886 lines in 27 files
37
+ - BRANCH COVERAGE: 76.43% -- 1394/1824 branches in 27 files
38
+ - 28.01% documented
39
+
40
+ ### Fixed
41
+
42
+ - `kettle-family bup` and `bupb` now disable family local-path envs even when
43
+ `release.env` already sets those keys to false, avoiding leaked monorepo roots
44
+ such as `STRUCTUREDMERGE_DEV=/path/to/family/root` during bundle updates.
45
+ - Family local-path env injection now defaults to `members_root` when no
46
+ explicit `family.local_path_root` is configured, matching monorepo families
47
+ whose sibling gems live under a subdirectory such as `gems/`.
48
+
49
+ ## [1.2.7] - 2026-07-29
50
+
51
+ - TAG: [v1.2.7][1.2.7t]
52
+ - COVERAGE: 93.98% -- 3650/3884 lines in 27 files
53
+ - BRANCH COVERAGE: 76.43% -- 1394/1824 branches in 27 files
54
+ - 28.01% documented
55
+
56
+ ### Fixed
57
+
58
+ - `kettle-family bup`, `bupb`, and release lockfile handling now treat truthy
59
+ `*_DEV` and `*_LOCAL` environment values as local path dependency mode, so
60
+ family local path envs such as `STRUCTUREDMERGE_DEV=true` are disabled for
61
+ release-style bundle refreshes.
62
+
33
63
  ## [1.2.6] - 2026-07-29
34
64
 
35
65
  - TAG: [v1.2.6][1.2.6t]
@@ -1276,7 +1306,11 @@ Please file a bug if you notice a violation of semantic versioning.
1276
1306
  - Fixed CI load failures on engines without compatible `pty` support by falling back to Open3 for interactive release commands.
1277
1307
  - Fixed Ruby 3.2 version-bump support by loading Prism lazily and wiring the Prism gem only for MRI versions that need it.
1278
1308
 
1279
- [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.2.6...HEAD
1309
+ [Unreleased]: https://github.com/kettle-dev/kettle-family/compare/v1.2.8...HEAD
1310
+ [1.2.8]: https://github.com/kettle-dev/kettle-family/compare/v1.2.7...v1.2.8
1311
+ [1.2.8t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.2.8
1312
+ [1.2.7]: https://github.com/kettle-dev/kettle-family/compare/v1.2.6...v1.2.7
1313
+ [1.2.7t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.2.7
1280
1314
  [1.2.6]: https://github.com/kettle-dev/kettle-family/compare/v1.2.5...v1.2.6
1281
1315
  [1.2.6t]: https://github.com/kettle-dev/kettle-family/releases/tag/v1.2.6
1282
1316
  [1.2.5]: https://github.com/kettle-dev/kettle-family/compare/v1.2.4...v1.2.5
data/README.md CHANGED
@@ -814,7 +814,7 @@ Thanks for RTFM. ☺️
814
814
  [📌gitmoji]: https://gitmoji.dev
815
815
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
816
816
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
817
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-3.882-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
817
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-3.886-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
818
818
  [🔐security]: https://github.com/kettle-dev/kettle-family/blob/main/SECURITY.md
819
819
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
820
820
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -52,7 +52,7 @@ module Kettle
52
52
 
53
53
  def family_local_path_root
54
54
  configured = fetch_path("family", "local_path_root")
55
- configured ? expand_config_relative_path(configured) : root
55
+ configured ? expand_config_relative_path(configured) : members_root
56
56
  end
57
57
 
58
58
  def family_local_path_env
@@ -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.2.6"
8
+ VERSION = "1.2.8"
9
9
  end
10
10
  # Current gem version exposed at the traditional constant location.
11
11
  VERSION = Version::VERSION # Traditional Constant Location
@@ -1945,7 +1945,8 @@ module Kettle
1945
1945
  def release_allowed_local_path_roots
1946
1946
  release_local_path_env_sources.filter_map do |key, value|
1947
1947
  next unless key.end_with?("_LOCAL", "_DEV")
1948
- next if value.to_s.empty? || value.to_s.casecmp("false").zero?
1948
+ next unless local_path_env_value?(value)
1949
+ next unless value.to_s.strip.start_with?("/", "./", "../", "~")
1949
1950
 
1950
1951
  value
1951
1952
  end
@@ -1953,7 +1954,7 @@ module Kettle
1953
1954
 
1954
1955
  def release_lockfile_local_path_env_overrides(member = nil)
1955
1956
  explicit = config.release_disable_local_path_env.to_h { |key| [key.to_s, "false"] }
1956
- derived = release_local_path_env_sources.each_with_object({}) do |(key, value), memo|
1957
+ derived = release_local_path_env_detection_sources.each_with_object({}) do |(key, value), memo|
1957
1958
  key = key.to_s
1958
1959
  next unless key.end_with?("_LOCAL", "_DEV")
1959
1960
  next unless local_path_env_value?(value)
@@ -2022,9 +2023,16 @@ module Kettle
2022
2023
  .merge(env_overrides)
2023
2024
  end
2024
2025
 
2026
+ def release_local_path_env_detection_sources
2027
+ ENV.to_h
2028
+ .merge(config.family_local_path_env)
2029
+ .merge(env_overrides)
2030
+ end
2031
+
2025
2032
  def local_path_env_value?(value)
2026
2033
  text = value.to_s.strip
2027
2034
  return false if text.empty? || text.casecmp("false").zero?
2035
+ return true if %w[true yes 1 on enabled].include?(text.downcase)
2028
2036
  return true if text.start_with?("/", "./", "../", "~")
2029
2037
 
2030
2038
  text.include?(File::SEPARATOR)
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.2.6
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -341,10 +341,10 @@ licenses:
341
341
  - AGPL-3.0-only
342
342
  metadata:
343
343
  homepage_uri: https://kettle-family.galtzo.com
344
- source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.2.6
345
- changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.2.6/CHANGELOG.md
344
+ source_code_uri: https://github.com/kettle-dev/kettle-family/tree/v1.2.8
345
+ changelog_uri: https://github.com/kettle-dev/kettle-family/blob/v1.2.8/CHANGELOG.md
346
346
  bug_tracker_uri: https://github.com/kettle-dev/kettle-family/issues
347
- documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.2.6
347
+ documentation_uri: https://www.rubydoc.info/gems/kettle-family/1.2.8
348
348
  funding_uri: https://github.com/sponsors/pboling
349
349
  wiki_uri: https://github.com/kettle-dev/kettle-family/wiki
350
350
  news_uri: https://www.railsbling.com/tags/kettle-family
metadata.gz.sig CHANGED
Binary file