2008-04-05 16:49:18 +00:00
|
|
|
Dir[File.join(File.dirname(__FILE__), "webrat", "*.rb")].each do |file|
|
|
|
|
require File.expand_path(file)
|
|
|
|
end
|
2008-03-03 00:35:46 +00:00
|
|
|
|
2008-04-04 16:12:46 +00:00
|
|
|
module Webrat
|
2008-04-04 15:17:28 +00:00
|
|
|
VERSION = '0.2.1'
|
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-04-16 09:54:37 +00:00
|
|
|
if defined?(Merb)
|
2008-04-18 12:37:53 +00:00
|
|
|
puts "************ Booting merb mode"
|
2008-04-16 09:54:37 +00:00
|
|
|
require File.join(File.dirname(__FILE__), "boot_merb.rb")
|
|
|
|
else
|
|
|
|
require File.join(File.dirname(__FILE__), "boot_rails.rb")
|
2008-04-05 16:49:18 +00:00
|
|
|
end
|