horologium 0.0.5 → 0.1.0
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/CHANGELOG.md +36 -0
- data/README.md +292 -219
- data/lib/horologium/configuration.rb +28 -53
- data/lib/horologium/data/barycentric_model.rb +15 -29
- data/lib/horologium/data/eop.rb +11 -36
- data/lib/horologium/data/leap_seconds.rb +3 -14
- data/lib/horologium/duration.rb +22 -127
- data/lib/horologium/epochs.rb +3 -16
- data/lib/horologium/error.rb +22 -43
- data/lib/horologium/instant.rb +43 -193
- data/lib/horologium/interval.rb +8 -51
- data/lib/horologium/numeric/exact.rb +4 -13
- data/lib/horologium/numeric/precision.rb +9 -53
- data/lib/horologium/numeric/two_part_float.rb +28 -123
- data/lib/horologium/precise_value.rb +3 -10
- data/lib/horologium/representations/civil.rb +105 -109
- data/lib/horologium/representations/civil_time.rb +5 -40
- data/lib/horologium/representations/iso8601.rb +54 -92
- data/lib/horologium/representations/julian_date.rb +11 -76
- data/lib/horologium/representations/modified_julian_date.rb +11 -34
- data/lib/horologium/scale_reading.rb +9 -30
- data/lib/horologium/scales/base.rb +10 -50
- data/lib/horologium/scales/gps.rb +4 -24
- data/lib/horologium/scales/tai.rb +1 -8
- data/lib/horologium/scales/tcb.rb +21 -49
- data/lib/horologium/scales/tcg.rb +18 -38
- data/lib/horologium/scales/tdb.rb +2 -15
- data/lib/horologium/scales/tt.rb +5 -11
- data/lib/horologium/scales/ut1.rb +19 -75
- data/lib/horologium/scales/utc.rb +32 -94
- data/lib/horologium/version.rb +1 -1
- data/sig/horologium/instant.rbs +1 -1
- data/sig/horologium/numeric/two_part_float.rbs +0 -10
- data/sig/horologium/representations/civil.rbs +10 -2
- data/sig/horologium/representations/iso8601.rbs +6 -2
- data/sig/horologium/representations/julian_date.rbs +2 -2
- data/sig/horologium/representations/modified_julian_date.rbs +1 -1
- data/sig/horologium/scale_reading.rbs +1 -1
- metadata +9 -3
- data/Rakefile +0 -42
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2a19e4b97b786cabb64b438057f828f1eb17266cb23125fde8a93683a47310a2
|
|
4
|
+
data.tar.gz: d58ea6055ea4f9b85fb91c95d8d2086e8024a15ac11339ca5149f4e33d99c3ab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 646319ae7ee1006a80ada4f11f6895330fa2ef8353da957a1c0bf22e9bb8b3e05721520d1b3f6f8300704eddf672dc7914315ed2d3ad86da328b42e401e02d73
|
|
7
|
+
data.tar.gz: 9d4f99636d816473153ca2acbafcdabea85f3cfdf6f26d652988578813d91313658108b0bc624534072ceddadb8ed2a62a45f16c940d709dab5a5708f8ebc6a4
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,41 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.0 - 2026-09-13
|
|
4
|
+
|
|
5
|
+
### Breaking changes
|
|
6
|
+
|
|
7
|
+
- An ISO 8601 zone offset moves the clock face, where it used to take a count
|
|
8
|
+
of SI seconds off the Julian Date. `2017-01-01T00:59:60+01:00` is the leap
|
|
9
|
+
second at the end of 2016, read by a clock an hour ahead of UTC, and
|
|
10
|
+
`2016-12-31T23:59:60+01:00` is refused, because 22:59:60 is not a time
|
|
11
|
+
- A representation refuses an output type it does not have.
|
|
12
|
+
`as(:iso8601, as: :float)` answered with a String and ignored the type it
|
|
13
|
+
was asked for, where a Julian Date and a civil time have always refused one
|
|
14
|
+
they cannot produce. Leaving `as:` out asks for the type the representation
|
|
15
|
+
is usually read in, which is what every caller was already getting
|
|
16
|
+
- Remove `Numeric::TwoPartFloat.two_sum`, `.two_diff`, `.fast_two_sum`,
|
|
17
|
+
`.two_product` and `.split`. Each returned a value and its rounding error as
|
|
18
|
+
a pair, and nothing called them: the arithmetic works the value out itself
|
|
19
|
+
and asks only for the error. The `_error` halves they wrapped are all still
|
|
20
|
+
there
|
|
21
|
+
|
|
22
|
+
### Fixes
|
|
23
|
+
|
|
24
|
+
- Stop writing warnings to a caller's stderr, which 0.0.5 set out to do and
|
|
25
|
+
did not finish. The six that were left came from `iers` reading its Modified
|
|
26
|
+
Julian Date through `Kernel#Float`, which announces a magnitude out of Float
|
|
27
|
+
range. The dependency asks for iers 0.3.1 now, where the size is measured
|
|
28
|
+
before the conversion
|
|
29
|
+
- Say what `ut1_horizon` guards. The published series ends with about a year
|
|
30
|
+
of prediction, so a reading of today is already `:extrapolated`, and
|
|
31
|
+
`:raise` refuses a date past the end of the series rather than every
|
|
32
|
+
extrapolated value. The documentation promised the second
|
|
33
|
+
- Write the lower bound of a UTC reading as 1961, where UTC starts.
|
|
34
|
+
`Instant#to` gave it as 1972, which is where whole leap seconds start, and
|
|
35
|
+
the bound itself has always been the earlier one
|
|
36
|
+
|
|
37
|
+
**Full Changelog**: https://github.com/rhannequin/horologium/compare/v0.0.5...v0.1.0
|
|
38
|
+
|
|
3
39
|
## 0.0.5 - 2026-09-08
|
|
4
40
|
|
|
5
41
|
All eight scales are in, so an instant reads in any of them, and the domain
|