teptris 0.3.8.1 → 0.3.9.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6aab4a0ec303b2d9f7e8f297ee3f7b79e849918b899dc37b0211e9742f325020
|
|
4
|
+
data.tar.gz: 8acbfc253780d95ea885bfd7010a1a3af72cd03379a271f24e37f08c5f1ea1aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36570eaedd6c8bd1308b82782f42340608537b7aec6ad05cf587a1ab0b32d022a7ea5e7d6be557ec89552fe2b43625d29d28a36b4a2df7182daa32b4be99bc71
|
|
7
|
+
data.tar.gz: 4e830f00f488ccb9039bf842b90f09655f3ebf5824b2fbbf217b9243ce991748c2bfc9ebcb3cc48a34f1808106f693290a064e521cf4ede2771c92f3ba9536b8
|
|
@@ -216,7 +216,8 @@ static void w_sep_val(teptris_writer *w, wframe *f)
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/* emit "key = " in a section/inline-table context; arrays take bare
|
|
219
|
-
* values with separators
|
|
219
|
+
* values with separators; inline-table pairs take a ", " before every
|
|
220
|
+
* pair but the first */
|
|
220
221
|
static void w_keyed_prefix(teptris_writer *w)
|
|
221
222
|
{
|
|
222
223
|
wframe *f = w->top;
|
|
@@ -224,6 +225,9 @@ static void w_keyed_prefix(teptris_writer *w)
|
|
|
224
225
|
w_sep_val(w, f);
|
|
225
226
|
return;
|
|
226
227
|
}
|
|
228
|
+
if (f != NULL && f->kind == F_ITAB) {
|
|
229
|
+
w_sep_val(w, f);
|
|
230
|
+
}
|
|
227
231
|
if (w->key == NULL) {
|
|
228
232
|
w->st = TEPTRIS_ERR_ARG;
|
|
229
233
|
return;
|
|
@@ -466,6 +470,9 @@ teptris_status teptris_writer_feed(teptris_writer *w, const uint8_t *ops,
|
|
|
466
470
|
w->st = TEPTRIS_ERR_STATE;
|
|
467
471
|
break;
|
|
468
472
|
}
|
|
473
|
+
if (t != NULL && t->kind == F_ITAB) {
|
|
474
|
+
w_sep_val(w, t);
|
|
475
|
+
}
|
|
469
476
|
emit_key(&w->out, (teptris_view){w->key, w->key_len});
|
|
470
477
|
eb_put(&w->out, " = [", 4);
|
|
471
478
|
w_clear_key(w);
|
|
@@ -493,6 +500,9 @@ teptris_status teptris_writer_feed(teptris_writer *w, const uint8_t *ops,
|
|
|
493
500
|
w->st = TEPTRIS_ERR_STATE;
|
|
494
501
|
break;
|
|
495
502
|
}
|
|
503
|
+
if (t != NULL && t->kind == F_ITAB) {
|
|
504
|
+
w_sep_val(w, t);
|
|
505
|
+
}
|
|
496
506
|
emit_key(&w->out, (teptris_view){w->key, w->key_len});
|
|
497
507
|
eb_put(&w->out, " = ", 3);
|
|
498
508
|
w_clear_key(w);
|
data/lib/teptris/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: teptris
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- teptris contributors
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A native C extension over libteptris, a C99 TOML 1.1 parser/emitter.
|
|
14
14
|
API shape mirrors the tomlib gem.
|