fphilipe / premailer-rails

CSS styled emails without the hassle.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning: already initialized constant Net::ProtocRetryError

onurkucukkece opened this issue · comments

After the gem update to v1.12.0, we started to get below warnings on net-protocol gem.

.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:68: warning: already initialized constant Net::ProtocRetryError
.rbenv/versions/2.7.5/lib/ruby/2.7.0/net/protocol.rb:66: warning: previous definition of ProtocRetryError was here
.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:208: warning: already initialized constant Net::BufferedIO::BUFSIZE
.rbenv/versions/2.7.5/lib/ruby/2.7.0/net/protocol.rb:206: warning: previous definition of BUFSIZE was here
.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/net-protocol-0.1.3/lib/net/protocol.rb:504: warning: already initialized constant Net::NetPrivate::Socket
.rbenv/versions/2.7.5/lib/ruby/2.7.0/net/protocol.rb:503: warning: previous definition of Socket was here

For more context, please see ruby/net-imap#16

I've been having the same issue with 1.12.0, and the fixes proposed in ruby/net-imap#16 did not fix it. Even though adding some more gems did fix it (including uri specific version), unfortunately if there is any gem with a path: ... argument in the Gemfile, that now generates huge amounts of warnings. Simply rolling back to 1.11.1 fixes everything.