Rails 3.0.1 running mongodb ruby driver 1.7

19 views
Skip to first unread message

Alex

unread,
Nov 9, 2012, 3:40:30 PM11/9/12
to mongod...@googlegroups.com
Hi,

We having been using MongoDB Ruby driver 1.5 in our Rails (version 3.0.1) app using Ruby 1.8.7. We want to use the latest MongoDb Ruby driver (1.7.0) but got a bunch of warnings:

.../activesupport-3.0.1/lib/active_support/core_ext/enumerable.rb:79: warning: multiple values for a block parameter (2 for 1)
  from .../ruby-1.8.7-p357/gems/bson-1.7.0/lib/bson/ordered_hash.rb:81

I know that there are some differences on hashes between 1.8 and 1.9, but it's said that bson gem is compatible with both Ruby 1.8.x and 1.9.x. Because of this, some of our tests won't pass. Any idea why we got these kind of warnings? Any suggestion on how we can deal with this problem?

Thanks,
Alex

Tyler Brock

unread,
Jan 30, 2013, 5:36:53 PM1/30/13
to mongod...@googlegroups.com
Can you give us a little more context on the stack trace?

It might be worth updating the gem to 1.8.2 as many bugfixes have been made.

-Tyler
Reply all
Reply to author
Forward
0 new messages