edtf 4.1.1 → 5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87ef9f6922e264e14687d0edf0de96e61460860fb331312c491565094f924534
4
- data.tar.gz: c5f1f160789d7e8eda3d89621810b6bead9ab15862d6b589c4c5e4b70b356981
3
+ metadata.gz: ec5b3085d88e76c909d668e9757079852f574b17c1c415d8615460fe3c34989a
4
+ data.tar.gz: 52c85db4caa99ffecf2f0cccf7e945dc86bcfef1d0292c0632e8dfa9cd5a1a80
5
5
  SHA512:
6
- metadata.gz: 37f23b7b2850cc65fa8d214b95fc786822eab235a1f08a078cd4551821296008130ce5f85508ae8e8ae362c1aecf9cd440c743c9699e46820fc21d468c5e8123
7
- data.tar.gz: 2d91920a2b06c623324ae798a666fbb83cdbec6bcb60fa2d5d06fe5bdc31d7265e38e08315e25dc8deb6b7e4b306e0e0d8b113ef47ad35a8972903664b5e9e96
6
+ metadata.gz: b990e62f30906799671ad115b4cdbc2acc9dcb86fa40dab30bb3b74c955f5539a84766df34d07e6419d237acce3b1000ce8785cf90890c06dd320b8b0d452519
7
+ data.tar.gz: f512dc9065650599eafa337e0f2731539636dc35e59c629d48a7e92c3b1dc85ee6ca621725976dc842be9a03ad05f3b130fbe79c7d8818e140fc39ade21295b0
data/CHANGELOG.md ADDED
@@ -0,0 +1,40 @@
1
+ Changelog
2
+ =========
3
+
4
+ 5.0.0 (2026-11-15)
5
+ ------------------
6
+ EDTF-Ruby 5.0 switches from the EDTF draft syntax to ISO 8601-2;
7
+ see [UPGRADING.md](UPGRADING.md) for the API changes and migration.
8
+
9
+ * Reads all of ISO 8601-2 levels 0–2; writes ISO 8601-2 only.
10
+ * Still reads the draft syntax (legacy syntax), with a grammar of its own;
11
+ `legacy: false` or `strict: true` turn it off.
12
+ * New frozen types, all periods with plain dates as bounds;
13
+ no core patches: `EDTF()` converts strings, parse results, dates and times.
14
+ * `EDTF::Parser` returns plain parse results and takes the options
15
+ `level:`, `extensions:`, `legacy:`, `strict:` and `max_year_digits:`.
16
+ * `19XX` and `196X` are read as centuries and decades
17
+ (`centuries: false` to turn off).
18
+ * Dates, seasons, decades and centuries in other calendars Ruby supports
19
+ (`calendar: :julian`, also a parse option); legacy `^julian` is kept.
20
+ * Seasons may be qualified by part (`2001?-21`) and have unspecified years
21
+ (`200X-21`); season intervals (`2001-21/2002-22`) are an extension,
22
+ off by default (`extensions: [:season_intervals]`).
23
+ * `year_zero: false` reads and writes years before 1 historically
24
+ (`-0001` is 1 BC, stored as year 0).
25
+ * Reversed intervals and years beyond 100 digits are rejected.
26
+ * ActiveSupport is no longer a dependency; EDTF-Ruby works with it.
27
+
28
+ 4.1.1
29
+ -----
30
+ * Spaces in sets (`[1864 ..]`) are reported as legacy syntax.
31
+
32
+ 4.1.0
33
+ -----
34
+ A bridge release to prepare for 5.0.
35
+
36
+ * Deprecation warnings for legacy syntax (enable `Warning[:deprecated]`).
37
+ * `EDTF.legacy?` finds strings in legacy syntax.
38
+ * `EDTF()` converts strings, Ruby dates and times to EDTF objects.
39
+ * `Date#with` returns a copy with a new precision or qualifiers.
40
+ * `Date.edtf` and `Date.edtf!` are deprecated; use `EDTF.parse`.