recog 1.0.2 → 1.0.3

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
  SHA1:
3
- metadata.gz: 7190197345bed621faf776482bf3ca8ca6cb210b
4
- data.tar.gz: b57dc8676f172febcfa71c665ac577466b0e6a00
3
+ metadata.gz: 1068e270c672aa9dd8c71a5e8fb476c14cacf85a
4
+ data.tar.gz: f07af0de32f1d6472e2c9e965dc959ea9e65f6e4
5
5
  SHA512:
6
- metadata.gz: 0dcbd96cbeade329a7e83ff5491235a09184a264cc2aa9d6214882ef6c56a269428cc08622cc20dacafe1c2969d72edfd5b14b9928e21a0c4da23d3f347a1e8e
7
- data.tar.gz: 1a2f1daceec5aea2f18f0f34726ebeab296cc7622115a77ac4067fccf00fe3ccd9c8792f4b7c312ddecb6859e66e7f0449bffeb6a42758d64cc0d47a630afb3a
6
+ metadata.gz: 8c10dd6f2c687f34097cd0d437fccd5f72d68b944203d532b7cd2cde8eac463bf192e7a6e776ba6d73dfeedda33c9fe2dde7bb98622ddf4b1278c3a4d2de9a0f
7
+ data.tar.gz: d36667a29f1920331406a429925fa79043288ae5807fd18397164fed0e783e0c4aa80754c5e8bfdb55da99de22ca3f3667d9e9957c3664760a2324749d6c10e2
data/lib/recog/db.rb CHANGED
@@ -34,6 +34,8 @@ class DB
34
34
  xml = Nokogiri::XML(fd.read(fd.stat.size))
35
35
  end
36
36
 
37
+ raise "#{self.path} is invalid XML: #{xml.errors.join(',')}" unless xml.errors.empty?
38
+
37
39
  xml.xpath("/fingerprints").each do |fbase|
38
40
  if fbase['matches']
39
41
  @match_key = fbase['matches'].to_s
data/lib/recog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Recog
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rapid7 Research