Skip to content

Commit

Permalink
Specify net-http dependency to avoid constant init errors
Browse files Browse the repository at this point in the history
This avoids the "already initialized constant" errors that
evidently result from faraday's dependencies requiring
two different versions of net-protocol. For discussion see:
ruby/net-imap#16 (comment)
  • Loading branch information
thatbudakguy committed Jan 31, 2022
1 parent 0bc2b5d commit 80d7684
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ end

gem 'nokogiri'
gem 'faraday'
gem 'net-http'

# Use Capistrano for deployment
group :deployment do
Expand Down
10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,13 @@ GEM
matrix (0.4.2)
method_source (1.0.0)
mini_mime (1.1.2)
mini_portile2 (2.7.1)
minitest (5.15.0)
msgpack (1.4.4)
mysql2 (0.5.3)
net-http (0.2.0)
net-protocol
uri
net-imap (0.2.3)
digest
net-protocol
Expand All @@ -222,6 +226,9 @@ GEM
timeout
net-ssh (6.1.0)
nio4r (2.5.8)
nokogiri (1.13.1)
mini_portile2 (~> 2.7.0)
racc (~> 1.4)
nokogiri (1.13.1-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.13.1-x86_64-linux)
Expand Down Expand Up @@ -356,6 +363,7 @@ GEM
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.1.0)
uri (0.11.0)
web-console (4.2.0)
actionview (>= 6.0.0)
activemodel (>= 6.0.0)
Expand All @@ -375,6 +383,7 @@ GEM
zeitwerk (2.5.4)

PLATFORMS
ruby
x86_64-darwin-20
x86_64-linux

Expand All @@ -396,6 +405,7 @@ DEPENDENCIES
jbuilder
jquery-rails
mysql2
net-http
nokogiri
okcomputer
parallel
Expand Down

0 comments on commit 80d7684

Please sign in to comment.