vore 0.2.3-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: 1fb9a7a5a0d624b1c5a6829a03adbb7fa3deef8415ce92a28441c73c17261eb3
4
- data.tar.gz: b3345789f05d1eda10743a535f086c1ab8d7ffbd3014affe7170ea13e78e71fb
3
+ metadata.gz: bc0dadc7e35ecbe250d467f65c9c24443ed535523d4874476b27628ac680fabf
4
+ data.tar.gz: 83a30b479e3d23585e8f001dc9879402b97f4a921d22ef0644925a484822168a
5
5
  SHA512:
6
- metadata.gz: 9dae767278a15953dcbec4c350d98ca0acdfe0a04940b11d7088acfadb10354227db753783b7132a597dd817acbea234f54c82b7e10af1fb31afdc1d293f6211
7
- data.tar.gz: de6c5b45e9e1bc9ceb0520ca1e3ffcc86e4a8a9493fc7b078f8854b59c2a6b518024ee2802c98efff0d8b73281a67d92e4b157891797d64d9683a51e575aeaa2
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.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-darwin
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