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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 689bda27853626d8130fd3d8bc525d481b3965b2b15f788d315a73569361d0f2
4
- data.tar.gz: a84dce617a5db3ae60a0980edf8fec801bab405ce16dca6d28b22bd25c8e8722
3
+ metadata.gz: caeadd9186e20fdf53c5105a2b3d54ae7c5e6646e94181979736050d37a75f5e
4
+ data.tar.gz: f994867251dbd808ef031cd271b7fa7f25ae0b062909692e266af203fcb553ac
5
5
  SHA512:
6
- metadata.gz: cd80e10fb64b872e1deeb21b6419727ccb7f0553d4da4d4fa81430635e788c308c1f3f3baf780d142f39c41ee749bdd25e5e3165c50fc59fa7fbc96c96f93362
7
- data.tar.gz: a20ec9167f0267fc52268e6bcd3a0679de2b00745ad5efc0670774493a05de8358def3e8318037d7ac711da8e62e290dd0defee24caf457e00d8abcb7ff18bbb
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.3)
4
+ free_zipcode_data (1.0.5)
5
5
  colored (~> 1.2)
6
- kiba (~> 2.0)
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 (2.5.0)
20
+ kiba (4.0.0)
21
21
  method_source (0.9.2)
22
22
  optimist (3.0.1)
23
23
  parallel (1.21.0)
@@ -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', '~> 2.0'
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
- database: database,
19
- tablename: options[:country_tablename]
18
+ database: database,
19
+ tablename: options[:country_tablename]
20
20
 
21
21
  destination FreeZipcodeData::StateTable,
22
- database: database,
23
- tablename: options[:state_tablename]
22
+ database: database,
23
+ tablename: options[:state_tablename]
24
24
 
25
25
  destination FreeZipcodeData::CountyTable,
26
- database: database,
27
- tablename: options[:county_tablename]
26
+ database: database,
27
+ tablename: options[:county_tablename]
28
28
 
29
29
  destination FreeZipcodeData::ZipcodeTable,
30
- database: database,
31
- tablename: options[:zipcode_tablename]
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 SHORT_COMMUNITY LATITUDE LONGITUDE ACCURACY]
81
- CSV.foreach(unzipped_datafile, headers: false, col_sep: "\t", quote_char: '|') do |row|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FreeZipcodeData
4
- VERSION = '1.0.3'.freeze
4
+ VERSION = '1.0.5'.freeze
5
5
  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.3
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-08-25 00:00:00.000000000 Z
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: '2.0'
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: '2.0'
139
+ version: '4.0'
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: optimist
142
142
  requirement: !ruby/object:Gem::Requirement