Check nokogiri gem version before requiring nokogiri

Gives better error messages is using an old nokogiri version
This commit is contained in:
Bryan Helmkamp 2008-12-01 10:28:02 -05:00
parent beb4f976f1
commit 0de031c93a
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ module Webrat
VERSION = '0.3.2.1'
def self.require_xml
gem "nokogiri", ">= 1.0.6"
if on_java?
# We need Nokogiri's CSS to XPath support, even if using REXML and Hpricot for parsing and searching
require "nokogiri/css"