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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6d3c5177f9a94e1341b1b533cfe34b91f9babe7eafa5d483cbf4b5f489509c0
4
- data.tar.gz: d51e684d34ac4fc61007cd6243c26cc8cfd31df95799b39079841d6e23b352f8
3
+ metadata.gz: 73c3daf0ce07b0572763782c9fb2e93ba0169d264a91586372fe23ba8a362031
4
+ data.tar.gz: 0e4ef9f41d91c509409df8d3dee50b364c261bcb0ecd5b5754cec92acbad5f2d
5
5
  SHA512:
6
- metadata.gz: a1c7ea742126169c1b97b0ce347d8d7f6830f5eabb5542b814ae9313c9a0c4d904076124fccd18a182e217ce1a4e87008bc6e5350f7f53b562fee8795855486e
7
- data.tar.gz: f228bac7b78241d5437b61fb1d9505c0ebb2ed2608f7489cf5145da34a662b5efd50a87090cf3b9ca27af9e2af6708865e3cf7039e0c466fc48711f3347017cb
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
- out = `java -jar bin/schxslt-cli.jar -v -d #{docpath} -s #{schematron_path}`
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
@@ -15,5 +15,5 @@ limitations under the License.
15
15
  =end
16
16
 
17
17
  module Secretariat
18
- VERSION = '3.0.0'
18
+ VERSION = '3.0.1'
19
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secretariat
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Krutisch