Fixes an issue with --cache-ttl being a Strig instead of an integer
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
class Browser
|
class Browser
|
||||||
module Options
|
module Options
|
||||||
|
|
||||||
attr_accessor :cache_ttl, :request_timeout, :connect_timeout
|
attr_accessor :request_timeout, :connect_timeout
|
||||||
attr_reader :basic_auth, :proxy, :proxy_auth, :throttle
|
attr_reader :basic_auth, :cache_ttl, :proxy, :proxy_auth, :throttle
|
||||||
attr_writer :user_agent
|
attr_writer :user_agent
|
||||||
|
|
||||||
# Sets the Basic Authentification credentials
|
# Sets the Basic Authentification credentials
|
||||||
@@ -25,6 +25,10 @@ class Browser
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def cache_ttl=(ttl)
|
||||||
|
@cache_ttl = ttl.to_i
|
||||||
|
end
|
||||||
|
|
||||||
# @return [ Integer ]
|
# @return [ Integer ]
|
||||||
def max_threads
|
def max_threads
|
||||||
@max_threads || 1
|
@max_threads || 1
|
||||||
|
|||||||
Reference in New Issue
Block a user