Class: CloudbleedChecker::Safari
- Defined in:
- lib/cloudbleed_checker/safari.rb
Constant Summary collapse
- TIMESTAMP_OFFSET =
978307200
Instance Method Summary collapse
Methods inherited from Browser
extract_domains, #extract_host, #extract_hosts, #history_db_glob, #history_db_path, #initialize, #with_database, #with_databases
Constructor Details
This class inherits a constructor from CloudbleedChecker::Browser
Instance Method Details
#extract_domains ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/cloudbleed_checker/safari.rb', line 9 def extract_domains with_database do |db| ds = db[:history_items]. select('DISTINCT(url), visit_time '). join(:history_visits). where('visit_time + ? >= ?', TIMESTAMP_OFFSET, CloudbleedChecker::INITIAL_VULNERABILITY_RELEASED.to_i). order(:visit_time) extract_hosts(ds, :url) end end |