Sha256: 1ede727af50303493a3546cb68e7f8b46bf7801048f213df959f0df1dd165aa6

Contents?: true

Size: 645 Bytes

Versions: 34

Compression:

Stored size: 645 Bytes

Contents

require 'bundler/setup'
Bundler.require(:default, :development, :test)

MODE = ENV['RACK_ENV'] || 'test'

require './lib/mongocore.rb'

# Add settings here
Mongocore.schema = File.join(Dir.pwd, 'config', 'db', 'schema')

require './models/parent.rb'
require './models/model.rb'

# Logging verbosity
Mongo::Logger.logger.level = ::Logger::DEBUG
Mongo::Logger.logger.level = ::Logger::FATAL

# To make the driver log to a logfile instead:
# Mongo::Logger.logger       = ::Logger.new('mongo.log')
# Mongo::Logger.logger.level = ::Logger::INFO

# Connect to DB
Mongocore.db = Mongo::Client.new(['127.0.0.1:27017'], :database => "mongocore_#{MODE}")

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
mongocore-0.5.1 config/boot.rb
mongocore-0.5.0 config/boot.rb
mongocore-0.4.5 config/boot.rb
mongocore-0.4.4 config/boot.rb
mongocore-0.4.3 config/boot.rb
mongocore-0.4.2 config/boot.rb
mongocore-0.4.1 config/boot.rb
mongocore-0.4.0 config/boot.rb
mongocore-0.3.2 config/boot.rb
mongocore-0.3.1.1 config/boot.rb
mongocore-0.3.1 config/boot.rb
mongocore-0.3.0 config/boot.rb
mongocore-0.2.5 config/boot.rb
mongocore-0.2.3 config/boot.rb
mongocore-0.2.2 config/boot.rb
mongocore-0.2.1 config/boot.rb
mongocore-0.2.0 config/boot.rb
mongocore-0.1.10 config/boot.rb
mongocore-0.1.9 config/boot.rb
mongocore-0.1.8 config/boot.rb