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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +292 -219
  4. data/lib/horologium/configuration.rb +28 -53
  5. data/lib/horologium/data/barycentric_model.rb +15 -29
  6. data/lib/horologium/data/eop.rb +11 -36
  7. data/lib/horologium/data/leap_seconds.rb +3 -14
  8. data/lib/horologium/duration.rb +22 -127
  9. data/lib/horologium/epochs.rb +3 -16
  10. data/lib/horologium/error.rb +22 -43
  11. data/lib/horologium/instant.rb +43 -193
  12. data/lib/horologium/interval.rb +8 -51
  13. data/lib/horologium/numeric/exact.rb +4 -13
  14. data/lib/horologium/numeric/precision.rb +9 -53
  15. data/lib/horologium/numeric/two_part_float.rb +28 -123
  16. data/lib/horologium/precise_value.rb +3 -10
  17. data/lib/horologium/representations/civil.rb +105 -109
  18. data/lib/horologium/representations/civil_time.rb +5 -40
  19. data/lib/horologium/representations/iso8601.rb +54 -92
  20. data/lib/horologium/representations/julian_date.rb +11 -76
  21. data/lib/horologium/representations/modified_julian_date.rb +11 -34
  22. data/lib/horologium/scale_reading.rb +9 -30
  23. data/lib/horologium/scales/base.rb +10 -50
  24. data/lib/horologium/scales/gps.rb +4 -24
  25. data/lib/horologium/scales/tai.rb +1 -8
  26. data/lib/horologium/scales/tcb.rb +21 -49
  27. data/lib/horologium/scales/tcg.rb +18 -38
  28. data/lib/horologium/scales/tdb.rb +2 -15
  29. data/lib/horologium/scales/tt.rb +5 -11
  30. data/lib/horologium/scales/ut1.rb +19 -75
  31. data/lib/horologium/scales/utc.rb +32 -94
  32. data/lib/horologium/version.rb +1 -1
  33. data/sig/horologium/instant.rbs +1 -1
  34. data/sig/horologium/numeric/two_part_float.rbs +0 -10
  35. data/sig/horologium/representations/civil.rbs +10 -2
  36. data/sig/horologium/representations/iso8601.rbs +6 -2
  37. data/sig/horologium/representations/julian_date.rbs +2 -2
  38. data/sig/horologium/representations/modified_julian_date.rbs +1 -1
  39. data/sig/horologium/scale_reading.rbs +1 -1
  40. metadata +9 -3
  41. data/Rakefile +0 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36835b6c549b41c5f598c2ed04052c7ef7ee21c6cc9265f21fadedce465ecfe5
4
- data.tar.gz: 012c847982be87b762829bc0634a9c363847da2e57f7c6c12e3a5496202da517
3
+ metadata.gz: 2a19e4b97b786cabb64b438057f828f1eb17266cb23125fde8a93683a47310a2
4
+ data.tar.gz: d58ea6055ea4f9b85fb91c95d8d2086e8024a15ac11339ca5149f4e33d99c3ab
5
5
  SHA512:
6
- metadata.gz: be4aa86367a43374d70fced595fca0726abda0f6ee55ef781bb94bb2caef9b3203a537ba2c5282b89cca260f682fe7742cc55f14bdce231703b4146f904f2d63
7
- data.tar.gz: 549ae0c37882e78f29f566634b46b57e529e3aab38f9f11aa1d0b1a00b003716340c69baad274217380c93b2933847435d0c5a07a8b6f239219c973fe956ce1e
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