examples/mongo/basic.rb in flipper-mongo-0.20.4 vs examples/mongo/basic.rb in flipper-mongo-0.21.0.rc1
- old
+ new
@@ -1,10 +1,6 @@
-require 'pathname'
+require 'bundler/setup'
require 'logger'
-
-root_path = Pathname(__FILE__).dirname.join('..').expand_path
-lib_path = root_path.join('lib')
-$:.unshift(lib_path)
require 'flipper/adapters/mongo'
Mongo::Logger.logger.level = Logger::INFO
collection = Mongo::Client.new(["127.0.0.1:#{ENV["MONGODB_PORT"] || 27017}"], :database => 'testing')['flipper']
adapter = Flipper::Adapters::Mongo.new(collection)