Ruby driver 1.0.5 does not permit :scope as map_reduce option

15 views
Skip to first unread message

Hayes Davis

unread,
Jul 24, 2010, 3:42:48 PM7/24/10
to mongodb-user
I'm attempting to upgrade to the latest available ruby driver gem
which is apparently 1.0.5[1]. This version, unfortunately, does an
assert_valid_keys on the options passed to Collection#map_reduce and
does not include :scope as a valid parameter. Even though the docs
don't explicitly mention this option, it worked just fine in older
versions of the driver and is documented as an option in the "official
map reduce documentation"[2]. It also appears that the latest driver
API docs are for a 1.0.6 version[3] that has not yet been released as
a gem. Viewing source there indicates that this assert_valid_keys line
has been removed.

My questions are:
1) Is scope actually a valid option (I really hope so...)
2) What is the ETA on the release of the 1.0.6 gem?
3) Any advice on a workaround that doesn't involve a fork?

Thanks.

Hayes

[1] http://rubygems.org/gems/mongo/versions
[2] http://www.mongodb.org/display/DOCS/MapReduce
[3] http://api.mongodb.org/ruby

Kyle Banker

unread,
Jul 24, 2010, 3:46:19 PM7/24/10
to mongod...@googlegroups.com
Apologies. This is fixed in master; you can install from there. Will issue a new release in the next few days.


--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.


Hayes Davis

unread,
Jul 24, 2010, 3:53:47 PM7/24/10
to mongodb-user
Thanks for the quick response. Should I install all of mongo, bson and
bson_ext directly from master then?

Hayes
> > mongodb-user...@googlegroups.com<mongodb-user%2Bunsubscribe@google groups.com>
> > .

Kyle Banker

unread,
Jul 24, 2010, 3:58:32 PM7/24/10
to mongod...@googlegroups.com
You probably only need mongo. From master, you can install with

rake gem:install

To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages