moon_phase_tracker 1.3.2 → 2.0.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 +33 -0
- data/README.md +501 -98
- data/Rakefile +8 -8
- data/context7.json +4 -0
- data/examples/eight_phases_example.rb +100 -100
- data/examples/usage_example.rb +74 -74
- data/lib/moon_phase_tracker/client.rb +7 -5
- data/lib/moon_phase_tracker/lunar_calculator.rb +96 -0
- data/lib/moon_phase_tracker/phase/formatter.rb +4 -1
- data/lib/moon_phase_tracker/phase/parser.rb +7 -2
- data/lib/moon_phase_tracker/phase.rb +22 -4
- data/lib/moon_phase_tracker/phase_calculator/cycle_estimator.rb +1 -1
- data/lib/moon_phase_tracker/phase_calculator/phase_interpolator.rb +1 -1
- data/lib/moon_phase_tracker/tracker.rb +18 -0
- data/lib/moon_phase_tracker/version.rb +1 -1
- data/lib/moon_phase_tracker.rb +17 -0
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ff732cf61a629a58284391c9e0cc0148ec6b6a9ad4a4334a94a67070e38b6e5
|
|
4
|
+
data.tar.gz: e07d67d910ca2a10e7dce78d1e992dc5c936fa3a15241e4acdd18554858b6d41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94b9aa6bac39efa2bafc7a3c25fb5006cfc1ac290d942acc48fdd1739f6e304cd46cd60b79540ad3c58b9e1203ea37df623d6947d0f6fa8770bc1b01af3b777b
|
|
7
|
+
data.tar.gz: 6a59a51a12d2457b889eb218094c178c4393bff1af296c26a235b4a1e03c6e24808d8bd2df77a6dc13f749f80ef560f73ee0196e2eb4250927b40452653824bd
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
Will ship as 2.0.0.
|
|
11
|
+
|
|
12
|
+
### Breaking
|
|
13
|
+
|
|
14
|
+
- **Ruby 4.0 required**
|
|
15
|
+
- `required_ruby_version` is now `>= 4.0`, dropping Ruby 3.2, 3.3 and 3.4
|
|
16
|
+
- CI runs Ruby 4.0.10 only, in both `main.yml` and `release.yml`
|
|
17
|
+
- `Gemfile.lock` bumped minitest, prism and unicode-emoji so it installs on Ruby 4
|
|
18
|
+
|
|
19
|
+
### Security
|
|
20
|
+
|
|
21
|
+
- **Server text no longer reaches `APIError` messages**
|
|
22
|
+
- `APIError` messages now carry only gem-computed values, such as the HTTP
|
|
23
|
+
status code
|
|
24
|
+
- Removed the server's `error` field, the HTTP reason phrase, and
|
|
25
|
+
`JSON::ParserError#message`, which echoes the response body
|
|
26
|
+
- `cause: nil` on the malformed-response path, because the original exception
|
|
27
|
+
still held the remote text
|
|
28
|
+
- `Net::HTTPBadResponse` now maps to `APIError`. It used to reach callers raw,
|
|
29
|
+
with the remote status line in its message
|
|
30
|
+
- `NetworkError` still interpolates the underlying error message. That text is
|
|
31
|
+
the gem's own hostname and OS resolver output, not server content
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- **Error classes were unreachable**
|
|
36
|
+
- In `Client#make_request`, `Net::TimeoutError` does not exist in the locked
|
|
37
|
+
net-http 0.6.0, so evaluating that rescue clause raised `NameError` and
|
|
38
|
+
masked the real error
|
|
39
|
+
- Every `APIError` and `NetworkError` the gem documented was unreachable on
|
|
40
|
+
that path
|
|
41
|
+
- Added `spec/moon_phase_tracker/client_spec.rb` covering the error paths
|
|
42
|
+
|
|
10
43
|
## [1.3.2] - 2025-08-04
|
|
11
44
|
|
|
12
45
|
### Changed
|