teptris 0.2.44-powerpc64le-linux → 0.2.46-powerpc64le-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/engine/README.md +1 -1
- data/ext/teptris_ext/engine/src/include/teptris/version.h +2 -2
- data/ext/teptris_ext/materialize.c +13 -1
- 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: 71c630c73569f644a50a04114db4f358cf08c2711a1b92bf584e36f5f506c417
|
|
4
|
+
data.tar.gz: 3cf2c459a6a0cf3dc1dc1c32b2afaf5cbecf0ed9ecdc9777a921f8f45ac6d64e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14d6540302e2ce77fdd787234ae9e64af792fa86cbd4d0d37d18d8c875c59f339c2869885b03fa67c51bab4b8f1d261f8860488cab5c7e29e2e8ed7287188020
|
|
7
|
+
data.tar.gz: c5b26705f69016eef8c91a1636e727ba06105d411cd48114aa0f136c36acaba8d0f704b8e6cf68b509cfea50ab854ea6202fd46b4e894681390b88d703ffadfb
|
|
@@ -51,7 +51,19 @@ static VALUE dt_string(const teptris_datetime *d, int kind) {
|
|
|
51
51
|
const char *head = (kind == TEPTRIS_TIME_LOCAL) ? "" : "";
|
|
52
52
|
(void)head;
|
|
53
53
|
if (kind == TEPTRIS_TIME_LOCAL) {
|
|
54
|
-
|
|
54
|
+
/* tomlib's contract keeps the fraction at millisecond
|
|
55
|
+
* precision (00:32:00.999); drop it entirely when zero.
|
|
56
|
+
* The engine preserves full nanoseconds — the binding
|
|
57
|
+
* truncates to the reference shape. */
|
|
58
|
+
if (d->nanosecond != 0) {
|
|
59
|
+
unsigned ms = (d->nanosecond + 500000u) / 1000000u;
|
|
60
|
+
if (ms == 1000u) ms = 999u; /* rounding overflow guard */
|
|
61
|
+
l = snprintf(buf, sizeof buf, "%02u:%02u:%02u.%03u",
|
|
62
|
+
d->hour, d->minute, d->second, ms);
|
|
63
|
+
} else {
|
|
64
|
+
l = snprintf(buf, sizeof buf, "%02u:%02u:%02u",
|
|
65
|
+
d->hour, d->minute, d->second);
|
|
66
|
+
}
|
|
55
67
|
} else {
|
|
56
68
|
l = snprintf(buf, sizeof buf, "%04d-%02u-%02uT%02u:%02u:%02u",
|
|
57
69
|
d->year, d->month, d->day, d->hour, d->minute, d->second);
|
|
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.46
|
|
5
5
|
platform: powerpc64le-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-23 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.
|