chingor13/json_api_client — pull request #2 by chingor13 (2014-04-15 17:58:30+00:00)
Title: Error block

When a call to Resource.create(attributes) fails, we were returning nil without access to any error messages.

Adding ability to pass a block to the create method which yields the response object.

Also, abstracting some of the error checking code and adding failure tests