teptris 0.2.49-x86_64-linux → 0.2.50-x86_64-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: c41c4cacb10dfbd26322dee5c442e6c84149e90869b455215337746e1e820971
4
- data.tar.gz: 230c496bc33e026adb17d1fce69aa049726fec85f7be1c5cdd7fbe9f661b2140
3
+ metadata.gz: 5655fff10fe93b3f1adb8bba969aca9c7ce45ac62e7e7d5f21bf9a7a1246788e
4
+ data.tar.gz: 02a6be01901c1833021ddb0ea4e4bb741b6e350b112a81513780f67b94a6884b
5
5
  SHA512:
6
- metadata.gz: 2797f8d1698f91186c710276d18e35e257f04c1cf57277adc05d218be1c8e4d60eba5c009d9f5dc99149c3fc04f07f30b71917b432c52755481fdc6d9469531c
7
- data.tar.gz: aee8069ba66bc0642e1a0510de6c3255dd733cc4f4496d9382aa832a58f00fc038e076faef1278ac20a9f410d32713512ad3bcf55d4cfd3b29dbad3765910862
6
+ metadata.gz: 431f2f2bdea057fe005a569c8a82bac50eb17346523dac46a88180efb3309dc580721d8bee294df762d8b69796dbcae6c12043b25f2d3395b8999a5d6c674f83
7
+ data.tar.gz: b71b365a34feaa0d739471fcbf63179192df09a30ad3241d1231445152145dbf282388641022f3e5837a202060c9b401e5277575be5fc80f9c1a8c6e016a1942
@@ -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);
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module Teptris
2
- VERSION = "0.2.49"
2
+ VERSION = "0.2.50"
3
3
  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.2.49
4
+ version: 0.2.50
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - teptris contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-26 00:00:00.000000000 Z
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.