yeptris 0.6.66.0-riscv64-linux-gnu → 0.6.67.0-riscv64-linux-gnu
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 +4 -4
- data/ext/yeptris_native/version.h +2 -2
- data/lib/yeptris/materializer.rb +10 -7
- data/lib/yeptris/psych.rb +4 -3
- data/lib/yeptris.rb +1 -1
- data/libyeptris.so +0 -0
- data/vendor/libyeptris/CMakeLists.txt +1 -1
- data/vendor/libyeptris/src/include/yeptris/events.h +8 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5df008f8d104cb3493cc2f1a64bfca8ed96ca0b180625f908c23c148a3ae5267
|
|
4
|
+
data.tar.gz: 451e0b4d9ab38adc63294bfc397d5ba6d79d18dd58bbae93cf13e995edc30f32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 386a1b3430c17e11de386f391cd0c88396b9abf2495d4dd17d987c7592908bf34a59e83a440843d71d7a60a36080d1e6e0269c34f49d2ce5bedd3a15d94712b7
|
|
7
|
+
data.tar.gz: de4c3e8acc718e724255de0f332d1ebbe7cb1aa1fd9bcdd9c9f4e72a889ab7731ae7dd5c451de3050e5c85a8ec9716bf877ea16089a95e9a3711d3c403da5955
|
|
@@ -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
|
|
15
|
-
#define YEPTRIS_VERSION_STRING "0.6.
|
|
14
|
+
#define YEPTRIS_VERSION_PATCH 67
|
|
15
|
+
#define YEPTRIS_VERSION_STRING "0.6.67"
|
|
16
16
|
|
|
17
17
|
#ifdef __cplusplus
|
|
18
18
|
extern "C" {
|
data/lib/yeptris/materializer.rb
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
@@ -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
|
|