free_zipcode_data 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +8 -0
- data/Gemfile.lock +3 -3
- data/free_zipcode_data.gemspec +1 -1
- data/lib/etl/free_zipcode_data_job.rb +8 -8
- data/lib/free_zipcode_data/data_source.rb +3 -2
- data/lib/free_zipcode_data/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: caeadd9186e20fdf53c5105a2b3d54ae7c5e6646e94181979736050d37a75f5e
|
4
|
+
data.tar.gz: f994867251dbd808ef031cd271b7fa7f25ae0b062909692e266af203fcb553ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf016f5695c5f62a1e7c33096550f4a620654f3c8f87f53f5cf672f983c8a347f2b7276e08c2da8a3039443cae2d5c2254568581de4db093213d33cb1cb1d9f1
|
7
|
+
data.tar.gz: e37864e45ab0afc419e4bb99356308f012fa26b4a5728bc6d8c8346a21d6616de7494363953505e0d752738781e025c3828589c6321df937a93e0d454e7cd98a
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
*1.0.5* (October 04, 2024)
|
2
|
+
|
3
|
+
* Fix a data parsing error where foreign countries use the pipe symbol in city names
|
4
|
+
|
5
|
+
*1.0.4* (September 18, 2024)
|
6
|
+
|
7
|
+
* Upgrade Kiba Gem - Now works with Ruby 3.x
|
8
|
+
|
1
9
|
*1.0.3* (August 25, 2024)
|
2
10
|
|
3
11
|
* Version bump for rexml CVE
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
free_zipcode_data (1.0.
|
4
|
+
free_zipcode_data (1.0.5)
|
5
5
|
colored (~> 1.2)
|
6
|
-
kiba (~>
|
6
|
+
kiba (~> 4.0)
|
7
7
|
optimist (~> 3.0)
|
8
8
|
ruby-progressbar (~> 1.9)
|
9
9
|
rubyzip (>= 1.2.2)
|
@@ -17,7 +17,7 @@ GEM
|
|
17
17
|
colored (1.2)
|
18
18
|
diff-lcs (1.4.4)
|
19
19
|
docile (1.4.0)
|
20
|
-
kiba (
|
20
|
+
kiba (4.0.0)
|
21
21
|
method_source (0.9.2)
|
22
22
|
optimist (3.0.1)
|
23
23
|
parallel (1.21.0)
|
data/free_zipcode_data.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_development_dependency 'simplecov', '~> 0.16'
|
33
33
|
|
34
34
|
spec.add_runtime_dependency 'colored', '~> 1.2'
|
35
|
-
spec.add_runtime_dependency 'kiba', '~>
|
35
|
+
spec.add_runtime_dependency 'kiba', '~> 4.0'
|
36
36
|
spec.add_runtime_dependency 'optimist', '~> 3.0'
|
37
37
|
spec.add_runtime_dependency 'ruby-progressbar', '~> 1.9'
|
38
38
|
spec.add_runtime_dependency 'rubyzip', '>= 1.2.2'
|
@@ -15,20 +15,20 @@ module ETL
|
|
15
15
|
source CsvSource, filename: country_file, quote_char: '"', delimeter: ','
|
16
16
|
|
17
17
|
destination FreeZipcodeData::CountryTable,
|
18
|
-
|
19
|
-
|
18
|
+
database: database,
|
19
|
+
tablename: options[:country_tablename]
|
20
20
|
|
21
21
|
destination FreeZipcodeData::StateTable,
|
22
|
-
|
23
|
-
|
22
|
+
database: database,
|
23
|
+
tablename: options[:state_tablename]
|
24
24
|
|
25
25
|
destination FreeZipcodeData::CountyTable,
|
26
|
-
|
27
|
-
|
26
|
+
database: database,
|
27
|
+
tablename: options[:county_tablename]
|
28
28
|
|
29
29
|
destination FreeZipcodeData::ZipcodeTable,
|
30
|
-
|
31
|
-
|
30
|
+
database: database,
|
31
|
+
tablename: options[:zipcode_tablename]
|
32
32
|
|
33
33
|
post_process do
|
34
34
|
logger.verbose('Finished generating table data...')
|
@@ -77,8 +77,9 @@ module FreeZipcodeData
|
|
77
77
|
end
|
78
78
|
@logger.verbose("Preparing: #{filename} for processing...")
|
79
79
|
CSV.open(filename, 'w') do |outfile|
|
80
|
-
outfile << %w[COUNTRY POSTAL_CODE CITY STATE SHORT_STATE COUNTY SHORT_COUNTY COMMUNITY
|
81
|
-
|
80
|
+
outfile << %w[COUNTRY POSTAL_CODE CITY STATE SHORT_STATE COUNTY SHORT_COUNTY COMMUNITY
|
81
|
+
SHORT_COMMUNITY LATITUDE LONGITUDE ACCURACY]
|
82
|
+
CSV.foreach(unzipped_datafile, headers: false, col_sep: "\t", quote_char: '^') do |row|
|
82
83
|
outfile << row
|
83
84
|
end
|
84
85
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: free_zipcode_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Blackburn
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -129,14 +129,14 @@ dependencies:
|
|
129
129
|
requirements:
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
132
|
+
version: '4.0'
|
133
133
|
type: :runtime
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
139
|
+
version: '4.0'
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: optimist
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|