Currently, the gem will fail when the URL passed in to shorten doesn't exactly match the URL returned from the Bitly API. An example of this is when a query parameter is passed in with a space as the value, Bitly's API will return it without the space included, causing the gem to throw an exception.
Currently, the gem will fail when the URL passed in to shorten doesn't exactly match the URL returned from the Bitly API. An example of this is when a query parameter is passed in with a space as the value, Bitly's API will return it without the space included, causing the gem to throw an exception.