secretariat 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/secretariat/validator.rb +3 -1
- data/lib/secretariat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73c3daf0ce07b0572763782c9fb2e93ba0169d264a91586372fe23ba8a362031
|
4
|
+
data.tar.gz: 0e4ef9f41d91c509409df8d3dee50b364c261bcb0ecd5b5754cec92acbad5f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7809f748419df2228229b00662ef9529e8b0c595362713c2fc131fc6fb03cf3fcbc118e3a84947f6e9e55a227256f4d1529b46f4cf1f66753795b1f17bc3483c
|
7
|
+
data.tar.gz: 5918e6098219016da3f59f90edbb0386668de24dd993922d7169a1c255f925e86b1b710b398e132d170619c29f53b047f66f3e2bf79d2253e98691a6bbc5f545
|
@@ -15,6 +15,7 @@ limitations under the License.
|
|
15
15
|
=end
|
16
16
|
|
17
17
|
require 'nokogiri'
|
18
|
+
require 'tmpdir'
|
18
19
|
|
19
20
|
module Secretariat
|
20
21
|
class Validator
|
@@ -55,7 +56,8 @@ module Secretariat
|
|
55
56
|
Dir.mktmpdir do |dir|
|
56
57
|
docpath = File.join(dir, 'doc.xml')
|
57
58
|
File.write(docpath, doc, mode: 'wb')
|
58
|
-
|
59
|
+
jarpath = File.join(__dir__, '../..', 'bin', 'schxslt-cli.jar')
|
60
|
+
out = `java -jar #{jarpath} -v -d #{docpath} -s #{schematron_path}`
|
59
61
|
return [] if out.match("[valid]")
|
60
62
|
out.lines
|
61
63
|
end
|
data/lib/secretariat/version.rb
CHANGED