2009-11-25 16:43:25 +00:00
|
|
|
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2009-10-26 19:34:45 +00:00
|
|
|
|
2009-01-13 15:23:20 +00:00
|
|
|
require 'mongo/types/binary'
|
2009-10-22 18:10:12 +00:00
|
|
|
require 'mongo/types/code'
|
2009-01-13 15:23:20 +00:00
|
|
|
require 'mongo/types/dbref'
|
|
|
|
require 'mongo/types/objectid'
|
|
|
|
require 'mongo/types/regexp_of_holding'
|
2009-01-13 14:12:13 +00:00
|
|
|
|
2009-10-22 18:10:12 +00:00
|
|
|
require 'mongo/util/support'
|
2009-10-26 19:34:45 +00:00
|
|
|
require 'mongo/util/conversions'
|
2009-10-26 18:54:33 +00:00
|
|
|
require 'mongo/util/server_version'
|
2009-10-20 19:44:46 +00:00
|
|
|
|
2009-08-13 19:18:53 +00:00
|
|
|
require 'mongo/errors'
|
2009-10-21 14:11:33 +00:00
|
|
|
require 'mongo/constants'
|
2009-08-20 22:48:09 +00:00
|
|
|
require 'mongo/connection'
|
2008-11-22 01:00:51 +00:00
|
|
|
require 'mongo/db'
|
|
|
|
require 'mongo/cursor'
|
|
|
|
require 'mongo/collection'
|
2009-01-07 20:36:12 +00:00
|
|
|
require 'mongo/admin'
|
2009-02-26 17:06:03 +00:00
|
|
|
|
2009-11-12 19:48:49 +00:00
|
|
|
begin
|
|
|
|
require 'mongo_ext/cbson'
|
|
|
|
BSON_SERIALIZER = CBson
|
|
|
|
rescue LoadError
|
|
|
|
BSON_SERIALIZER = BSON
|
2009-11-17 19:39:03 +00:00
|
|
|
warn "\n**Notice: C extension not detected. This is required for optimum MongoDB Ruby driver performance."
|
|
|
|
warn " You can install the extension as follows:\n gem install mongo_ext\n"
|
2009-11-12 19:48:49 +00:00
|
|
|
end
|
|
|
|
|
2009-08-20 14:50:48 +00:00
|
|
|
module Mongo
|
|
|
|
ASCENDING = 1
|
|
|
|
DESCENDING = -1
|
2009-09-10 13:59:06 +00:00
|
|
|
|
2009-11-23 20:20:05 +00:00
|
|
|
VERSION = "0.18"
|
2009-02-26 17:06:03 +00:00
|
|
|
end
|