jassa/hidemyass — pull request #1 by zenkay (2012-12-26 14:27:14+00:00)
Title: Alternative sources and generic connection

I made a bit of refactor in order to add more flexibility to choose the source of your proxy list.

Default behavior remains unchanged but now you can also specify a different endpoint (for example a custom search) or a path to a file (for people like me with daily subscription).

I also added a "new_connection" method to get a Faraday::Connection object with a random proxy so you can use it to make more than one request. Obviously you have to manage also HTTP errors externally.

I used Faraday (which wraps net/http) because seems to be more flexible and I like it but there is performance reason.