yeptris 0.6.34.1-powerpc64le-linux → 0.6.34.3-powerpc64le-linux

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: 54e880bc714cc53ae94b365efcc3218d1362beec04ae163f619dd68150637d60
4
- data.tar.gz: fd21075a98acda3197fd81999484a7911b2b7d5f1c21a215cb67f075735b1c6c
3
+ metadata.gz: 2a1fc48dd3f37f31cfb5c1f4215b47fd5a6b2ef26040c7d7cc4cda68ddb5dd96
4
+ data.tar.gz: d77725e43bf4eeb0acc6043535ed35abd8cbed1c1cf32b0d79109419ad111c4a
5
5
  SHA512:
6
- metadata.gz: 878a226683320b2effb97d05d01085a69acf38b5bcd2ff5e216447bd7854c2619353a9232b1a2c16bb5a397297cd22444d4905a669375f6cb2bcaf1095636c8f
7
- data.tar.gz: 90092588c817a9cccfaaf043c7ce1cb0dfbae5de2d43fd21bc35a2e76e585b92ee64cacdd7944f05093a48605fa7b97178809234feef1f59bfebf15a1f8e93c5
6
+ metadata.gz: ab00014039657c476e6336d4ca4bf60e8f4f05a330e8151b2a1f8f0e0117d16220e24997414697cc060acf339dbaaae65805557c69dd9163f7033fef25a64147
7
+ data.tar.gz: 1eb4b4d233f915dcd3a7729c068ef1e7d00c1a3729d851ace00756a43dac5b459abd80f9705958e3936084c759b24ff832086c44e6aa92758a2f08a8dfb389da
data/lib/yeptris/ffi.rb CHANGED
@@ -239,6 +239,12 @@ module Yeptris
239
239
  # the strict-dup marshal entry (engine 0.6.34+, yeptris-ruby#278):
240
240
  # gates the JSON fallback's C route in STRICT mode
241
241
  MARSHAL_STRICT_DUP = !(@missing ||= []).include?(:yeptris_marshal_node_ex)
242
+ # engine flag value (yeptris.h: YEPTRIS_MARSHAL_STRICT_DUP_KEYS 1u);
243
+ # defined whether or not the entry exists, because the JSON fallback
244
+ # references it on lanes without a Ruby-version-matched native ext
245
+ # (windows) and a NameError there fails every parse (lutaml-jsonschema
246
+ # CI, x64-mingw-ucrt 0.6.34.2)
247
+ MARSHAL_STRICT_DUP_KEYS = 1
242
248
 
243
249
  # bulk build (TODO.impl/15 phase D): one call raises a document
244
250
  BUILD_SCALAR = 1
data/lib/yeptris/json.rb CHANGED
@@ -45,7 +45,14 @@ module Yeptris
45
45
  # yeptris-ruby#278: with no Ruby-version-matched native build the
46
46
  # pure-Ruby walk measured 0.11x vs JSON.parse on real documents —
47
47
  # the marshal engine keeps the fallback C-side end to end.
48
- return marshal_engine(source, 0) if ::Yeptris::FFI::MARSHAL_STRICT_DUP
48
+ # STRICT_DUPLICATE_KEYS rides the flags: json >= 3's default
49
+ # contract raises on duplicates. The flags were hardcoded to 0
50
+ # here, so every lane without the native ext (windows-latest has
51
+ # none) answered last-wins under json >= 3 — found by canon's
52
+ # dependent CI, whose parity pin now names the lane.
53
+ return marshal_engine(
54
+ source, STRICT_DUPLICATE_KEYS ? ::Yeptris::FFI::MARSHAL_STRICT_DUP_KEYS : 0
55
+ ) if ::Yeptris::FFI::MARSHAL_STRICT_DUP
49
56
  tape_engine(source)
50
57
  end
51
58
 
data/lib/yeptris/yaml.rb CHANGED
@@ -1,5 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # The BulkBuilder's `when Date` must not depend on the caller loading
4
+ # stdlib's date (issue #289: a clean `require "yeptris"` raised NameError
5
+ # before the DumpError branch could run). Psych requires date the same way.
6
+ require "date"
7
+
3
8
  # Self-sufficient (issue #95): the neutral surface is a valid entry
4
9
  # point on its own — lutaml-model requires exactly this file.
5
10
  require "yeptris"
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.34.1".freeze
6
+ VERSION = "0.6.34.3".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.34.1
4
+ version: 0.6.34.3
5
5
  platform: powerpc64le-linux
6
6
  authors:
7
7
  - Ribose Inc.