summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2020-08-01 12:33:05 -0600
committermo khan <mo.khan@gmail.com>2020-08-01 12:33:05 -0600
commitcce394463963abc30e5b53b6478106c60ac20166 (patch)
treee8c2eaea7dc67162baa0fac36df11ba0f917582c
parent7b6d1fa6dd536eb2f1097bbf27ecfba0004ed899 (diff)
Upgrade gems
-rw-r--r--.github/licensed/bundler/net-hippie.dep.yml2
-rw-r--r--.github/licensed/bundler/nokogiri.dep.yml2
-rw-r--r--.github/licensed/bundler/oj.dep.yml2
-rw-r--r--.github/licensed/bundler/thor.dep.yml2
-rw-r--r--.github/licensed/bundler/zeitwerk.dep.yml2
-rw-r--r--.rubocop.yml1
-rw-r--r--Gemfile.lock42
-rw-r--r--lib/spandx/core/http.rb12
-rw-r--r--spandx.gemspec2
-rw-r--r--spec/unit/ruby/parsers/gemfile_lock_spec.rb30
10 files changed, 49 insertions, 48 deletions
diff --git a/.github/licensed/bundler/net-hippie.dep.yml b/.github/licensed/bundler/net-hippie.dep.yml
index 1117db0..4c02d9e 100644
--- a/.github/licensed/bundler/net-hippie.dep.yml
+++ b/.github/licensed/bundler/net-hippie.dep.yml
@@ -1,6 +1,6 @@
---
name: net-hippie
-version: 0.3.2
+version: 1.0.1
type: bundler
summary: net/http for hippies. ☮️
homepage: https://github.com/mokhan/net-hippie/
diff --git a/.github/licensed/bundler/nokogiri.dep.yml b/.github/licensed/bundler/nokogiri.dep.yml
index 430ea76..77c7964 100644
--- a/.github/licensed/bundler/nokogiri.dep.yml
+++ b/.github/licensed/bundler/nokogiri.dep.yml
@@ -1,6 +1,6 @@
---
name: nokogiri
-version: 1.10.9
+version: 1.10.10
type: bundler
summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
homepage: https://nokogiri.org
diff --git a/.github/licensed/bundler/oj.dep.yml b/.github/licensed/bundler/oj.dep.yml
index 622bb0d..0db3190 100644
--- a/.github/licensed/bundler/oj.dep.yml
+++ b/.github/licensed/bundler/oj.dep.yml
@@ -1,6 +1,6 @@
---
name: oj
-version: 3.10.6
+version: 3.10.8
type: bundler
summary: A fast JSON parser and serializer.
homepage: http://www.ohler.com/oj
diff --git a/.github/licensed/bundler/thor.dep.yml b/.github/licensed/bundler/thor.dep.yml
index 3f5dbc4..0fd74e6 100644
--- a/.github/licensed/bundler/thor.dep.yml
+++ b/.github/licensed/bundler/thor.dep.yml
@@ -1,6 +1,6 @@
---
name: thor
-version: 0.20.3
+version: 1.0.1
type: bundler
summary: Thor is a toolkit for building powerful command-line interfaces.
homepage: http://whatisthor.com/
diff --git a/.github/licensed/bundler/zeitwerk.dep.yml b/.github/licensed/bundler/zeitwerk.dep.yml
index 73a040b..b1a3afe 100644
--- a/.github/licensed/bundler/zeitwerk.dep.yml
+++ b/.github/licensed/bundler/zeitwerk.dep.yml
@@ -1,6 +1,6 @@
---
name: zeitwerk
-version: 2.3.0
+version: 2.4.0
type: bundler
summary: Efficient and thread-safe constant autoloader
homepage: https://github.com/fxn/zeitwerk
diff --git a/.rubocop.yml b/.rubocop.yml
index 54503f6..3fc41c7 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -6,6 +6,7 @@ AllCops:
- 'pkg/**/*'
- 'spec/fixtures/**/*'
- 'vendor/bundle/**/*'
+ - 'vendor/ruby/**/*'
TargetRubyVersion: 2.5
Layout/ArgumentAlignment:
diff --git a/Gemfile.lock b/Gemfile.lock
index 8fab1ed..ff3bc3e 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -4,7 +4,7 @@ PATH
spandx (0.13.5)
addressable (~> 2.7)
bundler (>= 1.16, < 3.0.0)
- net-hippie (~> 0.3)
+ net-hippie (~> 1.0)
nokogiri (~> 1.10)
oj (~> 3.10)
parslet (~> 2.0)
@@ -23,18 +23,18 @@ GEM
benchmark-malloc (0.2.0)
benchmark-perf (0.6.0)
benchmark-trend (0.4.0)
- bundler-audit (0.6.1)
+ bundler-audit (0.7.0.1)
bundler (>= 1.2.0, < 3)
- thor (~> 0.18)
+ thor (>= 0.18, < 2)
byebug (11.1.3)
crack (0.4.3)
safe_yaml (~> 1.0.0)
- diff-lcs (1.3)
- dotenv (2.7.5)
+ diff-lcs (1.4.4)
+ dotenv (2.7.6)
faraday (1.0.1)
multipart-post (>= 1.2, < 3)
hashdiff (1.0.1)
- licensed (2.11.1)
+ licensed (2.12.2)
bundler (>= 1.10)
licensee (>= 9.14.0, < 10.0.0)
parallel (>= 0.18.0)
@@ -51,22 +51,22 @@ GEM
thor (>= 0.19, < 2.0)
mini_portile2 (2.4.0)
multipart-post (2.1.1)
- net-hippie (0.3.2)
- nokogiri (1.10.9)
+ net-hippie (1.0.1)
+ nokogiri (1.10.10)
mini_portile2 (~> 2.4.0)
octokit (4.18.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
- oj (3.10.6)
- parallel (1.19.1)
- parser (2.7.1.3)
- ast (~> 2.4.0)
+ oj (3.10.8)
+ parallel (1.19.2)
+ parser (2.7.1.4)
+ ast (~> 2.4.1)
parslet (2.0.0)
pathname-common_prefix (0.0.1)
public_suffix (4.0.5)
rainbow (3.0.0)
rake (13.0.1)
- rake-compiler (1.1.0)
+ rake-compiler (1.1.1)
rake
regexp_parser (1.7.1)
reverse_markdown (1.4.0)
@@ -90,19 +90,19 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.3)
- rubocop (0.85.1)
+ rubocop (0.88.0)
parallel (~> 1.10)
- parser (>= 2.7.0.1)
+ parser (>= 2.7.1.1)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.7)
rexml
- rubocop-ast (>= 0.0.3)
+ rubocop-ast (>= 0.1.0, < 1.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 2.0)
- rubocop-ast (0.0.3)
+ rubocop-ast (0.2.0)
parser (>= 2.7.0.1)
- rubocop-rspec (1.40.0)
- rubocop (>= 0.68.1)
+ rubocop-rspec (1.42.0)
+ rubocop (>= 0.87.0)
ruby-prof (1.4.1)
ruby-progressbar (1.10.1)
ruby-xxHash (0.4.0.1)
@@ -113,7 +113,7 @@ GEM
faraday (> 0.8, < 2.0)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
- thor (0.20.3)
+ thor (1.0.1)
tomlrb (1.3.0)
tty-cursor (0.7.1)
tty-spinner (0.9.3)
@@ -124,7 +124,7 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
- zeitwerk (2.3.0)
+ zeitwerk (2.4.0)
PLATFORMS
ruby
diff --git a/lib/spandx/core/http.rb b/lib/spandx/core/http.rb
index 2da2c6c..304bbb3 100644
--- a/lib/spandx/core/http.rb
+++ b/lib/spandx/core/http.rb
@@ -36,12 +36,12 @@ module Spandx
end
def self.default_driver
- @default_driver ||= Net::Hippie::Client.new.tap do |client|
- client.logger = Spandx.logger
- client.open_timeout = 1
- client.read_timeout = 5
- client.follow_redirects = 3
- end
+ @default_driver ||= Net::Hippie::Client.new(
+ follow_redirects: 3,
+ logger: Spandx.logger,
+ open_timeout: 1,
+ read_timeout: 5
+ )
end
private
diff --git a/spandx.gemspec b/spandx.gemspec
index 100db55..55bf28c 100644
--- a/spandx.gemspec
+++ b/spandx.gemspec
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'addressable', '~> 2.7'
spec.add_dependency 'bundler', '>= 1.16', '< 3.0.0'
- spec.add_dependency 'net-hippie', '~> 0.3'
+ spec.add_dependency 'net-hippie', '~> 1.0'
spec.add_dependency 'nokogiri', '~> 1.10'
spec.add_dependency 'oj', '~> 3.10'
spec.add_dependency 'parslet', '~> 2.0'
diff --git a/spec/unit/ruby/parsers/gemfile_lock_spec.rb b/spec/unit/ruby/parsers/gemfile_lock_spec.rb
index 321aeab..67d32d9 100644
--- a/spec/unit/ruby/parsers/gemfile_lock_spec.rb
+++ b/spec/unit/ruby/parsers/gemfile_lock_spec.rb
@@ -44,29 +44,29 @@ RSpec.describe Spandx::Ruby::Parsers::GemfileLock do
build('benchmark-malloc', '0.2.0', path),
build('benchmark-perf', '0.6.0', path),
build('benchmark-trend', '0.4.0', path),
- build('bundler-audit', '0.6.1', path),
+ build('bundler-audit', '0.7.0.1', path),
build('byebug', '11.1.3', path),
build('crack', '0.4.3', path),
- build('diff-lcs', '1.3', path),
- build('dotenv', '2.7.5', path),
+ build('diff-lcs', '1.4.4', path),
+ build('dotenv', '2.7.6', path),
build('faraday', '1.0.1', path),
build('hashdiff', '1.0.1', path),
- build('licensed', '2.11.1', path),
+ build('licensed', '2.12.2', path),
build('licensee', '9.14.0', path),
build('mini_portile2', '2.4.0', path),
build('multipart-post', '2.1.1', path),
- build('net-hippie', '0.3.2', path),
- build('nokogiri', '1.10.9', path),
+ build('net-hippie', '1.0.1', path),
+ build('nokogiri', '1.10.10', path),
build('octokit', '4.18.0', path),
- build('oj', '3.10.6', path),
- build('parallel', '1.19.1', path),
- build('parser', '2.7.1.3', path),
+ build('oj', '3.10.8', path),
+ build('parallel', '1.19.2', path),
+ build('parser', '2.7.1.4', path),
build('parslet', '2.0.0', path),
build('pathname-common_prefix', '0.0.1', path),
build('public_suffix', '4.0.5', path),
build('rainbow', '3.0.0', path),
build('rake', '13.0.1', path),
- build('rake-compiler', '1.1.0', path),
+ build('rake-compiler', '1.1.1', path),
build('regexp_parser', '1.7.1', path),
build('reverse_markdown', '1.4.0', path),
build('rexml', '3.2.4', path),
@@ -76,9 +76,9 @@ RSpec.describe Spandx::Ruby::Parsers::GemfileLock do
build('rspec-expectations', '3.9.2', path),
build('rspec-mocks', '3.9.1', path),
build('rspec-support', '3.9.3', path),
- build('rubocop', '0.85.1', path),
- build('rubocop-ast', '0.0.3', path),
- build('rubocop-rspec', '1.40.0', path),
+ build('rubocop', '0.88.0', path),
+ build('rubocop-ast', '0.2.0', path),
+ build('rubocop-rspec', '1.42.0', path),
build('ruby-prof', '1.4.1', path),
build('ruby-progressbar', '1.10.1', path),
build('ruby-xxHash', '0.4.0.1', path),
@@ -87,14 +87,14 @@ RSpec.describe Spandx::Ruby::Parsers::GemfileLock do
build('sawyer', '0.8.2', path),
build('spandx', Spandx::VERSION, path),
build('terminal-table', '1.8.0', path),
- build('thor', '0.20.3', path),
+ build('thor', '1.0.1', path),
build('tomlrb', '1.3.0', path),
build('tty-cursor', '0.7.1', path),
build('tty-spinner', '0.9.3', path),
build('unicode-display_width', '1.7.0', path),
build('vcr', '6.0.0', path),
build('webmock', '3.8.3', path),
- build('zeitwerk', '2.3.0', path),
+ build('zeitwerk', '2.4.0', path),
])
end