Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add net-http gem to gemfile #5

Closed
umitozturk opened this issue Jan 16, 2022 · 0 comments
Closed

add net-http gem to gemfile #5

umitozturk opened this issue Jan 16, 2022 · 0 comments

Comments

@umitozturk
Copy link
Owner

umitozturk commented Jan 16, 2022

/Users/${user}/.rbenv/versions/2.7.1/lib/ruby/2.7.0/net/protocol.rb:66: warning: already initialized constant Net::ProtocRetryError
/Users/${user}/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.2/lib/net/protocol.rb:68: warning: previous definition of ProtocRetryError was here
/Users/${user}/.rbenv/versions/2.7.1/lib/ruby/2.7.0/net/protocol.rb:206: warning: already initialized constant Net::BufferedIO::BUFSIZE
/Users/${user}/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.2/lib/net/protocol.rb:208: warning: previous definition of BUFSIZE was here
/Users/${user}.rbenv/versions/2.7.1/lib/ruby/2.7.0/net/protocol.rb:503: warning: already initialized constant Net::NetPrivate::Socket
/Users/${user}/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.2/lib/net/protocol.rb:504: warning: previous definition of Socket was here

When using Rails 7, I got these warnings in the rails outputs. I searched them and I found a solutions. adding gem "net-http" to Gemfile resolves warnings.

you can read more detail in here 🎉 :
ruby/net-imap#16 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant