Skip to content

Commit 1681a03

Browse files
Fix rubyzip vuln. and upgrade to Optimist
1 parent 536cdfe commit 1681a03

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ PATH
44
free_zipcode_data (1.0.1)
55
colored (~> 1.2)
66
kiba (~> 2.0)
7+
optimist (~> 3.0)
78
ruby-progressbar (~> 1.9)
8-
rubyzip (~> 1.2)
9+
rubyzip (>= 1.2.2)
910
sqlite3 (~> 1.3)
10-
trollop (~> 2.1)
1111

1212
GEM
1313
remote: https://rubygems.org/
@@ -20,6 +20,7 @@ GEM
2020
json (2.1.0)
2121
kiba (2.0.0)
2222
method_source (0.8.2)
23+
optimist (3.0.0)
2324
parallel (1.12.1)
2425
parser (2.5.1.0)
2526
ast (~> 2.4.0)
@@ -54,15 +55,14 @@ GEM
5455
unicode-display_width (~> 1.0, >= 1.0.1)
5556
ruby-prof (0.17.0)
5657
ruby-progressbar (1.9.0)
57-
rubyzip (1.2.1)
58+
rubyzip (1.2.2)
5859
simplecov (0.16.1)
5960
docile (~> 1.1)
6061
json (>= 1.8, < 3)
6162
simplecov-html (~> 0.10.0)
6263
simplecov-html (0.10.2)
6364
slop (3.6.0)
6465
sqlite3 (1.3.13)
65-
trollop (2.1.2)
6666
unicode-display_width (1.3.2)
6767

6868
PLATFORMS
@@ -79,4 +79,4 @@ DEPENDENCIES
7979
simplecov (~> 0.16)
8080

8181
BUNDLED WITH
82-
1.16.1
82+
1.17.1

free_zipcode_data.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
3535

3636
spec.add_runtime_dependency 'colored', '~> 1.2'
3737
spec.add_runtime_dependency 'kiba', '~> 2.0'
38+
spec.add_runtime_dependency 'optimist', '~> 3.0'
3839
spec.add_runtime_dependency 'ruby-progressbar', '~> 1.9'
39-
spec.add_runtime_dependency 'rubyzip', '~> 1.2'
40+
spec.add_runtime_dependency 'rubyzip', '>= 1.2.2'
4041
spec.add_runtime_dependency 'sqlite3', '~> 1.3'
41-
spec.add_runtime_dependency 'trollop', '~> 2.1'
4242
end
4343
# rubocop:enable Metrics/BlockLength

lib/free_zipcode_data/runner.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
require 'colored'
4-
require 'trollop'
4+
require 'optimist'
55
require 'kiba'
66

77
require_relative '../etl/free_zipcode_data_job'
@@ -104,7 +104,7 @@ def extract_transform_load(datasource, database)
104104
# rubocop:disable Metrics/BlockLength
105105
# rubocop:disable Metrics/MethodLength
106106
def collect_args
107-
Trollop.options do
107+
Optimist.options do
108108
opt(
109109
:work_dir,
110110
'REQUIRED: Specify your work/build directory, where the SQLite and .csv files will be built',

0 commit comments

Comments
 (0)