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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/yeptris/yaml.rb +8 -1
  3. data/lib/yeptris.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7103dd1c1b5a2ce267c30b44b6dc8449c8956df18a5027f4c54ad308ae53de17
4
- data.tar.gz: 61e61bf7cbfa1afc2f45d7b1c2c5d524d19c5913e114afd757085f216d3992d5
3
+ metadata.gz: fe4cd28cda62221f82b416ba9097ebfb7b587743122066521b21376b5edbeb31
4
+ data.tar.gz: ec0d7c44a5c86fc6fc8da7b3917df7f77e17b48247afc6d1c077763affa9830b
5
5
  SHA512:
6
- metadata.gz: 3de49191c0ff6efc0a919232ee9571df5d0c51bdbc8f5625601c968622eaf97e49aa4981f677d045a9557646f50eae8b9e1d1039c9fd76fc1bb138db80779b2a
7
- data.tar.gz: 04ab85dd31d4dff82d3c393ce4d9b0685bbf9f4f99f77554613c32c42485cceb3c5535e824feef78b07d38a7c8a334f55412bfdd6b0f0ce6c4da2d60b915d6ff
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
- place(k, emit, blob, off, seen)
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.1".freeze
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yeptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.62.1
4
+ version: 0.6.62.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.