ace-support-cli 0.6.8 → 0.6.9

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: 9465d6244fddba266da89146b48e2fc8dfcebf87d835d93cc90bb14c553fb3d5
4
- data.tar.gz: e2e2fd7b803bc14d8ef586a678a4e5c28c6b7c9833b05fb3f045e611e407de7d
3
+ metadata.gz: cbcd26854c1dcfe8c16d4024cd0c2b4c7a16796dce24f1da392495a5dae0b470
4
+ data.tar.gz: a4928a2682ed05127e9bd463b4c1df18303693e17c650b05ac4a746480b6ba2b
5
5
  SHA512:
6
- metadata.gz: 94504fb7bcbc77c7342205ebd3ebe626eb1f137b28f41d62f08bd0395957134971cb8278ed85b15b5a6f9e702c63cc6713f0b9c53952846fd00ae6fc03b86528
7
- data.tar.gz: 6714d4f23e9481f03a3c8bf2666296373c8d1860cb7e0246535388b3e9cf1261a2e7a31592e6f2fc54a37511c62d93b4e6ea316d372c38628c5c3a20e84dfe25
6
+ metadata.gz: 1abcf19ddb8f690818a501259094292aa38213e74ab4bda4f22fd42240f9724fd5051e4547c23ee8795bfdeb59b45d44166fdd878ac227c9df61e38af6f2a2f1
7
+ data.tar.gz: 3554cd2b86ce51600d20b39a1c4164728990ddb9e1e8dcb095d3b00265f46dc346e0440f9ff645eb97168043542f55b097edd937bfb004e2b85f40417c0f525b
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.6.9] - 2026-09-29
8
+
9
+ ### Fixed
10
+ - CLI options without a declared default no longer materialize a `nil` key
11
+ when the flag is absent: absent and bare optional-value flags are now
12
+ distinguishable by callers (`--delta`-style flags had made every plain
13
+ review fail with "--delta requires --pr" since the key was always
14
+ present).
7
15
 
8
16
  ## [0.6.8] - 2026-09-02
9
17
 
@@ -73,6 +73,12 @@ module Ace
73
73
 
74
74
  def build_defaults
75
75
  command_class.options.each_with_object({}) do |option, hash|
76
+ # Only declared defaults materialize a key: an option without a
77
+ # default must stay absent when the flag is not given, so callers
78
+ # can distinguish "flag absent" from "flag given with an optional
79
+ # (nil) value".
80
+ next if option.default.nil?
81
+
76
82
  hash[option.name] = duplicate_default(option.default)
77
83
  end
78
84
  end
@@ -3,7 +3,7 @@
3
3
  module Ace
4
4
  module Support
5
5
  module Cli
6
- VERSION = "0.6.8"
6
+ VERSION = "0.6.9"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ace-support-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Czyz
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2026-09-05 00:00:00.000000000 Z
10
+ date: 2026-09-30 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Provides command DSL, option parsing, registry routing, and runner primitives
13
13
  for ACE CLI tools.