ruby / forwardable

Provides delegation of specified methods to a designated object
BSD 2-Clause "Simplified" License
41 stars 17 forks source link

already initialized constant Forwardable::FORWARDABLE_VERSION #12

Open foonlyboy opened 4 years ago

foonlyboy commented 4 years ago

Hi at forwardable,

You might want to fix this one:

/usr/local/lib/ruby/gems/2.6.0/gems/forwardable-1.3.1/lib/forwardable/version.rb:3: warning: previous definition of VERSION was here
/usr/local/lib/ruby/2.6.0/forwardable.rb:117: warning: already initialized constant Forwardable::FORWARDABLE_VERSION

It actually is the last gem in my bundle that gives me a warning message like that. All the other gems cleaned that up already.

Let's bring this forward!

XhmikosR commented 4 years ago

@hsbt any chance we get this fixed? I know it's just a warning, but it's quite annoying to see it 🙂

foonlyboy commented 4 years ago

update your gems the most gems have now fixed this

If you still get this warning, that gem might be out of service.

On Fri, Apr 17, 2020 at 8:54 PM XhmikosR notifications@github.com wrote:

@hsbt https://github.com/hsbt any chance we get this fixed? I know it's just a warning, but it's quite annoying to see it 🙂

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ruby/forwardable/issues/12#issuecomment-615408742, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLJCHQTPAZ3TGIN4ZZEQ2DRNCQWRANCNFSM4KJL4MPQ .

XhmikosR commented 4 years ago

My gems are the latest ones.

foonlyboy commented 4 years ago

There must be some discussion around, how to avoid this warning from the gems. I believe it has been fixed in the forwardable gem? (not sure, didn't even try)

You'll see a lot of these warnings when working with rails in dev mode when you do: reload!

You can silence a lot of warnings with: env RUBYOPT='-W:no-deprecated' rails console

I'm not in charge of this problem. But tell me if you got it fixed.

~eike

On Sun, Apr 19, 2020 at 7:37 AM XhmikosR notifications@github.com wrote:

My gems are the latest ones.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ruby/forwardable/issues/12#issuecomment-616040440, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLJCHXDOZU7RHZ2PS5OKR3RNKEYFANCNFSM4KJL4MPQ .