lib/active_proxy/fetcher.rb in active_proxy-1.0.0 vs lib/active_proxy/fetcher.rb in active_proxy-1.0.1

- old
+ new

@@ -39,11 +39,11 @@ return proxy unless proxy.nil? cache_store.delete(cache_key("list")) current_proxy end - def user_agent - UserAgentRandomizer::UserAgent.fetch.string + def user_agent(options = {}) + UserAgentRandomizer::UserAgent.fetch(options).string end private def cache_key(item_name)