tzinfo 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of tzinfo might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be3c32bd74920808d67de39efaf3a73c6e8906d9
4
- data.tar.gz: f553215128b1b18c614252434e45d9d4e1c2dc53
3
+ metadata.gz: 22c796619ab55ca7900b6a7e0d8425d60ed8fad9
4
+ data.tar.gz: f927925f60e7df68cd3564d372d4c5265692b699
5
5
  SHA512:
6
- metadata.gz: af62bf6235210846b42517a1151a20e2e5c376005c3aa9b90515ed97c729d39e0b9fd2fd743708acfc6bb9fae55bf68a69c7408168f942d4b256feed02016d0a
7
- data.tar.gz: b8073737407948dc494a2d9a4215044ffeae2b7ec91e9047e6fdf0b328af021e371f4e21f51d5dc798c232c80d23f2b11ee9bc9cc5d6a3c34cd806c56933c5ba
6
+ metadata.gz: 91388068fe7de3fbc4914581ecd0dd1f33fb3c823c4c935a1da11dc9f6fb8dbccd3efed7c9e9d6052cf4414e24c42656cd7685d0899b18e040be1980fdb771c3
7
+ data.tar.gz: e7fe2fd2dafb218bf3cb2020359853f4571c0b99abd0ff11880e6102cb010d9dda847408dd4c26b571aa3109a565b8fec9fcfb2e6dc405a17992579c81892ec7
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ Version 1.2.4 - 26-Oct-2017
2
+ ---------------------------
3
+
4
+ * Ignore the leapseconds file that is included in zoneinfo directories installed
5
+ with version 2017c and later of the Time Zone Database.
6
+
7
+
1
8
  Version 1.2.3 - 25-Mar-2017
2
9
  ---------------------------
3
10
 
@@ -346,12 +346,13 @@ module TZInfo
346
346
 
347
347
  # Ignoring particular files:
348
348
  # +VERSION is included on Mac OS X.
349
- # localtime current local timezone (may be a link).
349
+ # leapseconds is a list of leap seconds.
350
+ # localtime is the current local timezone (may be a link).
350
351
  # posix, posixrules and right are directories containing other versions of the zoneinfo files.
351
352
  # src is a directory containing the tzdata source included on Solaris.
352
353
  # timeconfig is a symlink included on Slackware.
353
354
 
354
- enum_timezones(nil, ['+VERSION', 'localtime', 'posix', 'posixrules', 'right', 'src', 'timeconfig']) do |identifier|
355
+ enum_timezones(nil, ['+VERSION', 'leapseconds', 'localtime', 'posix', 'posixrules', 'right', 'src', 'timeconfig']) do |identifier|
355
356
  index << identifier
356
357
  end
357
358
 
@@ -369,9 +369,11 @@ class TCZoneinfoDataSource < Minitest::Test
369
369
  end
370
370
  end
371
371
 
372
- def test_load_timezone_info_ignored_file
373
- assert_raises(InvalidTimezoneIdentifier) do
374
- @data_source.load_timezone_info('localtime')
372
+ %w(leapseconds localtime).each do |file_name|
373
+ define_method("test_load_timezone_info_ignored_#{file_name}_file") do
374
+ assert_raises(InvalidTimezoneIdentifier) do
375
+ @data_source.load_timezone_info(file_name)
376
+ end
375
377
  end
376
378
  end
377
379
 
@@ -692,11 +694,11 @@ class TCZoneinfoDataSource < Minitest::Test
692
694
 
693
695
  entries = entries.collect {|file| file[directory.length + File::SEPARATOR.length, file.length - directory.length - File::SEPARATOR.length]}
694
696
 
695
- # Exclude right (with leapseconds) and posix (copy) directories; .tab files; localtime and posixrules files.
697
+ # Exclude right (with leapseconds) and posix (copy) directories; .tab files; leapseconds, localtime and posixrules files.
696
698
  entries = entries.select do |file|
697
699
  file !~ /\A(posix|right)\// &&
698
700
  file !~ /\.tab\z/ &&
699
- !%w(localtime posixrules).include?(file)
701
+ !%w(leapseconds localtime posixrules).include?(file)
700
702
  end
701
703
 
702
704
  entries.sort
@@ -0,0 +1,61 @@
1
+ # Allowance for leap seconds added to each time zone file.
2
+
3
+ # This file is in the public domain.
4
+
5
+ # This file is generated automatically from the data in the public-domain
6
+ # leap-seconds.list file, which is copied from:
7
+ # ftp://ftp.nist.gov/pub/time/leap-seconds.list
8
+ # For more about leap-seconds.list, please see
9
+ # The NTP Timescale and Leap Seconds
10
+ # https://www.eecis.udel.edu/~mills/leap.html
11
+
12
+ # The International Earth Rotation and Reference Systems Service
13
+ # periodically uses leap seconds to keep UTC to within 0.9 s of UT1
14
+ # (which measures the true angular orientation of the earth in space); see
15
+ # Levine J. Coordinated Universal Time and the leap second.
16
+ # URSI Radio Sci Bull. 2016;89(4):30-6. doi:10.23919/URSIRSB.2016.7909995
17
+ # http://ieeexplore.ieee.org/document/7909995/
18
+ # There were no leap seconds before 1972, because the official mechanism
19
+ # accounting for the discrepancy between atomic time and the earth's rotation
20
+ # did not exist until the early 1970s.
21
+
22
+ # The correction (+ or -) is made at the given time, so lines
23
+ # will typically look like:
24
+ # Leap YEAR MON DAY 23:59:60 + R/S
25
+ # or
26
+ # Leap YEAR MON DAY 23:59:59 - R/S
27
+
28
+ # If the leapsecond is Rolling (R) the given time is local time.
29
+ # If the leapsecond is Stationary (S) the given time is UTC.
30
+
31
+ # Leap YEAR MONTH DAY HH:MM:SS CORR R/S
32
+ Leap 1972 Jun 30 23:59:60 + S
33
+ Leap 1972 Dec 31 23:59:60 + S
34
+ Leap 1973 Dec 31 23:59:60 + S
35
+ Leap 1974 Dec 31 23:59:60 + S
36
+ Leap 1975 Dec 31 23:59:60 + S
37
+ Leap 1976 Dec 31 23:59:60 + S
38
+ Leap 1977 Dec 31 23:59:60 + S
39
+ Leap 1978 Dec 31 23:59:60 + S
40
+ Leap 1979 Dec 31 23:59:60 + S
41
+ Leap 1981 Jun 30 23:59:60 + S
42
+ Leap 1982 Jun 30 23:59:60 + S
43
+ Leap 1983 Jun 30 23:59:60 + S
44
+ Leap 1985 Jun 30 23:59:60 + S
45
+ Leap 1987 Dec 31 23:59:60 + S
46
+ Leap 1989 Dec 31 23:59:60 + S
47
+ Leap 1990 Dec 31 23:59:60 + S
48
+ Leap 1992 Jun 30 23:59:60 + S
49
+ Leap 1993 Jun 30 23:59:60 + S
50
+ Leap 1994 Jun 30 23:59:60 + S
51
+ Leap 1995 Dec 31 23:59:60 + S
52
+ Leap 1997 Jun 30 23:59:60 + S
53
+ Leap 1998 Dec 31 23:59:60 + S
54
+ Leap 2005 Dec 31 23:59:60 + S
55
+ Leap 2008 Dec 31 23:59:60 + S
56
+ Leap 2012 Jun 30 23:59:60 + S
57
+ Leap 2015 Jun 30 23:59:60 + S
58
+ Leap 2016 Dec 31 23:59:60 + S
59
+
60
+ # Updated through IERS Bulletin C54
61
+ # File expires on: 28 June 2018
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'tzinfo'
3
- s.version = '1.2.3'
3
+ s.version = '1.2.4'
4
4
  s.summary = 'Daylight savings aware timezone library'
5
5
  s.description = 'TZInfo provides daylight savings aware transformations between times in different time zones.'
6
6
  s.author = 'Philip Ross'
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: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Ross
@@ -12,7 +12,7 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDdDCCAlygAwIBAgIBATANBgkqhkiG9w0BAQUFADBAMRIwEAYDVQQDDAlwaGls
14
14
  LnJvc3MxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
15
- bTAeFw0xNjEwMjAxOTMyMDZaFw0xNzEwMjAxOTMyMDZaMEAxEjAQBgNVBAMMCXBo
15
+ bTAeFw0xNzEwMjMxOTQ2MDJaFw0xODEwMjMxOTQ2MDJaMEAxEjAQBgNVBAMMCXBo
16
16
  aWwucm9zczEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYD
17
17
  Y29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkZzB+qfhmyY+XRvU
18
18
  u310LMTGsTkR4/8JFCMF0YeQX6ZKmLr1fKzF3At1+DlI+v0t/G2FS6Dic0V3l8MK
@@ -23,14 +23,14 @@ cert_chain:
23
23
  TcNLCQIDAQABo3kwdzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU
24
24
  D5nzO9/MG4B6ygch/Pv6PF9Q5x8wHgYDVR0RBBcwFYETcGhpbC5yb3NzQGdtYWls
25
25
  LmNvbTAeBgNVHRIEFzAVgRNwaGlsLnJvc3NAZ21haWwuY29tMA0GCSqGSIb3DQEB
26
- BQUAA4IBAQBM+pMz41DnLx/Edg6cZe7JYFeXXQmVeltwDEefCa4cXxfLTsR6m7vW
27
- aBxCCJ62qrfe2dF1d8lp5X94nAmG8FyzSH4Gt8Ul69zOLw31E5XkT2bDcBTzWwcf
28
- OmYp+4rBeXWVwf76baYDNrJyFBp42cuj3vQBOQ2mJcwjeBldyUFVxElq93ISpN+2
29
- xSO5T8UfFZWHwv9H9cGhQnInu/hpl/vFcz5LM/l1CODRITfEbNUlr6Lb4JLxm58y
30
- sB3eS05Xw5lTvyhTICdMJIRk5jPPk3Sv/H1G7urfugkdEqT66FO+pgBnC9o7HvXN
31
- E2bpXUbNbgEUfOfgi7vQ9NLDfb+3Brxl
26
+ BQUAA4IBAQAHbabsU8fIQudX8XYwqZJYO76Y4LbHnMqZZz9nmRBWJlFE3E5jaF8Y
27
+ p9v1LkOLlo04z9bdnIS0/RfSqvHkNYcdpYXHnmr5/GYItKt8LWpFDA5cLaeWv5cU
28
+ FQB6a0HlkirTSTbevJNssymV/E206AFAoPK9vzjROn+/2MG4VlvYf/zr2nSQG76M
29
+ BMVs6uF68qxYpWjHisX2oy6R1k4G32jopKfLpdh1WCnN2/U5jqND/b25SRZ2ZRxy
30
+ YbX/8MDD3wwHu+knVnVsGNVuu/leNr+hJGgTUGXgcsu6nqYc4QVD+Amj1rI8D6at
31
+ IYlrSPqJ7q3pK9kchFKrrktRA6yVf+fR
32
32
  -----END CERTIFICATE-----
33
- date: 2017-03-25 00:00:00.000000000 Z
33
+ date: 2017-10-26 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: thread_safe
@@ -155,6 +155,7 @@ files:
155
155
  - test/zoneinfo/Europe/Prague
156
156
  - test/zoneinfo/Factory
157
157
  - test/zoneinfo/iso3166.tab
158
+ - test/zoneinfo/leapseconds
158
159
  - test/zoneinfo/posix/Europe/London
159
160
  - test/zoneinfo/posixrules
160
161
  - test/zoneinfo/right/Europe/London
@@ -185,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
186
  version: '0'
186
187
  requirements: []
187
188
  rubyforge_project:
188
- rubygems_version: 2.6.11
189
+ rubygems_version: 2.6.14
189
190
  signing_key:
190
191
  specification_version: 4
191
192
  summary: Daylight savings aware timezone library
metadata.gz.sig CHANGED
Binary file