tzinfo 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec86298303c2574741a727440578c6e0b7f89be23f2c6d6e3ee01fccfeb1206e
4
- data.tar.gz: c0fddb69282a1d64a69c5c73419ec5971a0baf7cc0d6af904879e39393953aa0
3
+ metadata.gz: 28818edc06842caea3c6a7ee9fc63174498a3fd9f5d065324b3923ba20702ff6
4
+ data.tar.gz: 1691bcf9786a63c21777f22326f79d27fd2cd6a19dd6cfa269e00bcc58ca394c
5
5
  SHA512:
6
- metadata.gz: 24abd1a7d10d00dacf003d6d80211fa2f6bd46f90bf1068ed473d74a4cab3f2a44a46c3224a942f41850cbdaf303bbf59e02dba37b5bf0af600d60435f5d5242
7
- data.tar.gz: a4665320a7cf87ac113e50e6af2f93f5d4df9c6f40af1b3d35bbf8a2ee88aeb95fb98d7e04b6cb3c2fedc1e0bb94c13d185fd712cd2105ae527129ae2abbecac
6
+ metadata.gz: f070f1ae1e08386d00a0825a035d7b7b598b2c9d47cf822be81c5778bcaca47c5541d602cf676aea6d476b49500b13a667a013b80f6bcd69a5acd9691dbba38a
7
+ data.tar.gz: 2e263e61fa7178427178b6109a31e627b899b17d69c41ecfbb9978e98be7a520ba68b148cf903107ff244947b8b8e43b782daef70e103d2e1b81a416663771a7
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- <�U��#񑐋�p�D��P�����Kf��� ��_0e|��)��E��HC�p`t�XR��d���R�[x�����-�,5h۫��U�{u��wu���b���! d�`jX5?��>���T��)a��2��� _���.d~�^��/�t'z%��?�'eh�~�T{B�RĐY�'_$�0~����8'�����O6ŏ( yp� ������S`d{r���1�B���b�u�n��[�������$o��8��jt�#E
1
+ ��_���F6�P��N��H���F��� �Z�G��#sQhnѱ$�vC!���M*�Z"���R��NV���2x��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
- * Add a `TZInfo::Timezone#=~` method that performs a regex match on the time
14
+ * Added a `TZInfo::Timezone#=~` method that performs a regex match on the time
9
15
  zone identifier. #99.
10
- * Add a `TZInfo::Country#=~` method that performs a regex match on the country
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2005-2019 Philip Ross
1
+ Copyright (c) 2005-2020 Philip Ross
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of
4
4
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # TZInfo - Ruby Time Zone Library
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/tzinfo.svg)](https://badge.fury.io/rb/tzinfo) [![Travis CI Build Status](https://travis-ci.org/tzinfo/tzinfo.svg?branch=master)](https://travis-ci.org/tzinfo/tzinfo) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/btinuu4g8sdachj3/branch/master?svg=true)](https://ci.appveyor.com/project/philr/tzinfo/branch/master)
3
+ [![RubyGems](https://img.shields.io/gem/v/tzinfo)](https://rubygems.org/gems/tzinfo) [![Travis CI Build](https://img.shields.io/travis/tzinfo/tzinfo?logo=travis)](https://travis-ci.org/tzinfo/tzinfo) [![AppVeyor Build](https://img.shields.io/appveyor/build/philr/tzinfo?logo=appveyor)](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.
@@ -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.0. Add a refinement to either silence the warning, or supply the method if
9
+ # 3.2. Add a refinement to either silence the warning, or supply the method if
10
10
  # needed.
11
- old_verbose = $VERBOSE
12
- $VERBOSE = false
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
- using UntaintExt if TZInfo.const_defined?(:UntaintExt)
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
- using UntaintExt if TZInfo.const_defined?(:UntaintExt)
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
- using UntaintExt if TZInfo.const_defined?(:UntaintExt)
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
@@ -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.0.
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
  #
@@ -3,5 +3,5 @@
3
3
 
4
4
  module TZInfo
5
5
  # The TZInfo version number.
6
- VERSION = '2.0.1'
6
+ VERSION = '2.0.2'
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.1
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: 2019-12-24 00:00:00.000000000 Z
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