vore 0.2.3-arm64-linux → 0.2.5-arm64-linux

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: e5b9fc7852a9bf9c1271f8b4ecba0a7144c2de434828ba5bd23c4ac27d7a12ad
4
- data.tar.gz: 4aa0500aada9cb3ba7ec3a9f71872f97ec48203f9eb3f04648a6999110fb3d45
3
+ metadata.gz: 23dad8fc88f81cb3583c080a4a606af50ebb6357100a469c13286f7834b326f6
4
+ data.tar.gz: 2ccb300c34fca54a2488fb31cefe3814058d13a564509bd49e6da459a74d6b13
5
5
  SHA512:
6
- metadata.gz: 0faeb9c79b755d507c2ff2eac02dd3fb83a2c1482a97a2b2742be1d84ce989993615c3cf4172f48566cb2871d61532d09ce9849420779e4c06308806a50d6a37
7
- data.tar.gz: cee36ddceb6c2baa131f8d7ff6da0a9f4f667f125f349a4fec86bb7ddfe3f65919bff0a9ca737728bad39165c05a9136af54b0267acf2ce83f39e68671de2dd1
6
+ metadata.gz: ab68468943157d4c4f878a111c043fa45c437c23a37787cdf26f1cf9e99d8fe8bb53872f46273872bd9e97efb130b78a293a83175f517b1e0c067c3ebe1b5a41
7
+ data.tar.gz: 2bddbd68a4dce6c5e4a8664f6c53798543e8ef1fec4cd257cdc0255ed24772fe09afca3ddf38b3887454ffa50faa3d99f8564190f30bb84c5c18ca2170f76be2
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.3"
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.3
4
+ version: 0.2.5
5
5
  platform: arm64-linux
6
6
  authors:
7
7
  - Garen J. Torikian
@@ -29,8 +29,7 @@ description:
29
29
  email:
30
30
  - gjtorikian@users.noreply.github.com
31
31
  executables: []
32
- extensions:
33
- - ext/vore/Cargo.toml
32
+ extensions: []
34
33
  extra_rdoc_files: []
35
34
  files:
36
35
  - Cargo.lock