2008-10-25 16:42:38 +00:00
|
|
|
require "rubygems"
|
|
|
|
|
2008-10-25 16:59:21 +00:00
|
|
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__))) unless $LOAD_PATH.include?(File.expand_path(File.dirname(__FILE__)))
|
|
|
|
|
2008-04-04 16:12:46 +00:00
|
|
|
module Webrat
|
2008-10-06 03:05:01 +00:00
|
|
|
VERSION = '0.2.2'
|
2008-10-25 16:42:38 +00:00
|
|
|
|
2008-04-17 10:52:42 +00:00
|
|
|
def self.root
|
|
|
|
defined?(RAILS_ROOT) ? RAILS_ROOT : Merb.root
|
|
|
|
end
|
2008-04-05 16:49:18 +00:00
|
|
|
end
|
|
|
|
|
2008-10-25 16:59:21 +00:00
|
|
|
# require "webrat/merb/param_parser"
|
|
|
|
# require "webrat/merb/url_encoded_pair_parser"
|
|
|
|
require "webrat/core"
|
2008-10-25 16:42:38 +00:00
|
|
|
|
2008-10-25 16:59:21 +00:00
|
|
|
require "webrat/rails" if defined?(RAILS_ENV)
|
|
|
|
require "webrat/merb" if defined?(Merb)
|