yeptris 0.6.66.0-s390x-linux → 0.6.67.0-s390x-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: e18a66361e133e26d9b19bf40239530d4a3c9afb075787fae5b72847aa591ee2
4
- data.tar.gz: 6f42996b8479b8f5c60ece5a157d9f39a6e48de5ddf9b15ad9f6b7f457abf1d0
3
+ metadata.gz: eec6d30ce2ab217ef55dd64ab734c45ba5948c03b542493dd8c61c39f3d04a87
4
+ data.tar.gz: 72abffa8d3a55f80af39f2032a3a9847259f211c0bf4046ca7900b192cf1bd33
5
5
  SHA512:
6
- metadata.gz: b5e748d784b5cb4a218c95d1d7d95348329ca505e385ad6f325ac4df5c5508e6e7158c54a7baf32ad9fc2178947a17763d3cb43cf6778c58a6ac1e2fd8e94c48
7
- data.tar.gz: fc2377314b1e61bfa45a259e1c477a1ce28b4552370eabcd4b02e53144717c672cf33c5340493df80cb359e2f914e5fb1b64b9cc6ca3f53b9e4038bfbbfb8817
6
+ metadata.gz: fb07758d57b7e6a28cf6aa02f0a7c3bbe56e5c88cc82df65d861cfe2048056db17ef6aa176e287b70386ad305b33255c896610a21123ce40723fbe9754dfabee
7
+ data.tar.gz: 9db425f2c80b9b6bdf03c0dc2f5819e10f0a7e17bbca397d206bca53d704d58eddef1ed674be4978ea4a5c0080eaf7a0174c150d369c3c3f6b17e7e2d5c70b82
@@ -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 66
15
- #define YEPTRIS_VERSION_STRING "0.6.66"
14
+ #define YEPTRIS_VERSION_PATCH 67
15
+ #define YEPTRIS_VERSION_STRING "0.6.67"
16
16
 
17
17
  #ifdef __cplusplus
18
18
  extern "C" {
@@ -281,7 +281,10 @@ module Yeptris
281
281
 
282
282
  # the arena is UTF-8 by construction (validated at parse), so
283
283
  # forcing its encoding ONCE makes every slice UTF-8 for free —
284
- # no per-scalar force_encoding
284
+ # no per-scalar force_encoding. The record offsets are BYTES:
285
+ # slice with byteslice, never String#[] — on a UTF-8 String that
286
+ # counts characters and drifts after the first multibyte char
287
+ # (#1359)
285
288
  arena.force_encoding(Encoding::UTF_8)
286
289
  # (each_slice DESTRUCTURING measured SLOWER than plain indexing
287
290
  # here: it allocates a 12-slot Array per record. Index away.)
@@ -296,18 +299,18 @@ module Yeptris
296
299
  # not the text
297
300
  tag_id = flat[i + 3]
298
301
  v = Materializer.scan_by_tag(
299
- arena[flat[i + 8], flat[i + 9]], tag_id, (flat[i + 2] & EF_IMPLICIT) != 0
302
+ arena.byteslice(flat[i + 8], flat[i + 9]), tag_id, (flat[i + 2] & EF_IMPLICIT) != 0
300
303
  )
301
304
  # !ruby/symbol (#258): the tag TEXT (not the resolver tag_id)
302
305
  # decides — psych deserializes the scalar to a Symbol, the
303
306
  # same arm the DOM walk carries (Node#scalar_to_ruby)
304
307
  tl = flat[i + 13]
305
308
  if tl != 0
306
- t = arena[flat[i + 12], tl]
309
+ t = arena.byteslice(flat[i + 12], tl)
307
310
  v = v.to_sym if t == "!ruby/symbol" || t == "tag:ruby.yaml.org,2002:symbol"
308
311
  end
309
312
  l = flat[i + 11]
310
- anchors[arena[flat[i + 10], l]] = v if l != 0
313
+ anchors[arena.byteslice(flat[i + 10], l)] = v if l != 0
311
314
  # place(): the scalar fast path inlined — the overwhelming
312
315
  # majority of events land here
313
316
  if stack.empty?
@@ -333,7 +336,7 @@ module Yeptris
333
336
  when MAPPING_START
334
337
  h = {}
335
338
  l = flat[i + 11]
336
- anchors[arena[flat[i + 10], l]] = h if l != 0
339
+ anchors[arena.byteslice(flat[i + 10], l)] = h if l != 0
337
340
  merge_target.push(place(docs, stack, pending_key, pending_key_merge, h))
338
341
  stack.push(h)
339
342
  pending_key.push(nil)
@@ -341,13 +344,13 @@ module Yeptris
341
344
  when SEQUENCE_START
342
345
  a = []
343
346
  l = flat[i + 11]
344
- anchors[arena[flat[i + 10], l]] = a if l != 0
347
+ anchors[arena.byteslice(flat[i + 10], l)] = a if l != 0
345
348
  merge_target.push(place(docs, stack, pending_key, pending_key_merge, a))
346
349
  stack.push(a)
347
350
  pending_key.push(nil)
348
351
  pending_key_merge.push(nil)
349
352
  when ALIAS
350
- name = arena[flat[i + 8], flat[i + 9]]
353
+ name = arena.byteslice(flat[i + 8], flat[i + 9])
351
354
  # the engine DOM parse's spelling, with the record's own
352
355
  # location — the ONE undefined-anchor phrase every face
353
356
  # raises (the facade's AnchorNotDefined lift matches on it)
data/lib/yeptris/psych.rb CHANGED
@@ -617,7 +617,8 @@ module Yeptris
617
617
  # the permitted set. Records are 14 fields, type first
618
618
  # (Materializer::FIELDS; the #179 layout puts end_line/end_col
619
619
  # at 6/7, the value at 8/9, the anchor at 10/11 and the tag
620
- # text at 12/13 — the walk() reads are the SSOT).
620
+ # text at 12/13 — the walk() reads are the SSOT). Offsets are
621
+ # bytes: byteslice, whatever the arena's encoding (#1359).
621
622
  def check_records(flat, arena, permitted, aliases_enabled)
622
623
  # The timestamp gate needs the RESOLVED class only when the
623
624
  # permitted set cannot absorb both answers (the facade default
@@ -633,7 +634,7 @@ module Yeptris
633
634
  else
634
635
  l = flat[i + 13]
635
636
  if l != 0
636
- tag = arena[flat[i + 12], l]
637
+ tag = arena.byteslice(flat[i + 12], l)
637
638
  # the bare non-specific tag (`! ''` — the nil-key form,
638
639
  # #300): the DOM face normalized it away (node.tag nil),
639
640
  # the record keeps it verbatim — it names no class and is
@@ -666,7 +667,7 @@ module Yeptris
666
667
  # resolves to String there and psych likewise yields a
667
668
  # String (no gate — plain data).
668
669
  if gate_ts && type == m::SCALAR && flat[i + 3] == m::TAG_TIMESTAMP
669
- resolved = m.parse_timestamp(arena[flat[i + 8], flat[i + 9]])
670
+ resolved = m.parse_timestamp(arena.byteslice(flat[i + 8], flat[i + 9]))
670
671
  klass = resolved.class
671
672
  if (klass == ::Date || klass == ::Time) && !permitted.include?(klass)
672
673
  raise DisallowedClass, klass.name
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.66.0".freeze
6
+ VERSION = "0.6.67.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
data/libyeptris.so CHANGED
Binary file
@@ -3,7 +3,7 @@
3
3
  cmake_minimum_required(VERSION 3.20)
4
4
 
5
5
  project(yeptris
6
- VERSION 0.6.66
6
+ VERSION 0.6.67
7
7
  DESCRIPTION "Ultra-fast YAML 1.2 parser, emitter and streamer in C"
8
8
  LANGUAGES C CXX
9
9
  )
@@ -119,7 +119,14 @@ typedef struct {
119
119
  uint32_t tag_off;
120
120
  uint32_t tag_len;
121
121
  } YeptrisEventRecord; /* 44B — the bindings mirror this layout in the
122
- same lockstep window (the 0.6.9 law) */
122
+ same lockstep window (the 0.6.9 law). The
123
+ *`*_off` / `*_len` pairs are BYTE offsets+lengths into
124
+ the arena (UTF-8 bytes, no trailing NUL): hosts
125
+ slice BYTES (ruby: byteslice — a char-indexed
126
+ String#[] turns a 22-byte "…ré…" span into 22
127
+ chars = 23 bytes and gains a character, the
128
+ yeptris#1362 relaton face); the C-side pin is
129
+ Events.RecordsArenaSpansAreByteOffsetsMultibyte */
123
130
 
124
131
  YEPTRIS_API YeptrisRecorder yeptris_recorder_new(void);
125
132
 
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.66.0
4
+ version: 0.6.67.0
5
5
  platform: s390x-linux
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-14 00:00:00.000000000 Z
11
+ date: 2026-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi