-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
I recently installed the mongoid-2.4.10 gem and it fetched mongo-1.6.3 as a dependency which appears to have just been released. When attempting to run any rails generator (i.e. rails g controller blog index) I get the following error:
/Users/mhayes/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/mongo-1.6.3/lib/mongo/util/uri_parser.rb:279:in `block in parse_options': Invalid Mongo URI option pool_size (Mongo::MongoArgumentError)
My config/mongoid.yml file looks like this:
Unable to find source-code formatter for language: yml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
development: host: localhost database: blog_development test: host: localhost database: blog_test production: host: localhost database: blog_production
Although when I force mongo-1.6.2 to be used by updating my Gemfile like so:
... gem 'mongoid', '~> 2.4' gem 'mongo', '1.6.2' gem 'bson_ext', '~> 1.5' ...
Everything works as expected. Not sure if this is a bug in mongoid or mongo so any guidance would be awesome. Thanks for such an awesome tool!
Also if it helps I'm running Mac OS X 10.7.3 using a homebrew version of mongo:
eigenbox:blog mhayes$ brew info mongo mongodb 2.0.5-x86_64 http://www.mongodb.org/ /usr/local/Cellar/mongodb/1.8.3-x86_64 (16 files, 94M) /usr/local/Cellar/mongodb/2.0.4-x86_64 (17 files, 121M) *