tzinfo 2.0.1 → 2.0.2
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 +1 -1
- data/CHANGES.md +14 -2
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/tzinfo.rb +3 -8
- data/lib/tzinfo/data_sources/ruby_data_source.rb +3 -1
- data/lib/tzinfo/data_sources/zoneinfo_data_source.rb +3 -1
- data/lib/tzinfo/data_sources/zoneinfo_reader.rb +3 -1
- data/lib/tzinfo/untaint_ext.rb +1 -1
- data/lib/tzinfo/version.rb +1 -1
- metadata +2 -2
- 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: 28818edc06842caea3c6a7ee9fc63174498a3fd9f5d065324b3923ba20702ff6
|
4
|
+
data.tar.gz: 1691bcf9786a63c21777f22326f79d27fd2cd6a19dd6cfa269e00bcc58ca394c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f070f1ae1e08386d00a0825a035d7b7b598b2c9d47cf822be81c5778bcaca47c5541d602cf676aea6d476b49500b13a667a013b80f6bcd69a5acd9691dbba38a
|
7
|
+
data.tar.gz: 2e263e61fa7178427178b6109a31e627b899b17d69c41ecfbb9978e98be7a520ba68b148cf903107ff244947b8b8e43b782daef70e103d2e1b81a416663771a7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
��_���F6�P��N��H���F����Z�G��#sQhnѱ$�vC!���M*�Z"���R��NV���2�x��1��[�3�.z)��*�Q%�俽��[�`t�1�@����ū�%X���1J��qr8*�d
|
data/CHANGES.md
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
# Changes
|
2
2
|
|
3
|
+
## Version 2.0.2 - 2-Apr-2020
|
4
|
+
|
5
|
+
* Fixed 'wrong number of arguments' errors when running on JRuby 9.0. #114.
|
6
|
+
* Fixed warnings when running on Ruby 2.8. #113.
|
7
|
+
|
8
|
+
|
3
9
|
## Version 2.0.1 - 24-Dec-2019
|
4
10
|
|
5
11
|
* Fixed "SecurityError: Insecure operation - require" exceptions when loading
|
6
12
|
data with recent Ruby releases in safe mode. #100.
|
7
13
|
* Fixed warnings when running on Ruby 2.7. #109.
|
8
|
-
*
|
14
|
+
* Added a `TZInfo::Timezone#=~` method that performs a regex match on the time
|
9
15
|
zone identifier. #99.
|
10
|
-
*
|
16
|
+
* Added a `TZInfo::Country#=~` method that performs a regex match on the country
|
11
17
|
code.
|
12
18
|
|
13
19
|
|
@@ -156,6 +162,12 @@
|
|
156
162
|
`TZInfo::Country.get('US').zone_identifiers` should be used instead.
|
157
163
|
|
158
164
|
|
165
|
+
## Version 1.2.7 - 2-Apr-2020
|
166
|
+
|
167
|
+
* Fixed 'wrong number of arguments' errors when running on JRuby 9.0. #114.
|
168
|
+
* Fixed warnings when running on Ruby 2.8. #112.
|
169
|
+
|
170
|
+
|
159
171
|
## Version 1.2.6 - 24-Dec-2019
|
160
172
|
|
161
173
|
* `Timezone#strftime('%s', time)` will now return the correct number of seconds
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# TZInfo - Ruby Time Zone Library
|
2
2
|
|
3
|
-
[](https://rubygems.org/gems/tzinfo) [](https://travis-ci.org/tzinfo/tzinfo) [](https://ci.appveyor.com/project/philr/tzinfo)
|
4
4
|
|
5
5
|
[TZInfo](https://tzinfo.github.io) is a Ruby library that provides access to
|
6
6
|
time zone data and allows times to be converted using time zone rules.
|
data/lib/tzinfo.rb
CHANGED
@@ -6,15 +6,10 @@ module TZInfo
|
|
6
6
|
end
|
7
7
|
|
8
8
|
# Object#untaint is a deprecated no-op in Ruby >= 2.7 and will be removed in
|
9
|
-
# 3.
|
9
|
+
# 3.2. Add a refinement to either silence the warning, or supply the method if
|
10
10
|
# needed.
|
11
|
-
|
12
|
-
|
13
|
-
begin
|
14
|
-
o = Object.new
|
15
|
-
require_relative 'tzinfo/untaint_ext' if [:taint, :untaint, :tainted?].none? {|m| o.respond_to?(m) } || !o.taint.tainted?
|
16
|
-
ensure
|
17
|
-
$VERBOSE = old_verbose
|
11
|
+
if !Object.new.respond_to?(:untaint) || RUBY_VERSION =~ /\A(\d+)\.(\d+)(?:\.|\z)/ && ($1 == '2' && $2.to_i >= 7 || $1.to_i >= 3)
|
12
|
+
require_relative 'tzinfo/untaint_ext'
|
18
13
|
end
|
19
14
|
|
20
15
|
require_relative 'tzinfo/version'
|
@@ -2,7 +2,9 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module TZInfo
|
5
|
-
|
5
|
+
# Use send as a workaround for erroneous 'wrong number of arguments' errors
|
6
|
+
# with JRuby 9.0.5.0 when calling methods with Java implementations. See #114.
|
7
|
+
send(:using, UntaintExt) if TZInfo.const_defined?(:UntaintExt)
|
6
8
|
|
7
9
|
module DataSources
|
8
10
|
# A {TZInfoDataNotFound} exception is raised if the tzinfo-data gem could
|
@@ -2,7 +2,9 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module TZInfo
|
5
|
-
|
5
|
+
# Use send as a workaround for erroneous 'wrong number of arguments' errors
|
6
|
+
# with JRuby 9.0.5.0 when calling methods with Java implementations. See #114.
|
7
|
+
send(:using, UntaintExt) if TZInfo.const_defined?(:UntaintExt)
|
6
8
|
|
7
9
|
module DataSources
|
8
10
|
# An {InvalidZoneinfoDirectory} exception is raised if {ZoneinfoDataSource}
|
@@ -2,7 +2,9 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module TZInfo
|
5
|
-
|
5
|
+
# Use send as a workaround for erroneous 'wrong number of arguments' errors
|
6
|
+
# with JRuby 9.0.5.0 when calling methods with Java implementations. See #114.
|
7
|
+
send(:using, UntaintExt) if TZInfo.const_defined?(:UntaintExt)
|
6
8
|
|
7
9
|
module DataSources
|
8
10
|
# An {InvalidZoneinfoFile} exception is raised if an attempt is made to load
|
data/lib/tzinfo/untaint_ext.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module TZInfo
|
5
|
-
# Object#untaint is deprecated in Ruby >= 2.7 and will be removed in 3.
|
5
|
+
# Object#untaint is deprecated in Ruby >= 2.7 and will be removed in 3.2.
|
6
6
|
# UntaintExt adds a refinement to make Object#untaint a no-op and avoid the
|
7
7
|
# warning.
|
8
8
|
#
|
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.2
|
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:
|
32
|
+
date: 2020-04-02 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: concurrent-ruby
|
metadata.gz.sig
CHANGED
Binary file
|