jnunemaker/twitter — pull request #265 by laserlemon (2012-06-04 11:43:20+00:00)
Title: Connection memoization

Connections are being memoized incorrectly when they're created in `Twitter::Connection#connection` because the given options are being ignored. Currently, only `options[:endpoint]` affects the resulting Faraday connection so this change memoizes created connections once per given endpoint.

This issue would pop up if one were to make a rate limit request (one endpoint) and then use the same client to make a search request (different endpoint). The search request would be performed on the first (memoized) endpoint.