yeptris 0.6.97.0-x86_64-linux → 0.6.99.0-x86_64-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: b47659c6a214ac1fe3c11c3fd66835c4bbe91922dbab3f619eab2bebba0ab60a
4
- data.tar.gz: 21560ffcda71176b6efbdacdc25e1fee2809a062de86365821cceca67a182b11
3
+ metadata.gz: '00830387a54713c12f7d660f0464438e3210831fb22c874d8aa8251cf44274d6'
4
+ data.tar.gz: ba4173f8a1c4946b7658d992f6535d0929580f7ddec2db32ade214575328613b
5
5
  SHA512:
6
- metadata.gz: cb4ad0dabaed118c321ab7b58ac359b96ea608cfb694f7492cebac844741568e3036cac4b7b630fadfddf981a644a7f21ba541b5bad282a978c0ae47565277ab
7
- data.tar.gz: 2eb912977fac1fdbb2123a84e3f3214639b06e060fe07e9959d891b644aefef0c85bb74bba0a102dba445b16c2767cf1836e38a7d6224d2c2af165948ba41a40
6
+ metadata.gz: 9227b02fbf1af4ffc141cd011cde340594195342f94012e9c964a1b80147f8d00e69911706621f0b004e0d2bac7e29b2cccdb334e1c79a5dff609cb110050821
7
+ data.tar.gz: d866e12d0dcec5063f44b28bbebfd825fe3e2daab9cfef6bc1893e28e2b4f8bdfbb1b4496cd32278016552eef66cfe3824cc31665c8996960308dfa985727c9e
@@ -11,8 +11,8 @@
11
11
 
12
12
  #define YEPTRIS_VERSION_MAJOR 0
13
13
  #define YEPTRIS_VERSION_MINOR 6
14
- #define YEPTRIS_VERSION_PATCH 97
15
- #define YEPTRIS_VERSION_STRING "0.6.97"
14
+ #define YEPTRIS_VERSION_PATCH 99
15
+ #define YEPTRIS_VERSION_STRING "0.6.99"
16
16
 
17
17
  #ifdef __cplusplus
18
18
  extern "C" {
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.97.0".freeze
6
+ VERSION = "0.6.99.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.97
6
+ VERSION 0.6.99
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yeptris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.97.0
4
+ version: 0.6.99.0
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Ribose Inc.