Skip to content

Commit

Permalink
Add dependency on net-http gem
Browse files Browse the repository at this point in the history
As described in https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/, Ruby
3.0.0 promoted net-http from stdlib. Adding this as a dependency avoids
"aleady initialized constant errors" if net-imap or some other gem is
included. See ruby/net-imap#16 (comment) for
more details.
  • Loading branch information
stanhu committed Mar 19, 2021
1 parent 9534fd1 commit 8bbee95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions faraday-net_http.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Gem::Specification.new do |spec|
spec.files = Dir.glob('lib/**/*') + %w[README.md LICENSE.md]
spec.require_paths = ['lib']

spec.add_dependency 'net-http', '~> 0.1'

spec.add_development_dependency 'faraday', '~> 1.0'

spec.add_development_dependency 'bundler', '~> 2.0'
Expand Down

0 comments on commit 8bbee95

Please sign in to comment.