ziptz 3.0.9 → 3.0.17
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/LICENSE +1 -1
- data/README.md +4 -4
- data/data/tz.data +0 -0
- data/lib/ziptz.rb +5 -1
- data/spec/ziptz_spec.rb +14 -0
- data/ziptz.gemspec +2 -2
- metadata +6 -12
- data/Gemfile +0 -18
- data/Gemfile.lock +0 -134
- data/Gemfile.travis +0 -7
- data/Guardfile +0 -8
- data/Rakefile +0 -18
- data/database.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b82917d057946bf70db6f984ff91943c15d6ec1431ab88e42e69eff7bad61581
|
4
|
+
data.tar.gz: 567412cce76d568b68342e74da46db7cc5c6d8ed777d617949c3dd88acf44cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25c13ad1068a69a2edb56c1acbb5d975a639b1a557670e8ee4e290109b6e5e96cb4ccc2906539eabee831fef0a1d2d702a4aa6c2af85f8f80ce73859e54b17f2
|
7
|
+
data.tar.gz: bf30b77b87008cd44521949b59bcdfe8244c535851c9b41bd7deca8828916171e87cad6ad313458e44a5ad96405350b20cfc299d1f4fcabd1ea5adae41affa6b
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
# Ziptz
|
2
2
|
[](https://rubygems.org/gems/ziptz)
|
3
|
-
[](https://github.com/infused/ziptz/actions/workflows/build.yml)
|
4
4
|
[](https://rubygems.org/gems/ziptz/)
|
5
5
|
[](https://github.com/infused/ziptz)
|
6
6
|
|
7
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>July 2023</b>.</i>
|
10
10
|
|
11
11
|
## Compatibility
|
12
12
|
|
13
13
|
Ziptz is tested to work with the following versions of Ruby:
|
14
14
|
|
15
|
-
* Ruby 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.x
|
15
|
+
* Ruby 2.3.x, 2.4.x, 2.5.x, 2.6.x, 2.7.x, 3.x
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
@@ -160,7 +160,7 @@ Time zone names now reflect standard tz-database names.
|
|
160
160
|
|
161
161
|
## License
|
162
162
|
|
163
|
-
Copyright (c) 2015-
|
163
|
+
Copyright (c) 2015-2023 Keith Morrison <<keithm@infused.org>>
|
164
164
|
|
165
165
|
Permission is hereby granted, free of charge, to any person
|
166
166
|
obtaining a copy of this software and associated documentation
|
data/data/tz.data
CHANGED
Binary file
|
data/lib/ziptz.rb
CHANGED
data/spec/ziptz_spec.rb
CHANGED
@@ -106,4 +106,18 @@ RSpec.describe Ziptz do
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
end
|
109
|
+
|
110
|
+
describe '#instance' do
|
111
|
+
context 'when given a 5 digit zip code' do
|
112
|
+
it 'matches the behavior of Ziptz.new' do
|
113
|
+
expect(Ziptz.instance.time_zone_name('97034')).to eq ziptz.time_zone_name('97034')
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
context 'when called twice' do
|
118
|
+
it 'returns identical instances' do
|
119
|
+
expect(Ziptz.instance.object_id).to eq Ziptz.instance.object_id
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
109
123
|
end
|
data/ziptz.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
|
14
14
|
s.rdoc_options = ['--charset=UTF-8']
|
15
15
|
s.extra_rdoc_files = ['README.md', 'LICENSE']
|
16
|
-
s.files = Dir['
|
17
|
-
s.test_files = Dir.glob('spec/**/*_spec.rb')
|
16
|
+
s.files = Dir['README.md', 'LICENSE', '{data,lib,spec}/**/*', 'ziptz.gemspec']
|
18
17
|
s.require_paths = ['lib']
|
19
18
|
s.required_ruby_version = '>= 2.0.0'
|
19
|
+
s.metadata['rubygems_mfa_required'] = 'true'
|
20
20
|
end
|
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.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keith Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-03 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
|
@@ -18,16 +18,10 @@ extra_rdoc_files:
|
|
18
18
|
- README.md
|
19
19
|
- LICENSE
|
20
20
|
files:
|
21
|
-
- Gemfile
|
22
|
-
- Gemfile.lock
|
23
|
-
- Gemfile.travis
|
24
|
-
- Guardfile
|
25
21
|
- LICENSE
|
26
22
|
- README.md
|
27
|
-
- Rakefile
|
28
23
|
- data/tz.data
|
29
24
|
- data/tzm.data
|
30
|
-
- database.yml
|
31
25
|
- lib/ziptz.rb
|
32
26
|
- spec/spec_helper.rb
|
33
27
|
- spec/ziptz_spec.rb
|
@@ -35,7 +29,8 @@ files:
|
|
35
29
|
homepage: http://github.com/infused/ziptz
|
36
30
|
licenses:
|
37
31
|
- MIT
|
38
|
-
metadata:
|
32
|
+
metadata:
|
33
|
+
rubygems_mfa_required: 'true'
|
39
34
|
post_install_message:
|
40
35
|
rdoc_options:
|
41
36
|
- "--charset=UTF-8"
|
@@ -52,9 +47,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
52
47
|
- !ruby/object:Gem::Version
|
53
48
|
version: '0'
|
54
49
|
requirements: []
|
55
|
-
rubygems_version: 3.
|
50
|
+
rubygems_version: 3.4.14
|
56
51
|
signing_key:
|
57
52
|
specification_version: 4
|
58
53
|
summary: TimeZone info for any 5-digit US zip code
|
59
|
-
test_files:
|
60
|
-
- spec/ziptz_spec.rb
|
54
|
+
test_files: []
|
data/Gemfile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
gemspec
|
2
|
-
source 'https://rubygems.org'
|
3
|
-
|
4
|
-
group :development, :test do
|
5
|
-
gem 'activerecord'
|
6
|
-
gem 'bundler'
|
7
|
-
gem 'byebug'
|
8
|
-
gem 'guard'
|
9
|
-
gem 'guard-rspec'
|
10
|
-
gem 'irb'
|
11
|
-
gem 'mysql2'
|
12
|
-
gem 'rake'
|
13
|
-
gem 'rspec'
|
14
|
-
gem 'rubocop'
|
15
|
-
gem 'rubocop-performance'
|
16
|
-
gem 'rubocop-rspec'
|
17
|
-
gem 'tty-spinner'
|
18
|
-
end
|
data/Gemfile.lock
DELETED
@@ -1,134 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
ziptz (3.0.9)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
activemodel (6.1.3.1)
|
10
|
-
activesupport (= 6.1.3.1)
|
11
|
-
activerecord (6.1.3.1)
|
12
|
-
activemodel (= 6.1.3.1)
|
13
|
-
activesupport (= 6.1.3.1)
|
14
|
-
activesupport (6.1.3.1)
|
15
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
16
|
-
i18n (>= 1.6, < 2)
|
17
|
-
minitest (>= 5.1)
|
18
|
-
tzinfo (~> 2.0)
|
19
|
-
zeitwerk (~> 2.3)
|
20
|
-
ast (2.4.2)
|
21
|
-
byebug (11.1.3)
|
22
|
-
coderay (1.1.3)
|
23
|
-
concurrent-ruby (1.1.8)
|
24
|
-
diff-lcs (1.4.4)
|
25
|
-
ffi (1.15.0)
|
26
|
-
formatador (0.2.5)
|
27
|
-
guard (2.16.2)
|
28
|
-
formatador (>= 0.2.4)
|
29
|
-
listen (>= 2.7, < 4.0)
|
30
|
-
lumberjack (>= 1.0.12, < 2.0)
|
31
|
-
nenv (~> 0.1)
|
32
|
-
notiffany (~> 0.0)
|
33
|
-
pry (>= 0.9.12)
|
34
|
-
shellany (~> 0.0)
|
35
|
-
thor (>= 0.18.1)
|
36
|
-
guard-compat (1.2.1)
|
37
|
-
guard-rspec (4.7.3)
|
38
|
-
guard (~> 2.1)
|
39
|
-
guard-compat (~> 1.1)
|
40
|
-
rspec (>= 2.99.0, < 4.0)
|
41
|
-
i18n (1.8.10)
|
42
|
-
concurrent-ruby (~> 1.0)
|
43
|
-
io-console (0.5.9)
|
44
|
-
irb (1.3.5)
|
45
|
-
reline (>= 0.1.5)
|
46
|
-
listen (3.5.1)
|
47
|
-
rb-fsevent (~> 0.10, >= 0.10.3)
|
48
|
-
rb-inotify (~> 0.9, >= 0.9.10)
|
49
|
-
lumberjack (1.2.8)
|
50
|
-
method_source (1.0.0)
|
51
|
-
minitest (5.14.4)
|
52
|
-
mysql2 (0.5.3)
|
53
|
-
nenv (0.3.0)
|
54
|
-
notiffany (0.1.3)
|
55
|
-
nenv (~> 0.1)
|
56
|
-
shellany (~> 0.0)
|
57
|
-
parallel (1.20.1)
|
58
|
-
parser (3.0.1.0)
|
59
|
-
ast (~> 2.4.1)
|
60
|
-
pry (0.14.1)
|
61
|
-
coderay (~> 1.1)
|
62
|
-
method_source (~> 1.0)
|
63
|
-
rainbow (3.0.0)
|
64
|
-
rake (13.0.3)
|
65
|
-
rb-fsevent (0.10.4)
|
66
|
-
rb-inotify (0.10.1)
|
67
|
-
ffi (~> 1.0)
|
68
|
-
regexp_parser (2.1.1)
|
69
|
-
reline (0.2.5)
|
70
|
-
io-console (~> 0.5)
|
71
|
-
rexml (3.2.5)
|
72
|
-
rspec (3.10.0)
|
73
|
-
rspec-core (~> 3.10.0)
|
74
|
-
rspec-expectations (~> 3.10.0)
|
75
|
-
rspec-mocks (~> 3.10.0)
|
76
|
-
rspec-core (3.10.1)
|
77
|
-
rspec-support (~> 3.10.0)
|
78
|
-
rspec-expectations (3.10.1)
|
79
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
80
|
-
rspec-support (~> 3.10.0)
|
81
|
-
rspec-mocks (3.10.2)
|
82
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
83
|
-
rspec-support (~> 3.10.0)
|
84
|
-
rspec-support (3.10.2)
|
85
|
-
rubocop (1.13.0)
|
86
|
-
parallel (~> 1.10)
|
87
|
-
parser (>= 3.0.0.0)
|
88
|
-
rainbow (>= 2.2.2, < 4.0)
|
89
|
-
regexp_parser (>= 1.8, < 3.0)
|
90
|
-
rexml
|
91
|
-
rubocop-ast (>= 1.2.0, < 2.0)
|
92
|
-
ruby-progressbar (~> 1.7)
|
93
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
94
|
-
rubocop-ast (1.4.1)
|
95
|
-
parser (>= 2.7.1.5)
|
96
|
-
rubocop-performance (1.11.1)
|
97
|
-
rubocop (>= 1.7.0, < 2.0)
|
98
|
-
rubocop-ast (>= 0.4.0)
|
99
|
-
rubocop-rspec (2.3.0)
|
100
|
-
rubocop (~> 1.0)
|
101
|
-
rubocop-ast (>= 1.1.0)
|
102
|
-
ruby-progressbar (1.11.0)
|
103
|
-
shellany (0.0.1)
|
104
|
-
thor (1.1.0)
|
105
|
-
tty-cursor (0.7.1)
|
106
|
-
tty-spinner (0.9.3)
|
107
|
-
tty-cursor (~> 0.7)
|
108
|
-
tzinfo (2.0.4)
|
109
|
-
concurrent-ruby (~> 1.0)
|
110
|
-
unicode-display_width (2.0.0)
|
111
|
-
zeitwerk (2.4.2)
|
112
|
-
|
113
|
-
PLATFORMS
|
114
|
-
x86_64-darwin-19
|
115
|
-
x86_64-darwin-21
|
116
|
-
|
117
|
-
DEPENDENCIES
|
118
|
-
activerecord
|
119
|
-
bundler
|
120
|
-
byebug
|
121
|
-
guard
|
122
|
-
guard-rspec
|
123
|
-
irb
|
124
|
-
mysql2
|
125
|
-
rake
|
126
|
-
rspec
|
127
|
-
rubocop
|
128
|
-
rubocop-performance
|
129
|
-
rubocop-rspec
|
130
|
-
tty-spinner
|
131
|
-
ziptz!
|
132
|
-
|
133
|
-
BUNDLED WITH
|
134
|
-
2.3.8
|
data/Gemfile.travis
DELETED
data/Guardfile
DELETED
data/Rakefile
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'bundler/setup'
|
2
|
-
Bundler.setup(:default, :development)
|
3
|
-
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
RSpec::Core::RakeTask.new :spec do |t|
|
6
|
-
t.rspec_opts = %w[--color]
|
7
|
-
end
|
8
|
-
|
9
|
-
RSpec::Core::RakeTask.new :specdoc do |t|
|
10
|
-
t.rspec_opts = %w[-fl]
|
11
|
-
end
|
12
|
-
|
13
|
-
task default: :spec
|
14
|
-
|
15
|
-
desc 'Open an irb session preloaded with this library'
|
16
|
-
task :console do
|
17
|
-
sh 'irb -r rubygems -I lib -r ziptz.rb'
|
18
|
-
end
|
data/database.yml
DELETED