examples/gridfs.rb in mongodb-mongo-0.12 vs examples/gridfs.rb in mongodb-mongo-0.13

- old
+ new

@@ -1,16 +1,16 @@ $LOAD_PATH[0,0] = File.join(File.dirname(__FILE__), '..', 'lib') require 'mongo' require 'mongo/gridfs' -include XGen::Mongo::Driver -include XGen::Mongo::GridFS +include Mongo +include GridFS host = ENV['MONGO_RUBY_DRIVER_HOST'] || 'localhost' -port = ENV['MONGO_RUBY_DRIVER_PORT'] || XGen::Mongo::Driver::Mongo::DEFAULT_PORT +port = ENV['MONGO_RUBY_DRIVER_PORT'] || Connection::DEFAULT_PORT puts "Connecting to #{host}:#{port}" -db = Mongo.new(host, port).db('ruby-mongo-examples') +db = Connection.new(host, port).db('ruby-mongo-examples') def dump(db, fname) GridStore.open(db, fname, 'r') { |f| puts f.read } end