vore 0.2.3-x86_64-linux → 0.2.5-x86_64-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: ed9a06d089154810a28009ef0d4a44bab9a5413f5a1923e2f3caef3d94f0848e
4
- data.tar.gz: 452be4ea2832f89db9378c1d5b9e1e80084044a73010f6aca4eaf5349f9dbb71
3
+ metadata.gz: 538139e45fe5d9fe50429fa066e9b4ae0b818b3ae93cc6ad666c51f4a7c47725
4
+ data.tar.gz: 3de51893c08f5ba27e4cddafd26f1bba9f18313f76842ce8e4582703ddcccf37
5
5
  SHA512:
6
- metadata.gz: 277e2edc213e9761e61549711731cb0ca40e69b6cf4ac802dd1ae4869e230acad9588f54ec71fb38a0b8a666bc576bb66f352552a49084c3f2c3404ca63509f1
7
- data.tar.gz: 6b00eb40eb4717b731907c7de4b04618ad488018c441559bbda987ae2e0aa6201f4d1fa21489c85bdfeccb02d54f4e2a08ccd32b4694b1f9f6af1c464553e7ee
6
+ metadata.gz: c67260e81df507b35ee5b0cf9464b712abc33ebcfc9de31a25618246c536c38f7c4485607d10fc7c5ab88dadcb71971a431bee0a6c81826f40f5af708ce488e3
7
+ data.tar.gz: 541d743288ede8a86025e21d023efceadd5efd6dff75e5cf82b5f123564243adf40a6301d17185378223cd67395a07d4559dafdcd660c9195a73700df2e752dd
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.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: x86_64-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