You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This likely occurs as a result of using Hashie 3.5+ , which introduced the warning "feature".
Reproducing
Call client.tickets.last (or anything, really)
Observe warning spam like the following:
You are setting a key that conflicts with a built-in method Hashie::Mash#class defined in
Kernel. This can cause unexpected behavior when accessing the key via as a property. You
can still access the key via the #[] method.
W, [2017-02-27T01:20:01.552016 #367] WARN -- : You are setting a key that conflicts with
a built-in method Hashie::Mash#class defined in Kernel. This can cause unexpected behavi
or when accessing the key via as a property. You can still access the key via the #[] met
hod.
Environment
Ruby 2.4.0
Hashie 3.5.5
This likely occurs as a result of using Hashie 3.5+ , which introduced the warning "feature".
Reproducing
client.tickets.last
(or anything, really)Expected behaviour
If the warnings are expected, silence them. See the section relating to
disable_warnings
in https://github.com/intridea/hashie .Workarounds
Set hashie logger to Rails logger or disable it entirely. This feels a little aggressive, though. e.g. https://github.com/berkshelf/berkshelf/pull/1668/files
The text was updated successfully, but these errors were encountered: