vore 0.2.5-x86_64-darwin → 0.2.6-x86_64-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: 677dfdb96b772683aaed9ef988f34783d0383c4293930dee4720fa366c78bf49
4
- data.tar.gz: 9a96d48d28172191687eaba5bab0790989249b8c410e0b69e7ccebb286fb7723
3
+ metadata.gz: 2ede3f51d145b7ddb4dd0c042013f51b46d7b99268aec6d7fe013c0be027687f
4
+ data.tar.gz: 4bdeb20c4621e9611fec13d30c19f2c06ce71267867e5ff484b579b786ea113f
5
5
  SHA512:
6
- metadata.gz: 951140392a08c8599842ef135229a97bc87b7c47adb27793b07e8d48cc45b59a2cb0a80825e4722aee33d2ebc4206070ac862390ba4e7cc18719bd05992b1b03
7
- data.tar.gz: 327a8aa155f4d39c3b32dd136105539d12997ae18814bf5f2251d8e948a6ec1d16e52e420409c5860c406a27c4327f418d35a95069b09aad7613c253474e8c2d
6
+ metadata.gz: 1be22361d6e06dce9c3e37494688f228f4bff053a75f974c0970601c87af6f184a2a1090a775ad61aa67eb284ee5bd14b4299991b63c030e607ee79c9470b60f
7
+ data.tar.gz: cb8e2cb3032554570ad0a3e94fda35deadfbe8ba81caa92d19018ca462e4e8226c27a155846a86fc701056548acff45cb160d6e49e286a4c0009ddc1df334778
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-darwin
6
6
  authors:
7
7
  - Garen J. Torikian