tzinfo 2.0.3 → 2.0.4
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
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES.md +16 -0
- data/lib/tzinfo/data_sources/zoneinfo_reader.rb +5 -2
- data/lib/tzinfo/version.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7546cb5c3ebb595feafce0630fc925d58abba65b66bbd72f2f84e9a67128b7f1
|
|
4
|
+
data.tar.gz: 11a8bacf90d980fb3e278f95cf6090d9dc54da7dacaaed4e4c59f30bdbcc8b8e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40bc69496e52eff6e8790e3c03ba3df3c6915daec5ea182d630cfe820bd5e52b83bde35b21240e1482460e8bc3176c75782374376a96ce7e7cd27d4c0aa62c6c
|
|
7
|
+
data.tar.gz: e3b19c05c5d47e648f6986092e8acca5fe5a3f95420287ab06b5c68dfefa8993b2996767323cf212e705b0cbe20062cfdf98fcfdd9120219075e9a01dab16d60
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGES.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## Version 2.0.4 - 16-Dec-2020
|
|
4
|
+
|
|
5
|
+
* Fixed an incorrect InvalidTimezoneIdentifier exception raised when loading a
|
|
6
|
+
zoneinfo file that includes rules specifying an additional transition to the
|
|
7
|
+
final defined offset (for example, Africa/Casablanca in version 2018e of the
|
|
8
|
+
Time Zone Database). #123.
|
|
9
|
+
|
|
10
|
+
|
|
3
11
|
## Version 2.0.3 - 8-Nov-2020
|
|
4
12
|
|
|
5
13
|
* Added support for handling "slim" format zoneinfo files that are produced by
|
|
@@ -174,6 +182,14 @@
|
|
|
174
182
|
`TZInfo::Country.get('US').zone_identifiers` should be used instead.
|
|
175
183
|
|
|
176
184
|
|
|
185
|
+
## Version 1.2.9 - 16-Dec-2020
|
|
186
|
+
|
|
187
|
+
* Fixed an incorrect InvalidTimezoneIdentifier exception raised when loading a
|
|
188
|
+
zoneinfo file that includes rules specifying an additional transition to the
|
|
189
|
+
final defined offset (for example, Africa/Casablanca in version 2018e of the
|
|
190
|
+
Time Zone Database). #123.
|
|
191
|
+
|
|
192
|
+
|
|
177
193
|
## Version 1.2.8 - 8-Nov-2020
|
|
178
194
|
|
|
179
195
|
* Added support for handling "slim" format zoneinfo files that are produced by
|
|
@@ -323,8 +323,11 @@ module TZInfo
|
|
|
323
323
|
if last_year <= GENERATE_UP_TO
|
|
324
324
|
rules = replace_with_existing_offsets(offsets, rules)
|
|
325
325
|
|
|
326
|
-
generated = rules.transitions(last_year).find_all
|
|
327
|
-
|
|
326
|
+
generated = rules.transitions(last_year).find_all do |t|
|
|
327
|
+
t.timestamp_value > last_defined.timestamp_value && !offset_matches_rule?(last_defined.offset, t.offset)
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
generated += (last_year + 1).upto(GENERATE_UP_TO).flat_map {|y| rules.transitions(y) }
|
|
328
331
|
|
|
329
332
|
unless generated.empty?
|
|
330
333
|
transitions[-1] = validate_and_fix_last_defined_transition_offset(file, last_defined, generated[0].previous_offset)
|
data/lib/tzinfo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tzinfo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Philip Ross
|
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
|
29
29
|
J3Zn/kSTjTekiaspyGbczC3PUaeJNxr+yCvR4sk71Xmk/GaKKGOHedJ1uj/LAXrA
|
|
30
30
|
MR0mpl7b8zCg0PFC1J73uw==
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
|
-
date: 2020-
|
|
32
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: concurrent-ruby
|
|
@@ -114,9 +114,9 @@ licenses:
|
|
|
114
114
|
metadata:
|
|
115
115
|
bug_tracker_uri: https://github.com/tzinfo/tzinfo/issues
|
|
116
116
|
changelog_uri: https://github.com/tzinfo/tzinfo/blob/master/CHANGES.md
|
|
117
|
-
documentation_uri: https://rubydoc.info/gems/tzinfo/2.0.
|
|
117
|
+
documentation_uri: https://rubydoc.info/gems/tzinfo/2.0.4
|
|
118
118
|
homepage_uri: https://tzinfo.github.io
|
|
119
|
-
source_code_uri: https://github.com/tzinfo/tzinfo/tree/v2.0.
|
|
119
|
+
source_code_uri: https://github.com/tzinfo/tzinfo/tree/v2.0.4
|
|
120
120
|
post_install_message:
|
|
121
121
|
rdoc_options:
|
|
122
122
|
- "--title"
|
metadata.gz.sig
CHANGED
|
Binary file
|