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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 665512b5337fd5ff10630cbfd5af2d52485fb3d3a68008c07c5bd0bdc921f774
4
- data.tar.gz: 03f5a03ce86e86621a1fed5f0dc5dc2c6a6274f32af6b9ac48e53124d6897ea5
3
+ metadata.gz: 71c630c73569f644a50a04114db4f358cf08c2711a1b92bf584e36f5f506c417
4
+ data.tar.gz: 3cf2c459a6a0cf3dc1dc1c32b2afaf5cbecf0ed9ecdc9777a921f8f45ac6d64e
5
5
  SHA512:
6
- metadata.gz: 0c82f7c9f58ecf79ebef8bd3576a623519af78608c40d2794733a6d669422f53099513e4a4631467d742b06e36b57047b198edf76f35fa9b2abb5f3ab06a7195
7
- data.tar.gz: 408a25341e72997f15fa5ff7cbe1428d767ee416347074452c691b8938ef38e2b3b515819b964c33e83be33d9c5ca617642f874d2117eaadfacf86b1400e188b
6
+ metadata.gz: 14d6540302e2ce77fdd787234ae9e64af792fa86cbd4d0d37d18d8c875c59f339c2869885b03fa67c51bab4b8f1d261f8860488cab5c7e29e2e8ed7287188020
7
+ data.tar.gz: c5b26705f69016eef8c91a1636e727ba06105d411cd48114aa0f136c36acaba8d0f704b8e6cf68b509cfea50ab854ea6202fd46b4e894681390b88d703ffadfb
@@ -1,4 +1,4 @@
1
- # libteptris 0.1.25 — vendored source
1
+ # libteptris 0.1.27 — 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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #define TEPTRIS_VERSION_MAJOR 0
5
5
  #define TEPTRIS_VERSION_MINOR 1
6
- #define TEPTRIS_VERSION_PATCH 24
7
- #define TEPTRIS_VERSION_STRING "0.1.24"
6
+ #define TEPTRIS_VERSION_PATCH 27
7
+ #define TEPTRIS_VERSION_STRING "0.1.27"
8
8
 
9
9
  #endif /* TEPTRIS_VERSION_H */
@@ -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
- l = snprintf(buf, sizeof buf, "%02u:%02u:%02u", d->hour, d->minute, d->second);
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
@@ -1,3 +1,3 @@
1
1
  module Teptris
2
- VERSION = "0.2.44"
2
+ VERSION = "0.2.46"
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.44
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-21 00:00:00.000000000 Z
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.