yeptris 0.6.98.0 → 0.6.100.0

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: 14d1aef01b20d729409f3bd901b724141b99561b11b6405db7bfcbded835829e
4
- data.tar.gz: eb47b9016e3d74abfd4ae00f1eff49257fd9d94f8fd737201a7d5baf7ba83eb3
3
+ metadata.gz: '02478614e5b21c2ac214fb594a9017f87ad72c97d893209c5efdf8ee844e23c5'
4
+ data.tar.gz: 76fb792280dac7e8a85bd98b25d13ab885891b8afc27cc17604ee9998d8918fc
5
5
  SHA512:
6
- metadata.gz: ab728342ed15963892fea4a472ec49728fb1752c4987d6e7ab380400d05e5f0a557d12de08f8dede42cd32f9976c9b24ff3af8b7e94f8ae00ceeee29df85f572
7
- data.tar.gz: fa58cb00706f7112c4cd596130da11edae176acc3a2e2ccb472f8dab5858c6724354afa011ff69e0ce65453d605dee930b758baf1b81cc559f25dd5346585a3c
6
+ metadata.gz: 03eb97431427d66067b5da94c009d87b49a9005f7a936eb22ecc8d37ca2768ef0ed2639cfc45cdad77c7982ec417904573f293a07ff171becdf9c1ac74361b7c
7
+ data.tar.gz: 77cd3ea979f023ed1e8d3e598290f282726521b54321b07c9bb5c8241a8839ba30f95cf1dc28f98c4f72fff3e2e3232537ad3132eefa3b98081e48c7f191f2c2
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.98.0".freeze
6
+ VERSION = "0.6.100.0".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
@@ -3,7 +3,7 @@
3
3
  cmake_minimum_required(VERSION 3.20)
4
4
 
5
5
  project(yeptris
6
- VERSION 0.6.98
6
+ VERSION 0.6.100
7
7
  DESCRIPTION "Ultra-fast YAML 1.2 parser, emitter and streamer in C"
8
8
  LANGUAGES C CXX
9
9
  )
@@ -366,9 +366,15 @@ static int cbor_key_diag(yep_cdec* c, uint8_t mt, uint64_t val, double dv) {
366
366
  case 0:
367
367
  n = cbor_u64dec(val, buf);
368
368
  break;
369
- case 1:
369
+ case 1: /* nint: the value is -1-val — the scalar arm's +1 (#1773:
370
+ * the key text rendered val, one past the true value) */
371
+ if (val == UINT64_MAX) {
372
+ /* -1-2^64 is past the u64 magnitude: the float text, the
373
+ * scalar arm's own law */
374
+ return cbor_float_node(c, -((double)val + 1.0), 1);
375
+ }
370
376
  buf[0] = '-';
371
- n = 1 + cbor_u64dec(val, buf + 1);
377
+ n = 1 + cbor_u64dec(val + 1, buf + 1);
372
378
  break;
373
379
  case 2: { /* h'hex' */
374
380
  buf[0] = 'h';
@@ -557,6 +563,13 @@ static int cbor_item(yep_cdec* c) {
557
563
 
558
564
  /* major type 7: simple values and floats */
559
565
  double dv = 0;
566
+ /* strict: the simple-value key classes reject here — the mt 0/1
567
+ * arms and the float fallthrough carry their own gates, and this
568
+ * one was the #1773 gap (bool/null/undefined/simple(N) keys
569
+ * passed where the header contract says non-text keys reject) */
570
+ if (key_slot && c->strict && ai < 25) {
571
+ CBOR_REJECT("string key required");
572
+ }
560
573
  switch (ai) {
561
574
  case 20:
562
575
  if (key_slot) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yeptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.98.0
4
+ version: 0.6.100.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-30 00:00:00.000000000 Z
11
+ date: 2026-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi