Sha256: 425d9dc4c2d003f020e5c2c17660b6925b0464c0c5fb75b9ba63c68b39f53304

Contents?: true

Size: 586 Bytes

Versions: 23

Compression:

Stored size: 586 Bytes

Contents

require "rubygems"

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))

module Webrat
  # The common base class for all exceptions raised by Webrat.
  class WebratError < StandardError
  end

  VERSION = '0.4.4'

  def self.require_xml
    if on_java?
      gem "nokogiri", ">= 1.2.4"
    else
      gem "nokogiri", ">= 1.0.6"
    end

    require "nokogiri"
    require "webrat/core/xml/nokogiri"
  end

  def self.on_java?
    RUBY_PLATFORM =~ /java/
  end

end

Webrat.require_xml

require "webrat/core"

Version data entries

23 entries across 23 versions & 10 rubygems

Version Path
davidtrogers-webrat-0.4.4.2 lib/webrat.rb
dbrady-webrat-0.4.4.2 lib/webrat.rb
diabolo-webrat-0.4.4.1 lib/webrat.rb
diabolo-webrat-0.4.4.2 lib/webrat.rb
emipair-webrat-0.0.1 lib/webrat.rb
garnierjm-webrat-0.4.5 lib/webrat.rb
raldred-webrat-0.4.4.2 lib/webrat.rb
sr-webrat-0.4.4.1 lib/webrat.rb
winton-sum-0.1.0 vendor/webrat/lib/webrat.rb
winton-sum-0.1.1 vendor/webrat/lib/webrat.rb
sum-0.1.1 vendor/webrat/lib/webrat.rb
metry-2.0.4 vendor/webrat/lib/webrat.rb
metry-2.0.5 vendor/webrat/lib/webrat.rb
metry-2.1.0 vendor/webrat/lib/webrat.rb
metry-2.1.1 vendor/webrat/lib/webrat.rb
metry-2.0.0 vendor/webrat/lib/webrat.rb
metry-2.0.1 vendor/webrat/lib/webrat.rb
metry-2.0.2 vendor/webrat/lib/webrat.rb
metry-2.0.3 vendor/webrat/lib/webrat.rb
metry-1.0.0 vendor/webrat/lib/webrat.rb