mailchimp/mailchimp-gem — pull request #3 by wnadeau (2012-02-04 19:47:59+00:00)
Title: API subclasses Base (and consequences)

So, api.rb (and tests) seemed to be doing a lot of work to have form-urlencoded parameters rather than JSON. (HTTParty handles hash/array -> JSON conversion automatically).

As such, the transition to a Base subclass that uses JSON took a little bit more effort.
But, it also brought to light a more solid contract to hold things together.

I nixed some of the tests that checked for escaped characters, since they don't seem necessary when using HTTParty's JSON conversion.

Also, throws_exceptions has just been ignored/removed for now. I know MC support would enjoy having app/consumer-specific information in the user-agent string (not just wrapper-specific), so I'll add throws_exceptions back in with a new @user_agent config var later.