teptris 0.2.48-s390x-linux → 0.2.50-s390x-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 +4 -4
- data/ext/teptris_ext/materialize.c +14 -4
- data/lib/teptris/3.3/teptris_ext.so +0 -0
- data/lib/teptris/3.4/teptris_ext.so +0 -0
- data/lib/teptris/4.0/teptris_ext.so +0 -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: 94f24b42c71014254019ea79f4bab4deae5519f500d6f05d0d03236f73ad92e8
|
|
4
|
+
data.tar.gz: f027e1f88b44aa69a1e581ff215a8348390b167100c723055d29fc77c1707db1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5403b5f5e769a77d821171e6cd8dc6469ed92bea0ed2567343ad43ba13709962d2548ca72efe0d68eb418916118c74a8873bcc3de101cdf3ec238ef83d89022c
|
|
7
|
+
data.tar.gz: 83d920a4ddf61f99c7c2df476f66dda63c69dab4364488048bc54d1c12a5cc4331b0113df27f92f31c82ce403a7f209e8117e2a3489d3a78876de456c6f8d078
|
|
@@ -41,11 +41,16 @@ static VALUE time_from_dt(const teptris_datetime *d, bool has_offset) {
|
|
|
41
41
|
}
|
|
42
42
|
return rb_time_num_new(num, INT2FIX(d->offset_seconds));
|
|
43
43
|
}
|
|
44
|
+
/* whole seconds skip the Rational: Time.local normalizes
|
|
45
|
+
* Rational(s * 1e9, 1e9) to exactly s, so an Integer is the same
|
|
46
|
+
* result without the allocation or the rational path */
|
|
47
|
+
VALUE sec = (d->nanosecond != 0)
|
|
48
|
+
? rb_Rational(LL2NUM((int64_t)d->second * 1000000000 +
|
|
49
|
+
d->nanosecond),
|
|
50
|
+
LL2NUM(1000000000))
|
|
51
|
+
: INT2FIX(d->second);
|
|
44
52
|
VALUE args[6] = {INT2FIX(d->year), INT2FIX(d->month), INT2FIX(d->day),
|
|
45
|
-
INT2FIX(d->hour), INT2FIX(d->minute),
|
|
46
|
-
rb_Rational(LL2NUM((int64_t)d->second * 1000000000 +
|
|
47
|
-
d->nanosecond),
|
|
48
|
-
LL2NUM(1000000000))};
|
|
53
|
+
INT2FIX(d->hour), INT2FIX(d->minute), sec};
|
|
49
54
|
return rb_funcallv(rb_cTime, rb_intern("local"), 6, args);
|
|
50
55
|
}
|
|
51
56
|
|
|
@@ -173,7 +178,12 @@ static VALUE obj_from_node(const teptris_node *n, unsigned flags,
|
|
|
173
178
|
switch (teptris_node_kind(n)) {
|
|
174
179
|
case TEPTRIS_TABLE: {
|
|
175
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
|
|
176
185
|
VALUE h = rb_hash_new();
|
|
186
|
+
#endif
|
|
177
187
|
for (size_t i = 0; i < len; i++) {
|
|
178
188
|
teptris_view key;
|
|
179
189
|
const teptris_node *v = teptris_node_table_at(n, i, &key);
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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: s390x-linux
|
|
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.
|