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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31e0ea9f4896e07430d20f4411903cad49ceb7bbde32bd156e3646376041c0d7
4
- data.tar.gz: c91451850421ca0b8cf3b59b5b318a8e8e9b73ff9b87acf546fa28b907665f82
3
+ metadata.gz: 7546cb5c3ebb595feafce0630fc925d58abba65b66bbd72f2f84e9a67128b7f1
4
+ data.tar.gz: 11a8bacf90d980fb3e278f95cf6090d9dc54da7dacaaed4e4c59f30bdbcc8b8e
5
5
  SHA512:
6
- metadata.gz: ed6bd3db29c977cb0d92e01551711e6b1285e3db54d4670893dc7716d54ce869ac5115faca62c7c6497eb656af1eecad71a6eedfcc8900eaf324ce2441ba0d01
7
- data.tar.gz: 2675aef510ec569141e29c202d5a353590bd52e9fb9aa41489c467c204a6e203b43274f7035acf18d1bafe37765282dbbd0301f4dbf8e94aef01bcc623cb0fd9
6
+ metadata.gz: 40bc69496e52eff6e8790e3c03ba3df3c6915daec5ea182d630cfe820bd5e52b83bde35b21240e1482460e8bc3176c75782374376a96ce7e7cd27d4c0aa62c6c
7
+ data.tar.gz: e3b19c05c5d47e648f6986092e8acca5fe5a3f95420287ab06b5c68dfefa8993b2996767323cf212e705b0cbe20062cfdf98fcfdd9120219075e9a01dab16d60
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 {|t| t.timestamp_value > last_defined.timestamp_value } +
327
- (last_year + 1).upto(GENERATE_UP_TO).flat_map {|y| rules.transitions(y) }
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)
@@ -3,5 +3,5 @@
3
3
 
4
4
  module TZInfo
5
5
  # The TZInfo version number.
6
- VERSION = '2.0.3'
6
+ VERSION = '2.0.4'
7
7
  end
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.3
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-11-08 00:00:00.000000000 Z
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.3
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.3
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