2008-09-12 06:00:44 +02:00
|
|
|
require "rubygems"
|
|
|
|
require 'json'
|
|
|
|
require 'rest_client'
|
|
|
|
|
2008-09-12 06:16:01 +02:00
|
|
|
$:.unshift File.dirname(__FILE__) unless
|
|
|
|
$:.include?(File.dirname(__FILE__)) ||
|
|
|
|
$:.include?(File.expand_path(File.dirname(__FILE__)))
|
|
|
|
|
|
|
|
|
2008-09-12 06:14:34 +02:00
|
|
|
require 'couchrest/monkeypatches'
|
2008-09-12 06:00:44 +02:00
|
|
|
|
|
|
|
module CouchRest
|
2008-09-12 06:14:34 +02:00
|
|
|
autoload :Server, 'couchrest/core/server'
|
|
|
|
autoload :Database, 'couchrest/core/database'
|
|
|
|
autoload :Pager, 'couchrest/helper/pager'
|
|
|
|
autoload :FileManager, 'couchrest/helper/file_manager'
|
|
|
|
|
2008-09-12 06:00:44 +02:00
|
|
|
def self.new(*opts)
|
|
|
|
Server.new(*opts)
|
|
|
|
end
|
|
|
|
end
|