middleman-xmlvalidator 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -52,13 +52,13 @@ module Middleman
52
52
  end
53
53
 
54
54
  def self.validate(document_path, schema_path)
55
- schema = Nokogiri::XML::Schema(File.read("lib/schema/" + schema_path))
55
+ schema = Nokogiri::XML::Schema(File.read("../../schema/" + schema_path))
56
56
  document = Nokogiri::XML(File.read(document_path))
57
57
  schema.validate(document)
58
58
  end
59
59
 
60
60
  def self.valid(document_path, schema_path)
61
- schema = Nokogiri::XML::Schema(File.read("lib/schema/" + schema_path))
61
+ schema = Nokogiri::XML::Schema(File.read("../../schema/" + schema_path))
62
62
  document = Nokogiri::XML(File.read(document_path))
63
63
  schema.valid?(document)
64
64
  end
@@ -1,6 +1,6 @@
1
1
  module Middleman
2
2
  module Xmlvalidator
3
- VERSION = "0.0.18"
3
+ VERSION = "0.0.19"
4
4
  PACKAGE = "middleman-xmlvalidator"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-xmlvalidator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18
4
+ version: 0.0.19
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: