ziptz 2.0.6 → 2.0.7

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: d946540161b53d6f2474db102caa0de7f86f884cb7aea91a2c77550cdc2a60a5
4
- data.tar.gz: 1b70dd48ff22b88d17320042b952d316716e58fd3777c293aae4d3b402e959ef
3
+ metadata.gz: 26f5e2c886544fabe22b02a07a67ef079eb9815111242c1ce5c602585b09fc71
4
+ data.tar.gz: '0167685b059a906f4d1bd60d0c6df1c1a728e7cd2001d797394178d5151c4fc1'
5
5
  SHA512:
6
- metadata.gz: 1efa4cbc1b9d4afabfc9d80af46537976e93f464f61ca71d923afcb14aaba00386d5e1f8f4d5151296b06ccdf55c88b1fddc5a493b255527ef387e52d4f4fcd1
7
- data.tar.gz: e35092f286fa889e746fc057882f083ddd9cc2c55f1ddaf3179f99d7371ab9f81454f0cfd10dfabf168a70e79ffa2147dd765970ba4362e638226c96a164bbdf
6
+ metadata.gz: c83cc32bbd12fd944b8c8b9abe61ae36e6b023d76f8d312e8958939837741c7362d6d524feef9bfcd20093e35377cfa462a0fa4e4ae906365754918f583eb203
7
+ data.tar.gz: 304fe05995079558bb1ee6959c844c7f90893d1832271d58eddfde2ab8f6ad2157181a221debaaaefb1a24a5338f6699b39f4f85e8de730c12edf14372190429
data/Gemfile CHANGED
@@ -3,6 +3,7 @@ source 'https://rubygems.org'
3
3
 
4
4
  group :development, :test do
5
5
  gem 'activerecord'
6
+ gem 'bundler'
6
7
  gem 'byebug'
7
8
  gem 'guard'
8
9
  gem 'guard-rspec'
data/Gemfile.lock CHANGED
@@ -1,31 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ziptz (2.0.5)
4
+ ziptz (2.0.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activemodel (5.1.5)
10
- activesupport (= 5.1.5)
11
- activerecord (5.1.5)
12
- activemodel (= 5.1.5)
13
- activesupport (= 5.1.5)
14
- arel (~> 8.0)
15
- activesupport (5.1.5)
9
+ activemodel (5.2.2)
10
+ activesupport (= 5.2.2)
11
+ activerecord (5.2.2)
12
+ activemodel (= 5.2.2)
13
+ activesupport (= 5.2.2)
14
+ arel (>= 9.0)
15
+ activesupport (5.2.2)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (~> 0.7)
17
+ i18n (>= 0.7, < 2)
18
18
  minitest (~> 5.1)
19
19
  tzinfo (~> 1.1)
20
- arel (8.0.0)
20
+ arel (9.0.0)
21
21
  ast (2.4.0)
22
- byebug (9.1.0)
22
+ byebug (10.0.2)
23
23
  coderay (1.1.2)
24
- concurrent-ruby (1.0.5)
24
+ concurrent-ruby (1.1.4)
25
25
  diff-lcs (1.3)
26
- ffi (1.9.23)
26
+ ffi (1.10.0)
27
27
  formatador (0.2.5)
28
- guard (2.14.2)
28
+ guard (2.15.0)
29
29
  formatador (>= 0.2.4)
30
30
  listen (>= 2.7, < 4.0)
31
31
  lumberjack (>= 1.0.12, < 2.0)
@@ -39,68 +39,71 @@ GEM
39
39
  guard (~> 2.1)
40
40
  guard-compat (~> 1.1)
41
41
  rspec (>= 2.99.0, < 4.0)
42
- i18n (0.9.5)
42
+ i18n (1.5.3)
43
43
  concurrent-ruby (~> 1.0)
44
+ jaro_winkler (1.5.2)
44
45
  listen (3.1.5)
45
46
  rb-fsevent (~> 0.9, >= 0.9.4)
46
47
  rb-inotify (~> 0.9, >= 0.9.7)
47
48
  ruby_dep (~> 1.2)
48
- lumberjack (1.0.12)
49
- method_source (0.9.0)
49
+ lumberjack (1.0.13)
50
+ method_source (0.9.2)
50
51
  minitest (5.11.3)
51
- mysql2 (0.4.10)
52
+ mysql2 (0.5.2)
52
53
  nenv (0.3.0)
53
54
  notiffany (0.1.1)
54
55
  nenv (~> 0.1)
55
56
  shellany (~> 0.0)
56
- parallel (1.12.1)
57
- parser (2.5.0.2)
57
+ parallel (1.13.0)
58
+ parser (2.6.0.0)
58
59
  ast (~> 2.4.0)
59
- powerpack (0.1.1)
60
- pry (0.11.3)
60
+ powerpack (0.1.2)
61
+ pry (0.12.2)
61
62
  coderay (~> 1.1.0)
62
63
  method_source (~> 0.9.0)
63
64
  rainbow (3.0.0)
64
- rake (12.3.0)
65
+ rake (12.3.2)
65
66
  rb-fsevent (0.10.3)
66
- rb-inotify (0.9.10)
67
- ffi (>= 0.5.0, < 2)
68
- rspec (3.7.0)
69
- rspec-core (~> 3.7.0)
70
- rspec-expectations (~> 3.7.0)
71
- rspec-mocks (~> 3.7.0)
72
- rspec-core (3.7.1)
73
- rspec-support (~> 3.7.0)
74
- rspec-expectations (3.7.0)
67
+ rb-inotify (0.10.0)
68
+ ffi (~> 1.0)
69
+ rspec (3.8.0)
70
+ rspec-core (~> 3.8.0)
71
+ rspec-expectations (~> 3.8.0)
72
+ rspec-mocks (~> 3.8.0)
73
+ rspec-core (3.8.0)
74
+ rspec-support (~> 3.8.0)
75
+ rspec-expectations (3.8.2)
75
76
  diff-lcs (>= 1.2.0, < 2.0)
76
- rspec-support (~> 3.7.0)
77
- rspec-mocks (3.7.0)
77
+ rspec-support (~> 3.8.0)
78
+ rspec-mocks (3.8.0)
78
79
  diff-lcs (>= 1.2.0, < 2.0)
79
- rspec-support (~> 3.7.0)
80
- rspec-support (3.7.1)
81
- rubocop (0.53.0)
80
+ rspec-support (~> 3.8.0)
81
+ rspec-support (3.8.0)
82
+ rubocop (0.63.1)
83
+ jaro_winkler (~> 1.5.1)
82
84
  parallel (~> 1.10)
83
- parser (>= 2.5)
85
+ parser (>= 2.5, != 2.5.1.1)
84
86
  powerpack (~> 0.1)
85
87
  rainbow (>= 2.2.2, < 4.0)
86
88
  ruby-progressbar (~> 1.7)
87
- unicode-display_width (~> 1.0, >= 1.0.1)
88
- rubocop-rspec (1.26.0)
89
- rubocop (>= 0.53.0)
90
- ruby-progressbar (1.9.0)
89
+ unicode-display_width (~> 1.4.0)
90
+ rubocop-rspec (1.32.0)
91
+ rubocop (>= 0.60.0)
92
+ ruby-progressbar (1.10.0)
91
93
  ruby_dep (1.5.0)
92
94
  shellany (0.0.1)
93
- thor (0.20.0)
95
+ thor (0.20.3)
94
96
  thread_safe (0.3.6)
95
97
  tzinfo (1.2.5)
96
98
  thread_safe (~> 0.1)
97
- unicode-display_width (1.3.0)
99
+ unicode-display_width (1.4.1)
98
100
 
99
101
  PLATFORMS
100
102
  ruby
101
103
 
102
104
  DEPENDENCIES
103
105
  activerecord
106
+ bundler
104
107
  byebug
105
108
  guard
106
109
  guard-rspec
@@ -112,4 +115,4 @@ DEPENDENCIES
112
115
  ziptz!
113
116
 
114
117
  BUNDLED WITH
115
- 1.16.6
118
+ 2.0.1
data/Gemfile.travis CHANGED
@@ -2,5 +2,6 @@ gemspec
2
2
  source 'https://rubygems.org'
3
3
 
4
4
  group :test do
5
+ gem 'bundler'
5
6
  gem 'rspec'
6
7
  end
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2018 Keith Morrison <keithm@infused.org>
1
+ Copyright (c) 2015-2019 Keith Morrison <keithm@infused.org>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Get time zone and daylight saving time for any US ZIP code.
8
8
 
9
- <i>ZIP codes are up to date as of <b>December 2018</b>.</i>
9
+ <i>ZIP codes are up to date as of <b>February 2019</b>.</i>
10
10
 
11
11
  ## Installation
12
12
 
@@ -74,7 +74,7 @@ Time zone names now reflect standard tz-database names.
74
74
 
75
75
  ## License
76
76
 
77
- Copyright (c) 2015-2018 Keith Morrison <<keithm@infused.org>>
77
+ Copyright (c) 2015-2019 Keith Morrison <<keithm@infused.org>>
78
78
 
79
79
  Permission is hereby granted, free of charge, to any person
80
80
  obtaining a copy of this software and associated documentation
data/Rakefile CHANGED
@@ -38,6 +38,8 @@ task :create_ziptz do
38
38
 
39
39
  data = {}
40
40
  ZipCode.find_each do |zip|
41
+ next if zip.time_zone.blank? || zip.day_light_saving.blank?
42
+
41
43
  data[zip.zip_code] ||= {}
42
44
  data[zip.zip_code][:tz] ||= zip.time_zone
43
45
  data[zip.zip_code][:dst] ||= zip.day_light_saving
data/lib/ziptz.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'yaml'
2
2
 
3
3
  class Ziptz
4
- VERSION = '2.0.6'.freeze
4
+ VERSION = '2.0.7'.freeze
5
5
 
6
6
  TZ_INFO = {
7
7
  '0' => {name: 'APO/FPO (time zone unknown)', offset: 0},
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.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith Morrison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-03 00:00:00.000000000 Z
11
+ date: 2019-02-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
@@ -51,8 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubyforge_project:
55
- rubygems_version: 2.7.7
54
+ rubygems_version: 3.0.2
56
55
  signing_key:
57
56
  specification_version: 4
58
57
  summary: TimeZone info for any 5-digit US zip code