balanced / balanced-ruby

Balanced API library in ruby.
MIT License
111 stars 47 forks source link

Ruby < 0.7.1 / Customers Error - Post Mortem #90

Closed mjallday closed 11 years ago

mjallday commented 11 years ago

On Thursday, May the 23rd at 5:48pm PST we expanded our deployment of the new Customers resource to include returning the customer object on all transactions as well as the marketplace.

Because the Ruby client tries to parse and instantiate objects within itself by inspecting the URI of each resource returned and given that the Customer object does not exist in versions of the library prior to 0.7.1, balanced-ruby would generate an error #<NameError: uninitialized constant Balanced::Customer>.

We have deployed a change to the API which will not serve customer resources old versions of the Ruby client library and we're going to change the way balanced-ruby tries to load objects (#89).