free_zipcode_data 1.0.1 → 1.0.3

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: dfe97e5c2963d4c40da211303f3f3c31ad9b29253c70c3d3f2ff303d92d51c9a
4
- data.tar.gz: 38744e59531dcaf6dbc710a8343c7b97f72b3e35f4c48d73f499eacdfee6ea2b
3
+ metadata.gz: 689bda27853626d8130fd3d8bc525d481b3965b2b15f788d315a73569361d0f2
4
+ data.tar.gz: a84dce617a5db3ae60a0980edf8fec801bab405ce16dca6d28b22bd25c8e8722
5
5
  SHA512:
6
- metadata.gz: a65a8d0bfcece72ef8e8a93bb654f0c50436de7d3639f1fefca845f8e3a1082aba1ae0597be269967715eb2ebcc01090a5f714cb7ec10b141c9c041bdde9349a
7
- data.tar.gz: 0611b47e763d063e84029de8022fda6f2ffd2bceeb6f2ff8a6f04499a5d8814a700bd8b6b14520a627338947ff5aa171b20703d59a9afc7ab5d673b7949d2588
6
+ metadata.gz: cd80e10fb64b872e1deeb21b6419727ccb7f0553d4da4d4fa81430635e788c308c1f3f3baf780d142f39c41ee749bdd25e5e3165c50fc59fa7fbc96c96f93362
7
+ data.tar.gz: a20ec9167f0267fc52268e6bcd3a0679de2b00745ad5efc0670774493a05de8358def3e8318037d7ac711da8e62e290dd0defee24caf457e00d8abcb7ff18bbb
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.3
2
+ TargetRubyVersion: 2.7
3
3
 
4
4
  # Include gemspec and Rakefile
5
5
  Include:
@@ -19,8 +19,13 @@ AllCops:
19
19
  - 'stubs/**/*'
20
20
  - 'spec/support/shared_contexts/*'
21
21
 
22
+ NewCops: enable
23
+
24
+ ########################################
25
+ # Style Cops
26
+
22
27
  # Checks formatting of special comments
23
- CommentAnnotation:
28
+ Style/CommentAnnotation:
24
29
  Keywords:
25
30
  - TODO
26
31
  - FIXME
@@ -28,27 +33,15 @@ CommentAnnotation:
28
33
  - HACK
29
34
  - REVIEW
30
35
 
31
- ########################################
32
- # Style Cops
33
-
34
36
  Style/ClassVars:
35
37
  Enabled: false
36
38
 
37
39
  Style/Documentation:
38
40
  Enabled: false
39
41
 
40
- Style/FileName:
41
- Enabled: false
42
-
43
- Style/AlignParameters:
44
- EnforcedStyle: with_fixed_indentation
45
-
46
42
  Style/RegexpLiteral:
47
43
  Enabled: false
48
44
 
49
- Style/EmptyLinesAroundBlockBody:
50
- Enabled: false
51
-
52
45
  Style/RaiseArgs:
53
46
  Enabled: false
54
47
 
@@ -61,18 +54,18 @@ Style/PerlBackrefs:
61
54
  ########################################
62
55
  # Lint Cops
63
56
 
64
- Lint/Eval:
57
+ Lint/SuppressedException:
65
58
  Enabled: false
66
59
 
67
- Lint/HandleExceptions:
60
+ ########################################
61
+ # Security Cops
62
+
63
+ Security/Eval:
68
64
  Enabled: false
69
65
 
70
66
  ########################################
71
67
  # Metrics Cops
72
68
 
73
- Metrics/LineLength:
74
- Max: 110
75
-
76
69
  Metrics/MethodLength:
77
70
  CountComments: false # count full line comments?
78
71
  Max: 30
@@ -83,6 +76,17 @@ Metrics/ClassLength:
83
76
  Metrics/AbcSize:
84
77
  Enabled: false
85
78
 
86
- # rubocop:disable Metrics/AbcSize
87
- # rubocop:disable Metrics/MethodLength
88
- # rubocop:disable Metrics/BlockLength
79
+ ########################################
80
+ # Metrics Cops
81
+
82
+ Naming/FileName:
83
+ Enabled: false
84
+
85
+ ########################################
86
+ # Layout Cops
87
+
88
+ Layout/EmptyLinesAroundBlockBody:
89
+ Enabled: false
90
+
91
+ Layout/LineLength:
92
+ Max: 110
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.3
data/CHANGELOG CHANGED
@@ -1,3 +1,13 @@
1
+ *1.0.3* (August 25, 2024)
2
+
3
+ * Version bump for rexml CVE
4
+
5
+ *1.0.2* (January 11, 2019)
6
+
7
+ * Upgraded RubyZip gem version to address the reported vulnerability
8
+ * Upgrade from Trollop (now deprecated) to Optimist
9
+ * Fix issue #12 (No such file or directory @ rb_sysopen - country_lookup_table.yml) - thanks @srghma
10
+
1
11
  *1.0.1* (April 23, 2018)
2
12
 
3
13
  * Made it a gem with a command line executable bin/free_zipcode_data
data/Gemfile.lock CHANGED
@@ -1,82 +1,87 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- free_zipcode_data (1.0.1)
4
+ free_zipcode_data (1.0.3)
5
5
  colored (~> 1.2)
6
6
  kiba (~> 2.0)
7
+ optimist (~> 3.0)
7
8
  ruby-progressbar (~> 1.9)
8
- rubyzip (~> 1.2)
9
+ rubyzip (>= 1.2.2)
9
10
  sqlite3 (~> 1.3)
10
- trollop (~> 2.1)
11
11
 
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- ast (2.4.0)
16
- coderay (1.1.2)
15
+ ast (2.4.2)
16
+ coderay (1.1.3)
17
17
  colored (1.2)
18
- diff-lcs (1.3)
19
- docile (1.3.0)
20
- json (2.1.0)
21
- kiba (2.0.0)
22
- method_source (0.8.2)
23
- parallel (1.12.1)
24
- parser (2.5.1.0)
25
- ast (~> 2.4.0)
26
- powerpack (0.1.1)
27
- pry (0.10.4)
18
+ diff-lcs (1.4.4)
19
+ docile (1.4.0)
20
+ kiba (2.5.0)
21
+ method_source (0.9.2)
22
+ optimist (3.0.1)
23
+ parallel (1.21.0)
24
+ parser (3.0.2.0)
25
+ ast (~> 2.4.1)
26
+ pry (0.12.2)
28
27
  coderay (~> 1.1.0)
29
- method_source (~> 0.8.1)
30
- slop (~> 3.4)
31
- pry-nav (0.2.4)
32
- pry (>= 0.9.10, < 0.11.0)
28
+ method_source (~> 0.9.0)
29
+ pry-nav (0.3.0)
30
+ pry (>= 0.9.10, < 0.13.0)
33
31
  rainbow (3.0.0)
34
- rake (12.2.1)
35
- rspec (3.7.0)
36
- rspec-core (~> 3.7.0)
37
- rspec-expectations (~> 3.7.0)
38
- rspec-mocks (~> 3.7.0)
39
- rspec-core (3.7.1)
40
- rspec-support (~> 3.7.0)
41
- rspec-expectations (3.7.0)
32
+ rake (13.0.6)
33
+ regexp_parser (2.1.1)
34
+ rexml (3.3.6)
35
+ strscan
36
+ rspec (3.10.0)
37
+ rspec-core (~> 3.10.0)
38
+ rspec-expectations (~> 3.10.0)
39
+ rspec-mocks (~> 3.10.0)
40
+ rspec-core (3.10.1)
41
+ rspec-support (~> 3.10.0)
42
+ rspec-expectations (3.10.1)
42
43
  diff-lcs (>= 1.2.0, < 2.0)
43
- rspec-support (~> 3.7.0)
44
- rspec-mocks (3.7.0)
44
+ rspec-support (~> 3.10.0)
45
+ rspec-mocks (3.10.2)
45
46
  diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.7.0)
47
- rspec-support (3.7.1)
48
- rubocop (0.55.0)
47
+ rspec-support (~> 3.10.0)
48
+ rspec-support (3.10.3)
49
+ rubocop (1.22.3)
49
50
  parallel (~> 1.10)
50
- parser (>= 2.5)
51
- powerpack (~> 0.1)
51
+ parser (>= 3.0.0.0)
52
52
  rainbow (>= 2.2.2, < 4.0)
53
+ regexp_parser (>= 1.8, < 3.0)
54
+ rexml
55
+ rubocop-ast (>= 1.12.0, < 2.0)
53
56
  ruby-progressbar (~> 1.7)
54
- unicode-display_width (~> 1.0, >= 1.0.1)
55
- ruby-prof (0.17.0)
56
- ruby-progressbar (1.9.0)
57
- rubyzip (1.2.1)
58
- simplecov (0.16.1)
57
+ unicode-display_width (>= 1.4.0, < 3.0)
58
+ rubocop-ast (1.12.0)
59
+ parser (>= 3.0.1.1)
60
+ ruby-prof (0.18.0)
61
+ ruby-progressbar (1.11.0)
62
+ rubyzip (2.3.2)
63
+ simplecov (0.21.2)
59
64
  docile (~> 1.1)
60
- json (>= 1.8, < 3)
61
- simplecov-html (~> 0.10.0)
62
- simplecov-html (0.10.2)
63
- slop (3.6.0)
64
- sqlite3 (1.3.13)
65
- trollop (2.1.2)
66
- unicode-display_width (1.3.2)
65
+ simplecov-html (~> 0.11)
66
+ simplecov_json_formatter (~> 0.1)
67
+ simplecov-html (0.12.3)
68
+ simplecov_json_formatter (0.1.3)
69
+ sqlite3 (1.4.2)
70
+ strscan (3.1.0)
71
+ unicode-display_width (2.1.0)
67
72
 
68
73
  PLATFORMS
69
74
  ruby
70
75
 
71
76
  DEPENDENCIES
72
- bundler (~> 1.16)
77
+ bundler
73
78
  free_zipcode_data!
74
79
  pry-nav (~> 0.2)
75
- rake (~> 12.0)
80
+ rake (~> 13.0)
76
81
  rspec (~> 3.7)
77
- rubocop (~> 0.55)
82
+ rubocop
78
83
  ruby-prof (~> 0.17)
79
84
  simplecov (~> 0.16)
80
85
 
81
86
  BUNDLED WITH
82
- 1.16.1
87
+ 2.1.4
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require 'rubygems'
4
5
  require 'bundler/setup'
@@ -1,12 +1,11 @@
1
1
  # frozen_string_literal: true
2
- # coding: utf-8
3
2
 
4
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
5
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
5
  require 'free_zipcode_data/version'
7
6
 
8
- # rubocop:disable Metrics/BlockLength
9
7
  Gem::Specification.new do |spec|
8
+ spec.metadata = { 'rubygems_mfa_required' => 'true' }
10
9
  spec.name = 'free_zipcode_data'
11
10
  spec.version = FreeZipcodeData::VERSION
12
11
  spec.authors = ['Chris Blackburn', 'Chris McKnight']
@@ -19,25 +18,23 @@ Gem::Specification.new do |spec|
19
18
  spec.homepage = 'https://github.com/midwire/free_zipcode_data'
20
19
  spec.license = 'MIT'
21
20
 
22
- spec.required_ruby_version = '>= 2.3.0'
21
+ spec.required_ruby_version = Gem::Requirement.new(">= #{Bundler.root.join('.ruby-version').read.strip}")
23
22
  spec.files = `git ls-files -z`.split("\x0")
24
23
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
25
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
26
24
  spec.require_paths = ['lib']
27
25
 
28
- spec.add_development_dependency 'bundler', '~> 1.16'
26
+ spec.add_development_dependency 'bundler'
29
27
  spec.add_development_dependency 'pry-nav', '~> 0.2'
30
- spec.add_development_dependency 'rake', '~> 12.0'
28
+ spec.add_development_dependency 'rake', '~> 13.0'
31
29
  spec.add_development_dependency 'rspec', '~> 3.7'
32
- spec.add_development_dependency 'rubocop', '~> 0.55'
30
+ spec.add_development_dependency 'rubocop'
33
31
  spec.add_development_dependency 'ruby-prof', '~> 0.17'
34
32
  spec.add_development_dependency 'simplecov', '~> 0.16'
35
33
 
36
34
  spec.add_runtime_dependency 'colored', '~> 1.2'
37
35
  spec.add_runtime_dependency 'kiba', '~> 2.0'
36
+ spec.add_runtime_dependency 'optimist', '~> 3.0'
38
37
  spec.add_runtime_dependency 'ruby-progressbar', '~> 1.9'
39
- spec.add_runtime_dependency 'rubyzip', '~> 1.2'
38
+ spec.add_runtime_dependency 'rubyzip', '>= 1.2.2'
40
39
  spec.add_runtime_dependency 'sqlite3', '~> 1.3'
41
- spec.add_runtime_dependency 'trollop', '~> 2.1'
42
40
  end
43
- # rubocop:enable Metrics/BlockLength
@@ -25,6 +25,7 @@ module FreeZipcodeData
25
25
 
26
26
  def write(row)
27
27
  return nil unless row[:county]
28
+
28
29
  state_id = get_state_id(row[:short_state], row[:state])
29
30
  return nil unless state_id
30
31
 
@@ -18,17 +18,16 @@ module FreeZipcodeData
18
18
 
19
19
  def download
20
20
  return nil if !options.clobber && File.exist?(zipfile_path)
21
+
21
22
  FileUtils.mkdir_p(options.work_dir)
22
23
  @logger.info("Downloading: #{zipfile} from GeoNames...")
23
- open(zipfile_path, 'wb') do |file|
24
- file << open("#{BASE_URL}/#{zipfile}").read
24
+ File.open(zipfile_path, 'wb') do |file|
25
+ file << URI.parse("#{BASE_URL}/#{zipfile}").open(&:read)
25
26
  end
26
27
  end
27
28
 
28
29
  def datafile
29
- @datafile ||= begin
30
- datafile_with_headers
31
- end
30
+ @datafile ||= datafile_with_headers
32
31
  end
33
32
 
34
33
  private
@@ -51,6 +50,7 @@ module FreeZipcodeData
51
50
  Zip::File.open(zipfile_path) do |zip|
52
51
  zip.each do |entry|
53
52
  next if entry.name =~ /readme/i
53
+
54
54
  country_file = File.join(options.work_dir, entry.name)
55
55
  if File.exist?(country_file)
56
56
  if options[:clobber]
@@ -24,7 +24,11 @@ module FreeZipcodeData
24
24
  private
25
25
 
26
26
  def country_lookup_table
27
- @country_lookup_table ||= YAML.load_file('country_lookup_table.yml')
27
+ @country_lookup_table ||=
28
+ begin
29
+ path = File.expand_path('../../country_lookup_table.yml', __dir__)
30
+ YAML.load_file(path)
31
+ end
28
32
  end
29
33
 
30
34
  def select_first(sql)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'colored'
4
- require 'trollop'
4
+ require 'optimist'
5
5
  require 'kiba'
6
6
 
7
7
  require_relative '../etl/free_zipcode_data_job'
@@ -35,7 +35,9 @@ module FreeZipcodeData
35
35
 
36
36
  db_file = File.join(options.work_dir, 'free_zipcode_data.sqlite3')
37
37
  database = SqliteRam.new(db_file)
38
- configure_meta(database.conn, datasource.datafile)
38
+
39
+ line_count = datasource_line_count(datasource.datafile)
40
+ configure_meta(database.conn, line_count)
39
41
 
40
42
  %i[country state county zipcode].each { |t| initialize_table(t, database) }
41
43
 
@@ -50,7 +52,7 @@ module FreeZipcodeData
50
52
  end
51
53
 
52
54
  elapsed = Time.at(Time.now - start_time).utc.strftime('%H:%M:%S')
53
- logger.info("Processed #{datasource_line_count} zipcodes in [#{elapsed}].".yellow)
55
+ logger.info("Processed #{line_count} zipcodes in [#{elapsed}].".yellow)
54
56
  end
55
57
 
56
58
  private
@@ -67,14 +69,12 @@ module FreeZipcodeData
67
69
  end
68
70
 
69
71
  def datasource_line_count(filename)
70
- @datasource_line_count ||= begin
71
- count = File.foreach(filename).inject(0) { |c, _line| c + 1 }
72
- logger.verbose("Processing #{count} zipcodes in '#{filename}'...")
73
- count
74
- end
72
+ count = File.foreach(filename).inject(0) { |c, _line| c + 1 }
73
+ logger.verbose("Processing #{count} zipcodes in '#{filename}'...")
74
+ count
75
75
  end
76
76
 
77
- def configure_meta(database, datasource)
77
+ def configure_meta(database, line_count)
78
78
  schema = <<-SQL
79
79
  create table meta (
80
80
  id integer not null primary key,
@@ -86,7 +86,7 @@ module FreeZipcodeData
86
86
 
87
87
  sql = <<-SQL
88
88
  INSERT INTO meta (name, value)
89
- VALUES ('line_count', #{datasource_line_count(datasource)})
89
+ VALUES ('line_count', #{line_count})
90
90
  SQL
91
91
  database.execute(sql)
92
92
  end
@@ -104,7 +104,7 @@ module FreeZipcodeData
104
104
  # rubocop:disable Metrics/BlockLength
105
105
  # rubocop:disable Metrics/MethodLength
106
106
  def collect_args
107
- Trollop.options do
107
+ Optimist.options do
108
108
  opt(
109
109
  :work_dir,
110
110
  'REQUIRED: Specify your work/build directory, where the SQLite and .csv files will be built',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FreeZipcodeData
4
- VERSION = '1.0.1'.freeze
4
+ VERSION = '1.0.3'.freeze
5
5
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'readline'
4
4
 
5
+ require 'bundler/setup'
5
6
  require 'free_zipcode_data/version'
6
7
 
7
8
  module FreeZipcodeData
@@ -16,6 +17,7 @@ module FreeZipcodeData
16
17
  #:nocov:
17
18
  def self.config_file(filename = '.free_zipcode_data.yml')
18
19
  return root.join('spec', 'fixtures', filename) if current_environment == 'test'
20
+
19
21
  home = ENV.fetch('HOME')
20
22
  file = ENV.fetch('FZD_CONFIG_FILE', File.join(home, '.free_zipcode_data.yml'))
21
23
  FileUtils.touch(file)
@@ -65,9 +65,10 @@ namespace :version do
65
65
  end
66
66
 
67
67
  def module_name
68
- if PROJECT_NAME =~ /-/
68
+ case PROJECT_NAME
69
+ when /-/
69
70
  PROJECT_NAME.split('-').map(&:capitalize).join('::')
70
- elsif PROJECT_NAME =~ /_/
71
+ when /_/
71
72
  PROJECT_NAME.split('_').map(&:capitalize).join
72
73
  else
73
74
  PROJECT_NAME.capitalize
@@ -100,8 +101,9 @@ namespace :version do
100
101
  def update_readme_version_strings
101
102
  version_string = read_version.join('.')
102
103
  readme = open('README.md').read
103
- regex = /^\*\*Version: [0-9\.]+\*\*$/i
104
+ regex = /^\*\*Version: [0-9.]+\*\*$/i
104
105
  return nil unless readme =~ regex
106
+
105
107
  File.open('README.md', 'w') do |f|
106
108
  f.write(readme.gsub(regex, "**Version: #{version_string}**"))
107
109
  end
@@ -109,6 +111,7 @@ namespace :version do
109
111
 
110
112
  def changelog
111
113
  return @changelog_path if @changelog_path
114
+
112
115
  @changelog_path = File.join(PROJECT_ROOT, 'CHANGELOG')
113
116
  FileUtils.touch(@changelog_path)
114
117
  @changelog_path
@@ -158,9 +161,11 @@ namespace :version do
158
161
 
159
162
  def check_branch_and_warn
160
163
  return true unless current_branch == 'master'
164
+
161
165
  puts(branch_warning_message)
162
166
  while (line = $stdin.gets.chomp)
163
167
  return true if line =~ /[yY]/
168
+
164
169
  puts 'Aborting version bump.'
165
170
  return false
166
171
  end
data/spec/spec_helper.rb CHANGED
@@ -4,7 +4,7 @@ ENV['APP_ENV'] = 'test'
4
4
 
5
5
  require 'pry'
6
6
 
7
- Dir[root.join('spec/support/**/*.rb')].each { |f| require f }
7
+ Dir[Pathname.new(File.dirname(__FILE__)).parent.join('spec/support/**/*.rb')].sort.each { |f| require f }
8
8
 
9
9
  RSpec.configure do |config|
10
10
  config.expect_with :rspec do |expectations|
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.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Blackburn
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-24 00:00:00.000000000 Z
12
+ date: 2024-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '1.16'
20
+ version: '0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: '1.16'
27
+ version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pry-nav
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '12.0'
48
+ version: '13.0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '12.0'
55
+ version: '13.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rspec
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -71,16 +71,16 @@ dependencies:
71
71
  name: rubocop
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - "~>"
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '0.55'
76
+ version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - "~>"
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '0.55'
83
+ version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: ruby-prof
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -138,61 +138,61 @@ dependencies:
138
138
  - !ruby/object:Gem::Version
139
139
  version: '2.0'
140
140
  - !ruby/object:Gem::Dependency
141
- name: ruby-progressbar
141
+ name: optimist
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
144
  - - "~>"
145
145
  - !ruby/object:Gem::Version
146
- version: '1.9'
146
+ version: '3.0'
147
147
  type: :runtime
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: '1.9'
153
+ version: '3.0'
154
154
  - !ruby/object:Gem::Dependency
155
- name: rubyzip
155
+ name: ruby-progressbar
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - "~>"
159
159
  - !ruby/object:Gem::Version
160
- version: '1.2'
160
+ version: '1.9'
161
161
  type: :runtime
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - "~>"
166
166
  - !ruby/object:Gem::Version
167
- version: '1.2'
167
+ version: '1.9'
168
168
  - !ruby/object:Gem::Dependency
169
- name: sqlite3
169
+ name: rubyzip
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - "~>"
172
+ - - ">="
173
173
  - !ruby/object:Gem::Version
174
- version: '1.3'
174
+ version: 1.2.2
175
175
  type: :runtime
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - "~>"
179
+ - - ">="
180
180
  - !ruby/object:Gem::Version
181
- version: '1.3'
181
+ version: 1.2.2
182
182
  - !ruby/object:Gem::Dependency
183
- name: trollop
183
+ name: sqlite3
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - "~>"
187
187
  - !ruby/object:Gem::Version
188
- version: '2.1'
188
+ version: '1.3'
189
189
  type: :runtime
190
190
  prerelease: false
191
191
  version_requirements: !ruby/object:Gem::Requirement
192
192
  requirements:
193
193
  - - "~>"
194
194
  - !ruby/object:Gem::Version
195
- version: '2.1'
195
+ version: '1.3'
196
196
  description: |
197
197
  Free US and world-wide postal codes in SQLite and CSV format.
198
198
  Automated zipcode/postal code aggregation and processing for any needs.
@@ -207,6 +207,7 @@ files:
207
207
  - ".gitignore"
208
208
  - ".rspec"
209
209
  - ".rubocop.yml"
210
+ - ".ruby-version"
210
211
  - CHANGELOG
211
212
  - CODE_OF_CONDUCT.md
212
213
  - CONTRIBUTING.md
@@ -245,7 +246,8 @@ files:
245
246
  homepage: https://github.com/midwire/free_zipcode_data
246
247
  licenses:
247
248
  - MIT
248
- metadata: {}
249
+ metadata:
250
+ rubygems_mfa_required: 'true'
249
251
  post_install_message:
250
252
  rdoc_options: []
251
253
  require_paths:
@@ -254,17 +256,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
256
  requirements:
255
257
  - - ">="
256
258
  - !ruby/object:Gem::Version
257
- version: 2.3.0
259
+ version: 2.7.3
258
260
  required_rubygems_version: !ruby/object:Gem::Requirement
259
261
  requirements:
260
262
  - - ">="
261
263
  - !ruby/object:Gem::Version
262
264
  version: '0'
263
265
  requirements: []
264
- rubyforge_project:
265
- rubygems_version: 2.7.3
266
+ rubygems_version: 3.1.6
266
267
  signing_key:
267
268
  specification_version: 4
268
269
  summary: Free US and world-wide postal codes in SQLite and CSV format
269
- test_files:
270
- - spec/spec_helper.rb
270
+ test_files: []