Permalink
Browse files

Updated to Nokogiri 1.3.3.

  • Loading branch information...
1 parent 463c788 commit 6d7851401b326ac386135f52de90e6a23c6ddf1e @tylerhunt committed Aug 31, 2009
Showing with 4 additions and 4 deletions.
  1. +1 −1 Rakefile
  2. +3 −3 lib/relief/parser.rb
View
@@ -13,7 +13,7 @@ begin
gem.homepage = "http://github.com/tylerhunt/relief"
gem.authors = ["Tyler Hunt"]
- gem.add_dependency 'nokogiri', '~> 1.2.3'
+ gem.add_dependency 'nokogiri', '~> 1.3.3'
gem.add_development_dependency('jeweler', '~> 0.11.0')
end
View
@@ -1,4 +1,4 @@
-gem 'nokogiri', '~> 1.2.3'
+gem 'nokogiri', '~> 1.3.3'
require 'nokogiri'
module Relief
@@ -17,9 +17,9 @@ def parse(document)
document = Nokogiri::XML(document.to_s)
end
+ raise ParseError if document.root.nil?
+
@root.parse(document)
- rescue Nokogiri::XML::XPath::SyntaxError
- raise ParseError
end
end
end

0 comments on commit 6d78514

Please sign in to comment.