Closed ryanfelton closed 8 years ago
This is also true for the request
> Desk.customer("123456789")
RuntimeError: missing dependency for FaradayMiddleware::Deashify: undefined method `type' for class `Hashie::Mash'
I think it's related to an change in Hashie: https://github.com/intridea/hashie/commit/61fc9a9cbce3999df515f4f291135b51372789c4
Having the same problem here.
Fixed by locking hashie at 3.4.0
Yup, same problem here. Fixed by locking Hashie gem at 3.4.1. Methods "type" and "id" are removed in Hashie version >= 3.4.2. See https://github.com/intridea/hashie/blob/master/CHANGELOG.md
Can the fix from Afonso be merged and submitted to rubygems source?
+1 please merge Afonso's fix and update rubygems
Done. Very sorry for the delay on this.
Maybe it was just the Mash.send :undef_method, :type
in https://github.com/chriswarren/desk/blob/master/lib/desk/deash.rb#L21 ?
When looking up a customer with email addresses or phone numbers that have a "type" associated with them, the gem fails to parse the response.
Yields this error:
RuntimeError: missing dependency for FaradayMiddleware::Deashify: undefined method
type' for classHashie::Mash'