wmap 2.5.5 → 2.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- @f_sites=@data_dir + 'deactivated_sites'
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(@file_stores, "") unless File.exist?(@file_stores)
31
- @known_sites=load_site_stores_from_file(@file_stores)
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