libis-format 0.9.36 → 0.9.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/libis/format/identifier.rb +1 -1
- data/lib/libis/format/version.rb +1 -1
- data/spec/identifier_spec.rb +15 -5
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 675cfff96c503a9e4815f6b8f63521ebef16e18d
|
|
4
|
+
data.tar.gz: c7194c4d45dec03b46fb82fe77ee627e820e01fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d88b635b271233ad6123d42998760ee032219fc5e1a1beb76154e49a2cafc1cab5fd6dbe7d95b093dd624b3935ffe21edc863e3f8767a023d1b5c25575d6441f
|
|
7
|
+
data.tar.gz: e63ae8359c4278fc5df9736ffd58f65918e09c461d1b9653327df72d09863f8ac8801d5c1f97231fd4648aa3099c942830d0585dfc28e494dbbc10e15b494ce9
|
|
@@ -143,7 +143,7 @@ module Libis
|
|
|
143
143
|
# Not much we can do. probably Nokogiri chrashed opening the XML file. What caused this?
|
|
144
144
|
# (XML not parsable, false XML identification, ???)
|
|
145
145
|
# so we log and continue.
|
|
146
|
-
log_msg(result, :warn, "Error
|
|
146
|
+
log_msg(result, :warn, "Error parsing XML file #{file}: #{e.message} @ #{e.backtrace.first}")
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
def process_results(result)
|
data/lib/libis/format/version.rb
CHANGED
data/spec/identifier_spec.rb
CHANGED
|
@@ -65,10 +65,6 @@ fidolist =
|
|
|
65
65
|
|
|
66
66
|
describe 'Identfier' do
|
|
67
67
|
|
|
68
|
-
dir = File.join File.absolute_path(File.dirname(__FILE__)), 'data'
|
|
69
|
-
|
|
70
|
-
let (:identifier) { ::Libis::Format::Identifier }
|
|
71
|
-
|
|
72
68
|
before :all do
|
|
73
69
|
::Libis::Tools::Config.logger.appenders =
|
|
74
70
|
::Logging::Appenders.string_io('StringIO', layout: ::Libis::Tools::Config.get_log_formatter)
|
|
@@ -77,7 +73,21 @@ describe 'Identfier' do
|
|
|
77
73
|
::Libis::Format::Config[:fido_path] = '/usr/local/bin/fido'
|
|
78
74
|
end
|
|
79
75
|
|
|
80
|
-
let(:
|
|
76
|
+
let (:identifier) { ::Libis::Format::Identifier }
|
|
77
|
+
let (:logoutput) {::Libis::Tools::Config.logger.appenders.last.sio}
|
|
78
|
+
let (:dir) {File.join File.absolute_path(File.dirname(__FILE__)), 'data'}
|
|
79
|
+
|
|
80
|
+
# context 'bug test' do
|
|
81
|
+
#
|
|
82
|
+
# let (:dir) {'/nas/vol03/lbs/alma/etd-kul/sap/FIIW/out/0623689_17450'}
|
|
83
|
+
#
|
|
84
|
+
# it 'just works' do
|
|
85
|
+
# result = identifier.get(dir)
|
|
86
|
+
# ap result
|
|
87
|
+
# expect(result).not_to be_nil
|
|
88
|
+
# end
|
|
89
|
+
#
|
|
90
|
+
# end
|
|
81
91
|
|
|
82
92
|
it 'should initialize correctly' do
|
|
83
93
|
expect(identifier.xml_validations.size).to be 1
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libis-format
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kris Dekeyser
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|