square/retrofit — pull request #39 by Udinic (2012-07-03 00:21:06+00:00)
Title: Adding support for synchronous method calling

I made a change to support calling a method synchronously. This is done by omitting the Callback argument, and setting a return value for the method.

I decided to do so since sometimes I call methods from the UI, where async calling is needed, but sometimes I call them from a Service, where all the Callbacks make my code very complex (especially if there are several calls in a row).

I've added some tests to check that everything is alright.