middleman-xmlvalidator 0.0.26 → 0.0.27

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,8 @@ module Middleman
50
50
  end
51
51
 
52
52
  def self.validate(document_path, schema_path)
53
- schema = Nokogiri::XML::Schema(File.read("lib/schema/" + schema_path))
53
+ #schema = Nokogiri::XML::Schema(File.read("lib/schema/" + schema_path))
54
+ schema = Nokogiri::XML::Schema(File.read(File.join(File.dirname(File.expand_path(__FILE__)), schema_path)))
54
55
  document = Nokogiri::XML(File.read(document_path))
55
56
  schema.validate(document)
56
57
  end
@@ -1,6 +1,6 @@
1
1
  module Middleman
2
2
  module Xmlvalidator
3
- VERSION = "0.0.26"
3
+ VERSION = "0.0.27"
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.26
4
+ version: 0.0.27
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: