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 +4 -4
- data/lib/recog/db.rb +2 -0
- data/lib/recog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1068e270c672aa9dd8c71a5e8fb476c14cacf85a
|
4
|
+
data.tar.gz: f07af0de32f1d6472e2c9e965dc959ea9e65f6e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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