teptris 0.3.9.1-aarch64-linux → 0.3.10.1-aarch64-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: 350adf6b8f1a287261245d90acc88b334778fb3d121ce947840cbef7cb8fdace
4
- data.tar.gz: c6f9bab6340dd814ef85c100b74414c37fb9f16f719b804f2157806d5224fa58
3
+ metadata.gz: da812c6010055607d6e99407e425e033e8da2343095e9b31900443361d28bbae
4
+ data.tar.gz: 6104b851721bd4e1d3e6b70ace59e71e92b9a84e5d82b5ed57c71fcc2b4cab5c
5
5
  SHA512:
6
- metadata.gz: 0e23b5177c930c34c3c7dc85df501fc9ab7cf729c2a7bce15e89670cd11a46543e1d2b887f4dcd3ef7d0e0a6c8f7f106670e6a559e95eb307bc334663c37700e
7
- data.tar.gz: 7edada683354d8a7220b62a0f1b6a723963aec1250c9d1de64557cac73665af2cf0b2bba4d17e6e695d3617e6af8f1404582044eed25da98f25656d8ae4d91cf
6
+ metadata.gz: e38fdafe4dccb587ee9e22c6c21fe80a6eab365060f6d1467e4d5da44b74fd5b16162b2243cc4b16b166986bfefe29eb0677b0e4fed309fd9a78ea3c3495944d
7
+ data.tar.gz: 70c00185370383819c979dc79ab35d03b292594bd2383f8f813ed30e1ecbfc6f031e3db23e11552f7fd715d8bab84c2dfa0f0bdb61bc254e688f02321a4038b1
@@ -1,4 +1,4 @@
1
- # libteptris 0.3.9 — vendored source
1
+ # libteptris 0.3.10 — 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.9"
7
+ #define TEPTRIS_VERSION_STRING "0.3.10"
8
8
 
9
9
  #endif /* TEPTRIS_VERSION_H */
@@ -111,16 +111,28 @@ void teptris_writer_free(teptris_writer *w)
111
111
  static void w_take_key(teptris_writer *w, const char *k, size_t klen)
112
112
  {
113
113
  free(w->key);
114
- w->key = NULL;
115
- w->key_len = 0;
116
114
  if (klen > 0) {
117
115
  w->key = malloc(klen);
118
116
  if (w->key == NULL) {
117
+ w->key = NULL;
118
+ w->key_len = 0;
119
119
  w->st = TEPTRIS_ERR_ALLOC;
120
120
  return;
121
121
  }
122
122
  memcpy(w->key, k, klen);
123
123
  w->key_len = klen;
124
+ } else {
125
+ /* an empty key stays PENDING: NULL means "no key", and the
126
+ * keyed-prefix checks treat NULL as absent. The parse side
127
+ * accepts '' = 1, so the writer must emit it ('' via emit_key) */
128
+ w->key = malloc(1);
129
+ if (w->key == NULL) {
130
+ w->key_len = 0;
131
+ w->st = TEPTRIS_ERR_ALLOC;
132
+ return;
133
+ }
134
+ w->key[0] = '\0';
135
+ w->key_len = 0;
124
136
  }
125
137
  }
126
138
 
@@ -392,12 +404,6 @@ teptris_status teptris_writer_feed(teptris_writer *w, const uint8_t *ops,
392
404
  emit_dt(&w->out, &dt, (teptris_kind)kb);
393
405
  w_end_line(w);
394
406
  break;
395
- if (w->st != TEPTRIS_OK) {
396
- break;
397
- }
398
- emit_dt(&w->out, &dt, (teptris_kind)kb);
399
- w_end_line(w);
400
- break;
401
407
  }
402
408
  case W_BEGIN_TABLE: {
403
409
  wframe *t = w->top;
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Teptris
4
- VERSION = "0.3.9.1"
4
+ VERSION = "0.3.10.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.9.1
4
+ version: 0.3.10.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - teptris contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-25 00:00:00.000000000 Z
11
+ date: 2026-10-30 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.