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
I find passing Pathname to Hashie::Mash.load() has been broken since 3.5.1 (works fine in 3.4.6)
hashie-3.5.1/lib/hashie/mash.rb:114:in `custom_writer': undefined method `to_sym' for #<Pathname:test.yml> (NoMethodError)
Did you mean? to_s
from /home/albb0920/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/hashie-3.5.1/lib/hashie/mash.rb:73:in `load'
Hi
I find passing Pathname to Hashie::Mash.load() has been broken since 3.5.1 (works fine in 3.4.6)
I believe this is introduced in this commit, as it assumes key respond to #to_sym without using convert_key()
e35e628#diff-167a475bc5a73269819928a9da362073R112
changing this line to "key_as_symbol = convert_key(key).to_sym" will fix it.
Should I submit a pull request?
Thank you
The text was updated successfully, but these errors were encountered: