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

View File

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