ziptz 2.0.11 → 2.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/Gemfile.lock +30 -23
- data/README.md +1 -1
- data/Rakefile +19 -7
- data/data/dst.data +5 -37
- data/data/tz.data +5 -37
- data/lib/ziptz.rb +2 -2
- 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: 0522b8aecf63fecac583697d371c8a88a936f5b37aef66fd06f0c46c24a69513
|
4
|
+
data.tar.gz: 6acba43f5a186f57b34d1f77e6f97959faa00c19bf20237fab5f0ed33994613e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3eb35cf0dfd067dcb6b586bf14fde829d55f73b5bbfcbcd2f0ba6d1563630bc3bdc0f442841a61700cdaec13da04da3b971e43fdddd29fe9bdad076d89b4b4f
|
7
|
+
data.tar.gz: b90206c961af064f9e1f870539364e8560ea19fdd5c076d4774bd35f270dbaa766520e8c089236c6bd509f4c80cc16817e3272573e391420dfc953dadbbac4e6
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ziptz (2.0.
|
4
|
+
ziptz (2.0.12)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
activemodel (5.2.
|
10
|
-
activesupport (= 5.2.
|
11
|
-
activerecord (5.2.
|
12
|
-
activemodel (= 5.2.
|
13
|
-
activesupport (= 5.2.
|
9
|
+
activemodel (5.2.3)
|
10
|
+
activesupport (= 5.2.3)
|
11
|
+
activerecord (5.2.3)
|
12
|
+
activemodel (= 5.2.3)
|
13
|
+
activesupport (= 5.2.3)
|
14
14
|
arel (>= 9.0)
|
15
|
-
activesupport (5.2.
|
15
|
+
activesupport (5.2.3)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
17
|
i18n (>= 0.7, < 2)
|
18
18
|
minitest (~> 5.1)
|
19
19
|
tzinfo (~> 1.1)
|
20
20
|
arel (9.0.0)
|
21
21
|
ast (2.4.0)
|
22
|
-
byebug (
|
22
|
+
byebug (11.0.1)
|
23
23
|
coderay (1.1.2)
|
24
|
-
concurrent-ruby (1.1.
|
24
|
+
concurrent-ruby (1.1.5)
|
25
25
|
diff-lcs (1.3)
|
26
|
-
ffi (1.
|
26
|
+
ffi (1.11.1)
|
27
27
|
formatador (0.2.5)
|
28
28
|
guard (2.15.0)
|
29
29
|
formatador (>= 0.2.4)
|
@@ -39,8 +39,9 @@ GEM
|
|
39
39
|
guard (~> 2.1)
|
40
40
|
guard-compat (~> 1.1)
|
41
41
|
rspec (>= 2.99.0, < 4.0)
|
42
|
-
i18n (1.
|
42
|
+
i18n (1.6.0)
|
43
43
|
concurrent-ruby (~> 1.0)
|
44
|
+
irb (1.0.0)
|
44
45
|
jaro_winkler (1.5.2)
|
45
46
|
listen (3.1.5)
|
46
47
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
@@ -54,10 +55,9 @@ GEM
|
|
54
55
|
notiffany (0.1.1)
|
55
56
|
nenv (~> 0.1)
|
56
57
|
shellany (~> 0.0)
|
57
|
-
parallel (1.
|
58
|
-
parser (2.6.
|
58
|
+
parallel (1.17.0)
|
59
|
+
parser (2.6.3.0)
|
59
60
|
ast (~> 2.4.0)
|
60
|
-
powerpack (0.1.2)
|
61
61
|
pry (0.12.2)
|
62
62
|
coderay (~> 1.1.0)
|
63
63
|
method_source (~> 0.9.0)
|
@@ -72,31 +72,35 @@ GEM
|
|
72
72
|
rspec-mocks (~> 3.8.0)
|
73
73
|
rspec-core (3.8.0)
|
74
74
|
rspec-support (~> 3.8.0)
|
75
|
-
rspec-expectations (3.8.
|
75
|
+
rspec-expectations (3.8.3)
|
76
76
|
diff-lcs (>= 1.2.0, < 2.0)
|
77
77
|
rspec-support (~> 3.8.0)
|
78
78
|
rspec-mocks (3.8.0)
|
79
79
|
diff-lcs (>= 1.2.0, < 2.0)
|
80
80
|
rspec-support (~> 3.8.0)
|
81
81
|
rspec-support (3.8.0)
|
82
|
-
rubocop (0.
|
82
|
+
rubocop (0.71.0)
|
83
83
|
jaro_winkler (~> 1.5.1)
|
84
84
|
parallel (~> 1.10)
|
85
|
-
parser (>= 2.
|
86
|
-
powerpack (~> 0.1)
|
85
|
+
parser (>= 2.6)
|
87
86
|
rainbow (>= 2.2.2, < 4.0)
|
88
87
|
ruby-progressbar (~> 1.7)
|
89
|
-
unicode-display_width (
|
90
|
-
rubocop-
|
88
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
89
|
+
rubocop-performance (1.3.0)
|
90
|
+
rubocop (>= 0.68.0)
|
91
|
+
rubocop-rspec (1.33.0)
|
91
92
|
rubocop (>= 0.60.0)
|
92
|
-
ruby-progressbar (1.10.
|
93
|
+
ruby-progressbar (1.10.1)
|
93
94
|
ruby_dep (1.5.0)
|
94
95
|
shellany (0.0.1)
|
95
96
|
thor (0.20.3)
|
96
97
|
thread_safe (0.3.6)
|
98
|
+
tty-cursor (0.7.0)
|
99
|
+
tty-spinner (0.9.1)
|
100
|
+
tty-cursor (~> 0.7)
|
97
101
|
tzinfo (1.2.5)
|
98
102
|
thread_safe (~> 0.1)
|
99
|
-
unicode-display_width (1.
|
103
|
+
unicode-display_width (1.6.0)
|
100
104
|
|
101
105
|
PLATFORMS
|
102
106
|
ruby
|
@@ -107,12 +111,15 @@ DEPENDENCIES
|
|
107
111
|
byebug
|
108
112
|
guard
|
109
113
|
guard-rspec
|
114
|
+
irb
|
110
115
|
mysql2
|
111
116
|
rake
|
112
117
|
rspec
|
113
118
|
rubocop
|
119
|
+
rubocop-performance
|
114
120
|
rubocop-rspec
|
121
|
+
tty-spinner
|
115
122
|
ziptz!
|
116
123
|
|
117
124
|
BUNDLED WITH
|
118
|
-
|
125
|
+
1.17.2
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -21,8 +21,12 @@ desc 'Create ziptz db from zipcodes database'
|
|
21
21
|
task :create_ziptz do
|
22
22
|
require 'yaml'
|
23
23
|
require 'active_record'
|
24
|
+
require 'tty-spinner'
|
24
25
|
|
25
|
-
|
26
|
+
spinner = TTY::Spinner.new('[:spinner] Retrieving zip codes from database')
|
27
|
+
spinner.auto_spin
|
28
|
+
|
29
|
+
db_config = YAML.safe_load(File.open('database.yml'))
|
26
30
|
ActiveRecord::Base.establish_connection(db_config)
|
27
31
|
|
28
32
|
class ZipCode < ActiveRecord::Base
|
@@ -34,8 +38,6 @@ task :create_ziptz do
|
|
34
38
|
alias_attribute :day_light_saving, :DayLightSaving
|
35
39
|
end
|
36
40
|
|
37
|
-
puts 'Retrieving zip codes from database'
|
38
|
-
|
39
41
|
data = {}
|
40
42
|
ZipCode.find_each do |zip|
|
41
43
|
next if zip.time_zone.blank? || zip.day_light_saving.blank?
|
@@ -44,21 +46,31 @@ task :create_ziptz do
|
|
44
46
|
data[zip.zip_code][:tz] ||= zip.time_zone
|
45
47
|
data[zip.zip_code][:dst] ||= zip.day_light_saving
|
46
48
|
end
|
49
|
+
spinner = TTY::Spinner.new("[:spinner] Retrieving zip codes from database (#{data.size} records)")
|
50
|
+
spinner.success
|
47
51
|
|
48
|
-
|
49
|
-
|
52
|
+
spinner = TTY::Spinner.new('[:spinner] Writing tz.data')
|
53
|
+
spinner.auto_spin
|
50
54
|
lines = data.map { |k, v| "#{k}=#{v[:tz]}" }
|
51
55
|
lines.sort!
|
52
|
-
|
53
56
|
File.open('data/tz.data', 'w') do |f|
|
54
57
|
lines.each { |line| f.puts line }
|
55
58
|
end
|
59
|
+
spinner = TTY::Spinner.new "[:spinner] Writing tz.data (#{File.size('data/tz.data').to_s} bytes)"
|
60
|
+
spinner.success
|
61
|
+
# puts File.size('data/tz.data').to_s
|
56
62
|
|
57
|
-
|
63
|
+
spinner = TTY::Spinner.new('[:spinner] Writing dst.data')
|
64
|
+
spinner.auto_spin
|
58
65
|
lines = data.map { |k, v| "#{k}=#{v[:dst] =~ /y/i ? 1 : 0}" }
|
59
66
|
lines.sort!
|
60
67
|
|
61
68
|
File.open('data/dst.data', 'w') do |f|
|
62
69
|
lines.each { |line| f.puts line }
|
63
70
|
end
|
71
|
+
spinner = TTY::Spinner.new "[:spinner] Writing dst.data (#{File.size('data/dst.data').to_s} bytes)"
|
72
|
+
spinner.success
|
73
|
+
rescue StandardError
|
74
|
+
spinner && spinner.error
|
75
|
+
raise
|
64
76
|
end
|
data/data/dst.data
CHANGED
@@ -125,7 +125,6 @@
|
|
125
125
|
00851=0
|
126
126
|
00901=0
|
127
127
|
00902=0
|
128
|
-
00905=0
|
129
128
|
00906=0
|
130
129
|
00907=0
|
131
130
|
00908=0
|
@@ -3204,7 +3203,6 @@
|
|
3204
3203
|
09020=1
|
3205
3204
|
09021=1
|
3206
3205
|
09028=1
|
3207
|
-
09033=1
|
3208
3206
|
09034=1
|
3209
3207
|
09044=1
|
3210
3208
|
09046=1
|
@@ -3212,12 +3210,10 @@
|
|
3212
3210
|
09053=1
|
3213
3211
|
09054=1
|
3214
3212
|
09055=1
|
3215
|
-
09059=1
|
3216
3213
|
09060=1
|
3217
3214
|
09067=1
|
3218
3215
|
09068=1
|
3219
3216
|
09069=1
|
3220
|
-
09075=1
|
3221
3217
|
09079=1
|
3222
3218
|
09090=1
|
3223
3219
|
09094=1
|
@@ -3238,10 +3234,8 @@
|
|
3238
3234
|
09139=1
|
3239
3235
|
09140=1
|
3240
3236
|
09142=1
|
3241
|
-
09143=1
|
3242
3237
|
09154=1
|
3243
3238
|
09160=1
|
3244
|
-
09161=1
|
3245
3239
|
09170=1
|
3246
3240
|
09171=1
|
3247
3241
|
09172=1
|
@@ -3260,12 +3254,13 @@
|
|
3260
3254
|
09216=1
|
3261
3255
|
09226=1
|
3262
3256
|
09227=1
|
3263
|
-
|
3257
|
+
09241=1
|
3264
3258
|
09250=1
|
3265
3259
|
09261=1
|
3266
3260
|
09263=1
|
3267
3261
|
09264=1
|
3268
3262
|
09265=1
|
3263
|
+
09266=1
|
3269
3264
|
09276=1
|
3270
3265
|
09278=1
|
3271
3266
|
09289=1
|
@@ -3292,7 +3287,6 @@
|
|
3292
3287
|
09321=1
|
3293
3288
|
09322=1
|
3294
3289
|
09323=1
|
3295
|
-
09328=1
|
3296
3290
|
09330=1
|
3297
3291
|
09333=1
|
3298
3292
|
09337=1
|
@@ -3306,18 +3300,11 @@
|
|
3306
3300
|
09355=1
|
3307
3301
|
09356=1
|
3308
3302
|
09357=1
|
3309
|
-
09360=1
|
3310
3303
|
09363=1
|
3311
|
-
09364=1
|
3312
3304
|
09365=1
|
3313
3305
|
09366=1
|
3314
|
-
09368=1
|
3315
|
-
09372=1
|
3316
|
-
09373=1
|
3317
3306
|
09378=1
|
3318
3307
|
09381=1
|
3319
|
-
09382=1
|
3320
|
-
09397=1
|
3321
3308
|
09403=1
|
3322
3309
|
09421=1
|
3323
3310
|
09447=1
|
@@ -3425,14 +3412,12 @@
|
|
3425
3412
|
09634=1
|
3426
3413
|
09635=1
|
3427
3414
|
09636=1
|
3428
|
-
09641=1
|
3429
3415
|
09642=1
|
3430
3416
|
09643=1
|
3431
3417
|
09645=1
|
3432
3418
|
09647=1
|
3433
3419
|
09648=1
|
3434
3420
|
09649=1
|
3435
|
-
09665=1
|
3436
3421
|
09701=1
|
3437
3422
|
09702=1
|
3438
3423
|
09703=1
|
@@ -3475,7 +3460,6 @@
|
|
3475
3460
|
09743=1
|
3476
3461
|
09744=1
|
3477
3462
|
09745=1
|
3478
|
-
09747=1
|
3479
3463
|
09748=1
|
3480
3464
|
09749=1
|
3481
3465
|
09750=1
|
@@ -3501,7 +3485,6 @@
|
|
3501
3485
|
09804=1
|
3502
3486
|
09805=1
|
3503
3487
|
09806=1
|
3504
|
-
09807=1
|
3505
3488
|
09808=1
|
3506
3489
|
09809=1
|
3507
3490
|
09810=1
|
@@ -3528,14 +3511,12 @@
|
|
3528
3511
|
09832=1
|
3529
3512
|
09833=1
|
3530
3513
|
09834=1
|
3531
|
-
09835=1
|
3532
3514
|
09836=1
|
3533
3515
|
09837=1
|
3534
3516
|
09838=1
|
3535
3517
|
09839=1
|
3536
3518
|
09841=1
|
3537
3519
|
09842=1
|
3538
|
-
09843=1
|
3539
3520
|
09844=1
|
3540
3521
|
09845=1
|
3541
3522
|
09846=1
|
@@ -3573,8 +3554,6 @@
|
|
3573
3554
|
09902=1
|
3574
3555
|
09903=1
|
3575
3556
|
09904=1
|
3576
|
-
09906=1
|
3577
|
-
09907=1
|
3578
3557
|
09908=1
|
3579
3558
|
09909=1
|
3580
3559
|
09910=1
|
@@ -4056,6 +4035,7 @@
|
|
4056
4035
|
11434=1
|
4057
4036
|
11435=1
|
4058
4037
|
11436=1
|
4038
|
+
11437=1
|
4059
4039
|
11439=1
|
4060
4040
|
11451=1
|
4061
4041
|
11499=1
|
@@ -6938,7 +6918,6 @@
|
|
6938
6918
|
17350=1
|
6939
6919
|
17352=1
|
6940
6920
|
17353=1
|
6941
|
-
17354=1
|
6942
6921
|
17355=1
|
6943
6922
|
17356=1
|
6944
6923
|
17358=1
|
@@ -14696,6 +14675,7 @@
|
|
14696
14675
|
34039=1
|
14697
14676
|
34041=1
|
14698
14677
|
34042=1
|
14678
|
+
34044=1
|
14699
14679
|
34050=1
|
14700
14680
|
34051=1
|
14701
14681
|
34052=1
|
@@ -14725,9 +14705,6 @@
|
|
14725
14705
|
34093=1
|
14726
14706
|
34094=1
|
14727
14707
|
34095=1
|
14728
|
-
34096=1
|
14729
|
-
34098=1
|
14730
|
-
34099=1
|
14731
14708
|
34101=1
|
14732
14709
|
34102=1
|
14733
14710
|
34103=1
|
@@ -22997,7 +22974,6 @@
|
|
22997
22974
|
53785=1
|
22998
22975
|
53786=1
|
22999
22976
|
53788=1
|
23000
|
-
53789=1
|
23001
22977
|
53790=1
|
23002
22978
|
53791=1
|
23003
22979
|
53792=1
|
@@ -27280,7 +27256,6 @@
|
|
27280
27256
|
62952=1
|
27281
27257
|
62953=1
|
27282
27258
|
62954=1
|
27283
|
-
62955=1
|
27284
27259
|
62956=1
|
27285
27260
|
62957=1
|
27286
27261
|
62958=1
|
@@ -27445,7 +27420,6 @@
|
|
27445
27420
|
63178=1
|
27446
27421
|
63179=1
|
27447
27422
|
63180=1
|
27448
|
-
63182=1
|
27449
27423
|
63188=1
|
27450
27424
|
63195=1
|
27451
27425
|
63197=1
|
@@ -30951,6 +30925,7 @@
|
|
30951
30925
|
72402=1
|
30952
30926
|
72403=1
|
30953
30927
|
72404=1
|
30928
|
+
72405=1
|
30954
30929
|
72410=1
|
30955
30930
|
72411=1
|
30956
30931
|
72412=1
|
@@ -35631,7 +35606,6 @@
|
|
35631
35606
|
83726=1
|
35632
35607
|
83728=1
|
35633
35608
|
83729=1
|
35634
|
-
83731=1
|
35635
35609
|
83732=1
|
35636
35610
|
83735=1
|
35637
35611
|
83756=1
|
@@ -39994,7 +39968,6 @@
|
|
39994
39968
|
96389=1
|
39995
39969
|
96401=1
|
39996
39970
|
96501=1
|
39997
|
-
96502=1
|
39998
39971
|
96504=1
|
39999
39972
|
96505=1
|
40000
39973
|
96507=1
|
@@ -40015,7 +39988,6 @@
|
|
40015
39988
|
96538=1
|
40016
39989
|
96539=1
|
40017
39990
|
96540=1
|
40018
|
-
96541=1
|
40019
39991
|
96542=1
|
40020
39992
|
96543=1
|
40021
39993
|
96546=1
|
@@ -40052,12 +40024,8 @@
|
|
40052
40024
|
96617=1
|
40053
40025
|
96619=1
|
40054
40026
|
96620=1
|
40055
|
-
96621=1
|
40056
|
-
96622=1
|
40057
|
-
96624=1
|
40058
40027
|
96628=1
|
40059
40028
|
96629=1
|
40060
|
-
96631=1
|
40061
40029
|
96632=1
|
40062
40030
|
96633=1
|
40063
40031
|
96641=1
|
data/data/tz.data
CHANGED
@@ -125,7 +125,6 @@
|
|
125
125
|
00851=4
|
126
126
|
00901=4
|
127
127
|
00902=4
|
128
|
-
00905=4
|
129
128
|
00906=4
|
130
129
|
00907=4
|
131
130
|
00908=4
|
@@ -3204,7 +3203,6 @@
|
|
3204
3203
|
09020=0
|
3205
3204
|
09021=0
|
3206
3205
|
09028=0
|
3207
|
-
09033=0
|
3208
3206
|
09034=0
|
3209
3207
|
09044=0
|
3210
3208
|
09046=0
|
@@ -3212,12 +3210,10 @@
|
|
3212
3210
|
09053=0
|
3213
3211
|
09054=0
|
3214
3212
|
09055=0
|
3215
|
-
09059=0
|
3216
3213
|
09060=0
|
3217
3214
|
09067=0
|
3218
3215
|
09068=0
|
3219
3216
|
09069=0
|
3220
|
-
09075=0
|
3221
3217
|
09079=0
|
3222
3218
|
09090=0
|
3223
3219
|
09094=0
|
@@ -3238,10 +3234,8 @@
|
|
3238
3234
|
09139=0
|
3239
3235
|
09140=0
|
3240
3236
|
09142=0
|
3241
|
-
09143=0
|
3242
3237
|
09154=0
|
3243
3238
|
09160=0
|
3244
|
-
09161=0
|
3245
3239
|
09170=0
|
3246
3240
|
09171=0
|
3247
3241
|
09172=0
|
@@ -3260,12 +3254,13 @@
|
|
3260
3254
|
09216=0
|
3261
3255
|
09226=0
|
3262
3256
|
09227=0
|
3263
|
-
|
3257
|
+
09241=0
|
3264
3258
|
09250=0
|
3265
3259
|
09261=0
|
3266
3260
|
09263=0
|
3267
3261
|
09264=0
|
3268
3262
|
09265=0
|
3263
|
+
09266=0
|
3269
3264
|
09276=0
|
3270
3265
|
09278=0
|
3271
3266
|
09289=0
|
@@ -3292,7 +3287,6 @@
|
|
3292
3287
|
09321=0
|
3293
3288
|
09322=0
|
3294
3289
|
09323=0
|
3295
|
-
09328=0
|
3296
3290
|
09330=0
|
3297
3291
|
09333=0
|
3298
3292
|
09337=0
|
@@ -3306,18 +3300,11 @@
|
|
3306
3300
|
09355=0
|
3307
3301
|
09356=0
|
3308
3302
|
09357=0
|
3309
|
-
09360=0
|
3310
3303
|
09363=0
|
3311
|
-
09364=0
|
3312
3304
|
09365=0
|
3313
3305
|
09366=0
|
3314
|
-
09368=0
|
3315
|
-
09372=0
|
3316
|
-
09373=0
|
3317
3306
|
09378=0
|
3318
3307
|
09381=0
|
3319
|
-
09382=0
|
3320
|
-
09397=0
|
3321
3308
|
09403=0
|
3322
3309
|
09421=0
|
3323
3310
|
09447=0
|
@@ -3425,14 +3412,12 @@
|
|
3425
3412
|
09634=0
|
3426
3413
|
09635=0
|
3427
3414
|
09636=0
|
3428
|
-
09641=0
|
3429
3415
|
09642=0
|
3430
3416
|
09643=0
|
3431
3417
|
09645=0
|
3432
3418
|
09647=0
|
3433
3419
|
09648=0
|
3434
3420
|
09649=0
|
3435
|
-
09665=0
|
3436
3421
|
09701=0
|
3437
3422
|
09702=0
|
3438
3423
|
09703=0
|
@@ -3475,7 +3460,6 @@
|
|
3475
3460
|
09743=0
|
3476
3461
|
09744=0
|
3477
3462
|
09745=0
|
3478
|
-
09747=0
|
3479
3463
|
09748=0
|
3480
3464
|
09749=0
|
3481
3465
|
09750=0
|
@@ -3501,7 +3485,6 @@
|
|
3501
3485
|
09804=0
|
3502
3486
|
09805=0
|
3503
3487
|
09806=0
|
3504
|
-
09807=0
|
3505
3488
|
09808=0
|
3506
3489
|
09809=0
|
3507
3490
|
09810=0
|
@@ -3528,14 +3511,12 @@
|
|
3528
3511
|
09832=0
|
3529
3512
|
09833=0
|
3530
3513
|
09834=0
|
3531
|
-
09835=0
|
3532
3514
|
09836=0
|
3533
3515
|
09837=0
|
3534
3516
|
09838=0
|
3535
3517
|
09839=0
|
3536
3518
|
09841=0
|
3537
3519
|
09842=0
|
3538
|
-
09843=0
|
3539
3520
|
09844=0
|
3540
3521
|
09845=0
|
3541
3522
|
09846=0
|
@@ -3573,8 +3554,6 @@
|
|
3573
3554
|
09902=5
|
3574
3555
|
09903=5
|
3575
3556
|
09904=5
|
3576
|
-
09906=5
|
3577
|
-
09907=5
|
3578
3557
|
09908=5
|
3579
3558
|
09909=5
|
3580
3559
|
09910=5
|
@@ -4056,6 +4035,7 @@
|
|
4056
4035
|
11434=5
|
4057
4036
|
11435=5
|
4058
4037
|
11436=5
|
4038
|
+
11437=5
|
4059
4039
|
11439=5
|
4060
4040
|
11451=5
|
4061
4041
|
11499=5
|
@@ -6938,7 +6918,6 @@
|
|
6938
6918
|
17350=5
|
6939
6919
|
17352=5
|
6940
6920
|
17353=5
|
6941
|
-
17354=5
|
6942
6921
|
17355=5
|
6943
6922
|
17356=5
|
6944
6923
|
17358=5
|
@@ -14696,6 +14675,7 @@
|
|
14696
14675
|
34039=0
|
14697
14676
|
34041=0
|
14698
14677
|
34042=0
|
14678
|
+
34044=0
|
14699
14679
|
34050=0
|
14700
14680
|
34051=0
|
14701
14681
|
34052=0
|
@@ -14725,9 +14705,6 @@
|
|
14725
14705
|
34093=0
|
14726
14706
|
34094=0
|
14727
14707
|
34095=0
|
14728
|
-
34096=0
|
14729
|
-
34098=0
|
14730
|
-
34099=0
|
14731
14708
|
34101=5
|
14732
14709
|
34102=5
|
14733
14710
|
34103=5
|
@@ -22997,7 +22974,6 @@
|
|
22997
22974
|
53785=6
|
22998
22975
|
53786=6
|
22999
22976
|
53788=6
|
23000
|
-
53789=6
|
23001
22977
|
53790=6
|
23002
22978
|
53791=6
|
23003
22979
|
53792=6
|
@@ -27280,7 +27256,6 @@
|
|
27280
27256
|
62952=6
|
27281
27257
|
62953=6
|
27282
27258
|
62954=6
|
27283
|
-
62955=6
|
27284
27259
|
62956=6
|
27285
27260
|
62957=6
|
27286
27261
|
62958=6
|
@@ -27445,7 +27420,6 @@
|
|
27445
27420
|
63178=6
|
27446
27421
|
63179=6
|
27447
27422
|
63180=6
|
27448
|
-
63182=6
|
27449
27423
|
63188=6
|
27450
27424
|
63195=6
|
27451
27425
|
63197=6
|
@@ -30951,6 +30925,7 @@
|
|
30951
30925
|
72402=6
|
30952
30926
|
72403=6
|
30953
30927
|
72404=6
|
30928
|
+
72405=6
|
30954
30929
|
72410=6
|
30955
30930
|
72411=6
|
30956
30931
|
72412=6
|
@@ -35631,7 +35606,6 @@
|
|
35631
35606
|
83726=7
|
35632
35607
|
83728=7
|
35633
35608
|
83729=7
|
35634
|
-
83731=7
|
35635
35609
|
83732=7
|
35636
35610
|
83735=7
|
35637
35611
|
83756=7
|
@@ -39994,7 +39968,6 @@
|
|
39994
39968
|
96389=0
|
39995
39969
|
96401=0
|
39996
39970
|
96501=0
|
39997
|
-
96502=0
|
39998
39971
|
96504=0
|
39999
39972
|
96505=0
|
40000
39973
|
96507=0
|
@@ -40015,7 +39988,6 @@
|
|
40015
39988
|
96538=0
|
40016
39989
|
96539=0
|
40017
39990
|
96540=0
|
40018
|
-
96541=0
|
40019
39991
|
96542=0
|
40020
39992
|
96543=0
|
40021
39993
|
96546=0
|
@@ -40052,12 +40024,8 @@
|
|
40052
40024
|
96617=0
|
40053
40025
|
96619=0
|
40054
40026
|
96620=0
|
40055
|
-
96621=0
|
40056
|
-
96622=0
|
40057
|
-
96624=0
|
40058
40027
|
96628=0
|
40059
40028
|
96629=0
|
40060
|
-
96631=0
|
40061
40029
|
96632=0
|
40062
40030
|
96633=0
|
40063
40031
|
96641=0
|
data/lib/ziptz.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
|
3
3
|
class Ziptz
|
4
|
-
VERSION = '2.0.
|
4
|
+
VERSION = '2.0.12'.freeze
|
5
5
|
|
6
6
|
TZ_INFO = {
|
7
7
|
'0' => {name: 'APO/FPO (time zone unknown)', offset: 0},
|
@@ -57,7 +57,7 @@ class Ziptz
|
|
57
57
|
end
|
58
58
|
|
59
59
|
def time_zone_info(zip)
|
60
|
-
TZ_INFO[get_time_zone
|
60
|
+
TZ_INFO[get_time_zone(zip)]
|
61
61
|
end
|
62
62
|
|
63
63
|
def get_time_zone(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: 2.0.
|
4
|
+
version: 2.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-02 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
|