From 9e2f562892cf339275d2e7f835268c64723daf33 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Tue, 17 May 2011 11:33:50 -0700 Subject: [PATCH] Specify exact BSON version dependency Since the mongo and bson gems are versioned together, it should follow that mongo depends on a specific version of bson. Otherwise, client libraries that require a specific version of mongo, expecting the same version of bson to be installed may get a different version. This is particularly painful when a client library specifies a dependency on both mongo and bson_ext using the same version number, which may not be the latest, and the dependency from the mongo gem will actually install a different version of bson than bson_ext. --- mongo.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongo.gemspec b/mongo.gemspec index 7d0b557..f202c35 100644 --- a/mongo.gemspec +++ b/mongo.gemspec @@ -30,5 +30,5 @@ Gem::Specification.new do |s| s.email = 'mongodb-dev@googlegroups.com' s.homepage = 'http://www.mongodb.org' - s.add_dependency(%q, [">= #{Mongo::VERSION}"]) + s.add_dependency('bson', Mongo::VERSION) end