Sha256: bb0533093c217d4148fd7f24c1cbbbdf911a7e4d9bf075718471c94bda0faa23

Contents?: true

Size: 604 Bytes

Versions: 2

Compression:

Stored size: 604 Bytes

Contents

require "eventmachine"
begin; require "bson_ext"; rescue LoadError; require "bson"; end

module EM::Mongo

  module Version
    MAJOR = 0
    MINOR = 2
    TINY  = 10
    STRING = [MAJOR, MINOR, TINY].join('.')
  end

  NAME    = 'em-mongo'
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
  PATH    = ::File.dirname(LIBPATH) + ::File::SEPARATOR

  class Util
    def self.unique_id
      BSON::ObjectID.new.to_s
    end
  end
end

require File.join(EM::Mongo::LIBPATH, "em-mongo/connection")
require File.join(EM::Mongo::LIBPATH, "em-mongo/collection")

EMMongo = EM::Mongo

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
em-mongo-0.2.11 lib/em-mongo.rb
em-mongo-0.2.10 lib/em-mongo.rb