ziptz 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +10 -4
  4. data/data/tz.data +0 -0
  5. data/lib/ziptz.rb +1 -1
  6. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58a543bdf4161509318a1d76b85fcda2feaa38c1c109cbb306360a1d770d4caa
4
- data.tar.gz: a8ea39f8f78aba709e3c3a08916d56a64c70f7add692e5af4f6b77fc612649ad
3
+ metadata.gz: e542801fa40a2a225e67c8e7dead718bec94979238e27b64d53578723ce8906e
4
+ data.tar.gz: c720f121c5bd87726882d86348c707108a329fc492985584c8f04e4b76e732be
5
5
  SHA512:
6
- metadata.gz: 3970fc1eb3951eb742c348936012ac61124583f89d7758bdcd159c1ec8de66352387201bcedce8141e929046be78c7bb3e78bb497523e0965a5b47a6ad08153e
7
- data.tar.gz: 070d0bb85eac2a9256447000df5e9cd5d929a29aa34025b48a8c6967a54bbe95c284227541ff12d5e223414a23b70366a8aa6099e684174f17afda130170a4d1
6
+ metadata.gz: 7f0eafc3c80b0c7074f561f1f291ae40591f4e97996943e7ecbdcb9c3c54e6bf67f79141d5b1c92b8aba0c7dce38bf0d493dff39c1c108393edd1d4e26fa636e
7
+ data.tar.gz: 2cde6491cca2335357f0cab943b5c22b89ffdb38258398d23df891369e0c34f6a6c8a6cc5af6416c808d530ac6e575462bc404c57132677a919fbb97bda2b7fc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ziptz (2.1.14)
4
+ ziptz (3.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -4,9 +4,15 @@
4
4
  [![Total Downloads](https://img.shields.io/gem/dt/ziptz.svg)](https://rubygems.org/gems/ziptz/)
5
5
  [![License](https://img.shields.io/github/license/infused/ziptz.svg)](https://github.com/infused/ziptz)
6
6
 
7
- Get time zone and daylight saving time for any US ZIP code.
7
+ Get time zone, daylight saving time, and base offset for any US ZIP code.
8
8
 
9
- <i>ZIP codes are up to date as of <b>February 2021</b>.</i>
9
+ <i>ZIP codes are up to date as of <b>April 2021</b>.</i>
10
+
11
+ ## Compatibility
12
+
13
+ Ziptz is tested to work with the following versions of Ruby:
14
+
15
+ * Ruby 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.0.x, and TruffleRuby
10
16
 
11
17
  ## Installation
12
18
 
@@ -34,7 +40,7 @@ Determine if the ZIP code uses Daylight Saving Time:
34
40
 
35
41
  Get all the zip codes in a time zone:
36
42
 
37
- z.zips('Pacific/Pago_Pago') #=> ["96799", "96941", "96942", "96943", "96944"]
43
+ z.zips('Pacific/Chuuk') #=> ["96942", "96943"]
38
44
 
39
45
 
40
46
  ## Supported Time Zones
@@ -90,7 +96,7 @@ If you would prefer raw data instead of a gem, see my [ZIP Code Time Zones](http
90
96
  ## Version 3 breaking changes
91
97
 
92
98
  * APO, DPO, and FPO zip codes are no longer included, because they are non-geographic.
93
- * Time zone offset are now specified in seconds instead of hours.
99
+ * Time zone offsets are now specified in seconds instead of hours.
94
100
  * Time zone are now more granular. The full list of time zones is:
95
101
  * America/Adak
96
102
  * America/Anchorage
data/data/tz.data CHANGED
Binary file
data/lib/ziptz.rb CHANGED
@@ -2,7 +2,7 @@ require 'yaml'
2
2
  require 'zlib'
3
3
 
4
4
  class Ziptz
5
- VERSION = '3.0.0'.freeze
5
+ VERSION = '3.0.1'.freeze
6
6
 
7
7
  def time_zone_name(zip)
8
8
  tz_info = time_zone_info(zip)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ziptz
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-23 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Get timezone info for all 5-digit US zip codes
14
14
  email: keithm@infused.org