lib/assimilate/catalog.rb in assimilate-0.4.2 vs lib/assimilate/catalog.rb in assimilate-0.5.0

- old
+ new

@@ -24,12 +24,12 @@ def initialize(args) @config = YAML.load(File.open(args[:config])) check_config - @db = Mongo::Connection.new.db(@config[:db]) - @catalog = @db.collection(@config[:catalog]) - @batches = @db.collection(@config[:batch]) + @db = Mongo::Client.new("mongodb://127.0.0.1:27017/" + @config[:db]) + @catalog = @db[@config[:catalog]] + @batches = @db[@config[:batch]] end def check_config config.symbolize_keys! [:db, :catalog, :batch, :domain, :deletion_marker, :insertion_marker, :update_marker].each do |key|