wmap 2.6.5 → 2.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bbdb0202263c3525fce7e6c1f303d44e0c8310311e374c82392b7922df28292e
4
- data.tar.gz: 8ab717ff6400d2936e288f5df870a4ca95a87dfd698e4f161d225aa340abe2d8
3
+ metadata.gz: c4f814d2c0a04e5aedf5314a05a6de6ea59ff1a9cc6a71296bfcf94c301f9e67
4
+ data.tar.gz: 641c3dab030ff37bd0292f0ab2bfc2750c94d72051ddb46891ce490d917fb3b9
5
5
  SHA512:
6
- metadata.gz: 7caff9a7eb4127880bb795421126bd5e8b27a4a73045856eb1972526e231a4c5e3cce3e29c2f20c10374976c130aac9e98c51f77ec62e1aa4c4c0a53ee15ce56
7
- data.tar.gz: 608a63725be7551266f6f1b49259bc89e952a2553b4eb84c3c6b229a8d648fe35c77f69bfae2e90838a630a6d2c82dd37abefbe9bd02fac10df1792beca95d66
6
+ metadata.gz: 977683b1f6a166ce1da6036e465b88e71aa9445b20e9c80048a640f6bf1dacee26b3503123529b0e5241c862370b0bc03c108c94ccfdf2e63c4af809af28a5ea
7
+ data.tar.gz: bac9ed1cd639750040f035b88001244751d7a1e627594c750d38962c4cb8625035cd2e2ec64d40b9464989b33d33a8cc70b702d7f5d737e0373d104b3ada443e
@@ -23,6 +23,7 @@ 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
+ Dir.mkdir(@data_dir) unless Dir.exist?(@data_dir)
26
27
  @sites_file=params.fetch(:sites_file, @data_dir + 'deactivated_sites')
27
28
  @verbose=params.fetch(:verbose, false)
28
29
  # Hash table to hold the site store
@@ -21,6 +21,7 @@ class Wmap::UrlChecker
21
21
  # Set default instance variables
22
22
  @verbose=params.fetch(:verbose, false)
23
23
  @data_dir=params.fetch(:data_dir, File.dirname(__FILE__)+'/../../data/')
24
+ Dir.mkdir(@data_dir) unless Dir.exist?(@data_dir)
24
25
  @http_timeout=params.fetch(:http_timeout, 5000)
25
26
  @max_parallel=params.fetch(:max_parallel, 40)
26
27
  @ssl_version=nil
@@ -22,12 +22,13 @@ module Wmap
22
22
  def initialize (params = {})
23
23
  @verbose=params.fetch(:verbose, false)
24
24
  @data_dir=params.fetch(:data_dir, File.dirname(__FILE__)+'/../../../data/')
25
+ Dir.mkdir(@data_dir) unless Dir.exist?(@data_dir)
25
26
  # Set default instance variables
26
27
  @signature_file=File.dirname(__FILE__) + '/../../../settings/' + 'tag_signatures'
27
28
  file=params.fetch(:signature_file, @signature_file)
28
29
  @tag_signatures=load_from_file(file)
29
30
  @tag_file=params.fetch(:tag_file, @data_dir + 'tag_sites')
30
- File.write(file2, "") unless File.exist?(@tag_file)
31
+ File.write(@tag_file, "") unless File.exist?(@tag_file)
31
32
  # load the known tag store
32
33
  load_tag_from_file(@tag_file)
33
34
  @landings = Hash.new # cache landing page to reduce redundant browsing
data/version.txt CHANGED
@@ -3,7 +3,7 @@
3
3
  ###############################################################################
4
4
  package = wmap
5
5
  # wmap version 2.0 == web_discovery version 1.5.3
6
- version = 2.6.5
6
+ version = 2.6.6
7
7
  date = 2019-11-12
8
8
 
9
9
  author = Sam (Yang) Li
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wmap
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.5
4
+ version: 2.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam (Yang) Li