moped
moped copied to clipboard
A MongoDB driver for Ruby
This is a backport of the current functionality implemented in the Official Ruby Driver References: https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/auth/scram.rb https://github.com/mongodb/mongo-ruby-driver/blob/master/lib/mongo/auth/scram/conversation.rb This PR helps to legacy Rails 3.x applications to use MongoDB 3.0 >=,...
``` Moped::Errors::ConnectionFailure: Could not connect to a primary node for replica set # ``` ``` …avity/ruby/2.0.0/gems/moped-2.0.3/lib/moped/cluster.rb: 254:in `with_primary' …ty/ruby/2.0.0/gems/moped-2.0.3/lib/moped/collection.rb: 124:in `insert' …by/2.0.0/gems/mongoid-4.0.0/lib/mongoid/query_cache.rb: 117:in `insert_with_clear_cache' …ems/mongoid-4.0.0/lib/mongoid/persistable/creatable.rb: 79:in `insert_as_root' ``` Occasionally we...
I cannot connect to a staging database instance that is hosted on compose.io. Here is what I get: mongohq_url = "mongodb://bdnelson:[email protected]:18111,aws-us-west-2-portal.1.dblayer.com:18111/admin?authSource=admin&ssl=false" [15] pry(main)> db.collection_names.each{|name| puts name } MONGODB | end...
I have found no way to pass options to the `Collection#aggregate` method as explained here: http://docs.mongodb.org/manual/reference/method/db.collection.aggregate/ for example to allowDiskUse for external sort operations. Maybe a patch like this should...
lib/moped/bson.rb specifies the ways in which BSON fields are packed, but they currently use native endianness, which leads to errors on a big-endian system because the encoding for BSON fields...
Hello, I will be brief to save time. I hope you can help me. For development reasons I am trying to monkey patch a model class >Card< inside a script...
If there is a network error or connection error, and if there is a change replication set primary, we started to have this error. It happens like every 10-12 hours...
From mongoid/mongoid #2172 It would be neat if the Mongoid logger would filter passwords etc. from its output. Although many may not have logging enabled in production, we find it...
We have a rake task on heroku that does some processing. The rake task calls a js script that takes care of business. This all works fine locally, and on...
Hi @durran, We using Mongoid heavily on our production servers. We have replica set based on Amazon EC2 instances. Sometimes one on the members has networking issues that is the...