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: 9405799997c71a6a203a7e99e2b7b5cc3b14ef4e5fc1107549a8be0a81eecc45
4
- data.tar.gz: 3b63416a7a12a234c4fa002e08e74baa8685dac138c05fa8692c2fcd1213cc88
3
+ metadata.gz: 6aab4a0ec303b2d9f7e8f297ee3f7b79e849918b899dc37b0211e9742f325020
4
+ data.tar.gz: 8acbfc253780d95ea885bfd7010a1a3af72cd03379a271f24e37f08c5f1ea1aa
5
5
  SHA512:
6
- metadata.gz: 29a783e4396441be903921e6a59e68c1b94c43ebb5d93d4e0d6ec156ccf02be23286ad6e7501b0ca7eb199dcee61a47c303e5d8fbf508184650ccd5c9d12ab16
7
- data.tar.gz: d7b054ad6b5c58558d08701f483ec70c37904846e5ad7fe68268e2db30b4b199f2ecf284b9e9fb67b691a2b3f1f082887b4416a3174e152fd3bbe114ce6ee2a5
6
+ metadata.gz: 36570eaedd6c8bd1308b82782f42340608537b7aec6ad05cf587a1ab0b32d022a7ea5e7d6be557ec89552fe2b43625d29d28a36b4a2df7182daa32b4be99bc71
7
+ data.tar.gz: 4e830f00f488ccb9039bf842b90f09655f3ebf5824b2fbbf217b9243ce991748c2bfc9ebcb3cc48a34f1808106f693290a064e521cf4ede2771c92f3ba9536b8
@@ -1,4 +1,4 @@
1
- # libteptris 0.3.8 — vendored source
1
+ # libteptris 0.3.9 — vendored source
2
2
 
3
3
  This directory carries the COMPLETE C source of the engine this
4
4
  gem's extension was built from (the packaging doctrine: compiled
@@ -4,6 +4,6 @@
4
4
  #define TEPTRIS_VERSION_MAJOR 0
5
5
  #define TEPTRIS_VERSION_MINOR 3
6
6
  #define TEPTRIS_VERSION_PATCH 0
7
- #define TEPTRIS_VERSION_STRING "0.3.8"
7
+ #define TEPTRIS_VERSION_STRING "0.3.9"
8
8
 
9
9
  #endif /* TEPTRIS_VERSION_H */
@@ -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);
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Teptris
4
- VERSION = "0.3.8.1"
4
+ VERSION = "0.3.9.1"
5
5
  end
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.8.1
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-24 00:00:00.000000000 Z
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.