teptris 0.2.49 → 0.2.50
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/teptris_ext/materialize.c +5 -0
- data/lib/teptris/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e303ec6cf19d0ee0f70a38a0f4c8e298abf8431d635da36d8ac141e31701953
|
|
4
|
+
data.tar.gz: a8675784dffca7fe972a3996048f0aacd4189588737f8b16505e2b5fdb2a0915
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2ee1127280c552996907eefaa62003100732955fd9fc6f094ee19b2fc41e81f985b7d10d047a20d8996eaffd35134d74e82cff436a333d734f229f2b14d478e2
|
|
7
|
+
data.tar.gz: fb4204ae1df4487c6a54355bc2f8bd848731d18208c8a6a1d7c8a6ee6c44699a590882eb1c12151c25ea7ac39abd56f53cd5e065887717397e8af52071607b32
|
|
@@ -178,7 +178,12 @@ static VALUE obj_from_node(const teptris_node *n, unsigned flags,
|
|
|
178
178
|
switch (teptris_node_kind(n)) {
|
|
179
179
|
case TEPTRIS_TABLE: {
|
|
180
180
|
size_t len = teptris_node_table_length(n);
|
|
181
|
+
#if RUBY_API_VERSION_MAJOR > 3 || \
|
|
182
|
+
(RUBY_API_VERSION_MAJOR == 3 && RUBY_API_VERSION_MINOR >= 2)
|
|
183
|
+
VALUE h = rb_hash_new_capa((long)len);
|
|
184
|
+
#else
|
|
181
185
|
VALUE h = rb_hash_new();
|
|
186
|
+
#endif
|
|
182
187
|
for (size_t i = 0; i < len; i++) {
|
|
183
188
|
teptris_view key;
|
|
184
189
|
const teptris_node *v = teptris_node_table_at(n, i, &key);
|
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.2.
|
|
4
|
+
version: 0.2.50
|
|
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-09-
|
|
11
|
+
date: 2026-09-29 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.
|