vore 0.2.4-arm64-darwin → 0.2.5-arm64-darwin

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: e044d9c91a09ea2eb0f47dc8bb2d3a5e0abff2322dbc8c1f51cdb31084b63c24
4
- data.tar.gz: ba2577612e63bf1cace5bba728ebee3cc05ee6b61fd90b9c6a5fc96661530091
3
+ metadata.gz: bc0dadc7e35ecbe250d467f65c9c24443ed535523d4874476b27628ac680fabf
4
+ data.tar.gz: 83a30b479e3d23585e8f001dc9879402b97f4a921d22ef0644925a484822168a
5
5
  SHA512:
6
- metadata.gz: 4c28b91949af0f67c0956a82a84ce469b3ac21fc05eae0e6610397c5df4fb50edd2a69629836312fccda153931bfb323a06bde8100ed48255d8bbb2fae082bf4
7
- data.tar.gz: cd36d648f12d7b82e77ed5be02d6498c4b79a5ad35545756bec47a1e2f6ea71b8cf983445e088ced14427a0c2a299acf36c22a0f99e0927cd6f74c268415ff51
6
+ metadata.gz: aa3f33ea776f0b4775f650dacaaa350d9a9c0f4fa05cdf2380c2626f46c30d0cb6440972a6eab472e65ec86de1dc771bd9792d183ef5830a5fddc02716805c73
7
+ data.tar.gz: 5e3b7fb092abb1d341ac4514ea171affb6df9eace0d6a0183ef477ec3ae3f1c97a33517c05f09720bed51c0219bd2eb819f6653c613e683d45c37e3fec677d25
data/exe/vore-spider CHANGED
Binary file
data/lib/vore/crawler.rb CHANGED
@@ -31,7 +31,7 @@ module Vore
31
31
 
32
32
  output = %x(#{@executable} \
33
33
  --user-agent #{user_agent} \
34
- --delay 3000 \
34
+ --delay 3500 \
35
35
  --url #{website} \
36
36
  download \
37
37
  -t \
@@ -48,16 +48,18 @@ module Vore
48
48
  Dir.glob(File.join(output_dir, "**", "*")).each do |path|
49
49
  next unless File.file?(path)
50
50
 
51
+ results[:pages_visited] += 1
52
+
51
53
  html_file = File.read(path).force_encoding("UTF-8")
52
- rewritten_html_file = @selma.rewrite(html_file)
53
54
 
54
- results[:pages_visited] += 1
55
- if rewritten_html_file.empty?
55
+ if html_file.empty?
56
56
  results[:pages_unprocessed] += 1
57
57
  results[:unprocessed_pages] << path
58
58
  next
59
59
  end
60
60
 
61
+ rewritten_html_file = @selma.rewrite(html_file)
62
+
61
63
  # drops the first 3 parts of the path, which are "tmp", "vore", and the site name
62
64
  url_path = path.split(FILE_SEPERATOR)[3..].join("/")
63
65
 
data/lib/vore/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Vore
4
- VERSION = "0.2.4"
4
+ VERSION = "0.2.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Garen J. Torikian