ziptz 3.0.0 → 3.0.1
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
- data/Gemfile.lock +1 -1
- data/README.md +10 -4
- data/data/tz.data +0 -0
- data/lib/ziptz.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e542801fa40a2a225e67c8e7dead718bec94979238e27b64d53578723ce8906e
|
4
|
+
data.tar.gz: c720f121c5bd87726882d86348c707108a329fc492985584c8f04e4b76e732be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f0eafc3c80b0c7074f561f1f291ae40591f4e97996943e7ecbdcb9c3c54e6bf67f79141d5b1c92b8aba0c7dce38bf0d493dff39c1c108393edd1d4e26fa636e
|
7
|
+
data.tar.gz: 2cde6491cca2335357f0cab943b5c22b89ffdb38258398d23df891369e0c34f6a6c8a6cc5af6416c808d530ac6e575462bc404c57132677a919fbb97bda2b7fc
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -4,9 +4,15 @@
|
|
4
4
|
[](https://rubygems.org/gems/ziptz/)
|
5
5
|
[](https://github.com/infused/ziptz)
|
6
6
|
|
7
|
-
Get time zone
|
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>
|
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/
|
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
|
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
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.
|
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-
|
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
|