diff --git a/lib/webdrivers/common.rb b/lib/webdrivers/common.rb index e2ae0c9d..4950f775 100644 --- a/lib/webdrivers/common.rb +++ b/lib/webdrivers/common.rb @@ -20,8 +20,6 @@ class NetworkError < StandardError class << self attr_accessor :proxy_addr, :proxy_port, :proxy_user, :proxy_pass, :install_dir - attr_writer :cache_time - # # Returns the amount of time (Seconds) the gem waits between two update checks. # @@ -29,6 +27,15 @@ def cache_time @cache_time || 0 end + # + # Set the amount of time (Seconds) the gem waits between two update checks. Disable + # Common.cache_warning. + # + def cache_time=(value) + Common.cache_warning = true + @cache_time = value + end + def logger @logger ||= Webdrivers::Logger.new end @@ -58,7 +65,7 @@ def net_http_ssl_fix class Common class << self attr_writer :required_version - attr_reader :cache_warning + attr_accessor :cache_warning def version Webdrivers.logger.deprecate("#{self.class}#version", "#{self.class}#required_version")