wmap 2.5.5 → 2.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.rdoc → README.md} +47 -33
- data/bin/wmap +46 -32
- data/lib/wmap/domain_tracker/sub_domain.rb +67 -76
- data/lib/wmap/domain_tracker.rb +176 -208
- data/lib/wmap/host_tracker/primary_host.rb +9 -9
- data/lib/wmap/host_tracker.rb +314 -361
- data/lib/wmap/site_tracker/deactivated_site.rb +3 -4
- data/lib/wmap/site_tracker.rb +586 -640
- data/lib/wmap/utils/url_magic.rb +1 -1
- data/version.txt +2 -2
- data/wmap.gemspec +2 -2
- metadata +4 -5
- data/logs/wmap.log +0 -17
@@ -23,12 +23,11 @@ class DeactivatedSite < Wmap::SiteTracker
|
|
23
23
|
def initialize (params = {})
|
24
24
|
# Initialize the instance variables
|
25
25
|
@data_dir=params.fetch(:data_dir, File.dirname(__FILE__)+'/../../../data/')
|
26
|
-
@
|
27
|
-
@file_stores=params.fetch(:sites_file, @f_sites)
|
26
|
+
@sites_file=params.fetch(:sites_file, @data_dir + 'deactivated_sites')
|
28
27
|
@verbose=params.fetch(:verbose, false)
|
29
28
|
# Hash table to hold the site store
|
30
|
-
File.write(@
|
31
|
-
@known_sites=load_site_stores_from_file(@
|
29
|
+
File.write(@sites_file, "") unless File.exist?(@sites_file)
|
30
|
+
@known_sites=load_site_stores_from_file(@sites_file)
|
32
31
|
end
|
33
32
|
|
34
33
|
# Deactivate obsolete entrance from the live site store. Note this method is used by the parent class only
|