vore 0.2.5-x86_64-linux → 0.2.6-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: 538139e45fe5d9fe50429fa066e9b4ae0b818b3ae93cc6ad666c51f4a7c47725
4
- data.tar.gz: 3de51893c08f5ba27e4cddafd26f1bba9f18313f76842ce8e4582703ddcccf37
3
+ metadata.gz: 53cb93bee6f3736369589c1eaaf7b739ca6f898e814d33d4ff747f4daa2077fc
4
+ data.tar.gz: 100cf434502ce236ce6f31aa24c110ed43274043f1ea7a678f4cad9905079e7a
5
5
  SHA512:
6
- metadata.gz: c67260e81df507b35ee5b0cf9464b712abc33ebcfc9de31a25618246c536c38f7c4485607d10fc7c5ab88dadcb71971a431bee0a6c81826f40f5af708ce488e3
7
- data.tar.gz: 541d743288ede8a86025e21d023efceadd5efd6dff75e5cf82b5f123564243adf40a6301d17185378223cd67395a07d4559dafdcd660c9195a73700df2e752dd
6
+ metadata.gz: b66ad8d522524716bc1f5a904b428934ef5006916cad623893301569afcfd7b255c021d1bc3f1205cd757365a165b6b88dfe278e9979aba4d900fc913f074d73
7
+ data.tar.gz: 9e176c95395e40503fc8a5af9f014a5befc37a63d04b71a0d64549be100700b92abbb439f57be4ab4699a3543ad2ca32203095b83e402774b35e70ae58d6cde2
data/exe/vore-spider CHANGED
Binary file
data/lib/vore/crawler.rb CHANGED
@@ -51,14 +51,22 @@ module Vore
51
51
  results[:pages_visited] += 1
52
52
 
53
53
  html_file = File.read(path).force_encoding("UTF-8")
54
+ rewritten_html_file = ""
54
55
 
55
56
  if html_file.empty?
57
+ Vore.logger.warn("HTML file empty: #{path}")
56
58
  results[:pages_unprocessed] += 1
57
59
  results[:unprocessed_pages] << path
58
60
  next
59
61
  end
60
62
 
61
- rewritten_html_file = @selma.rewrite(html_file)
63
+ begin
64
+ rewritten_html_file = @selma.rewrite(html_file)
65
+ rescue StandardError => e
66
+ Vore.logger.warn("Error rewriting #{path}: #{e}")
67
+ results[:pages_unprocessed] += 1
68
+ next
69
+ end
62
70
 
63
71
  # drops the first 3 parts of the path, which are "tmp", "vore", and the site name
64
72
  url_path = path.split(FILE_SEPERATOR)[3..].join("/")
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.5"
4
+ VERSION = "0.2.6"
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.5
4
+ version: 0.2.6
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Garen J. Torikian