yeptris 0.6.62.1 → 0.6.62.2
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
- data/lib/yeptris/yaml.rb +8 -1
- data/lib/yeptris.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe4cd28cda62221f82b416ba9097ebfb7b587743122066521b21376b5edbeb31
|
|
4
|
+
data.tar.gz: ec0d7c44a5c86fc6fc8da7b3917df7f77e17b48247afc6d1c077763affa9830b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1eab05d0be3c76e8b33d637bb7923b63545a32bda7760035ab12b08d8b11fff02208580ca7d14c4f9864579351f745b7b83bf5945f8d7237238e54f891e9409
|
|
7
|
+
data.tar.gz: 5f0b4aaecf06ddef666861e32eaef666c51f392a2130ec9dd65b9d18bd98fdcf1ca9fb933a735fe7a59869335e14abc958ec570a9fd0be8632d790c87715a6ed
|
data/lib/yeptris/yaml.rb
CHANGED
|
@@ -414,7 +414,14 @@ module Yeptris
|
|
|
414
414
|
blob << "!!str"
|
|
415
415
|
off[0] += 5
|
|
416
416
|
elsif k.is_a?(String)
|
|
417
|
-
|
|
417
|
+
# keys ride the explicit-!!str semantics: the 1.1
|
|
418
|
+
# reshape words (y/n/yes/no...) stay BARE like stdlib's
|
|
419
|
+
# key path (leptris/yeptris#1264 — the visitor face has
|
|
420
|
+
# always emitted them bare), so the RESHAPES_SET gate
|
|
421
|
+
# does not apply; the SAFE_WORD fast lane is the
|
|
422
|
+
# positional-safety check alone
|
|
423
|
+
style = k.match?(SAFE_WORD) && !k.end_with?(" ") ? STYLE_PLAIN : STYLE_BY_NAME[string_style(k)]
|
|
424
|
+
scalar(k, style, emit, blob, off)
|
|
418
425
|
else
|
|
419
426
|
scalar(k.to_s, STYLE_PLAIN, emit, blob, off)
|
|
420
427
|
end
|
data/lib/yeptris.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Yeptris
|
|
4
4
|
# The gem's version lives in the parent namespace's file — the last
|
|
5
5
|
# internal require (yeptris/version) retired with it.
|
|
6
|
-
VERSION = "0.6.62.
|
|
6
|
+
VERSION = "0.6.62.2".freeze
|
|
7
7
|
|
|
8
8
|
# Informational notices are OPT-IN (yeptris-ruby#217): consumers
|
|
9
9
|
# embed yeptris inside CLIs that assert clean stderr, and a
|