mongo-ruby-driver/mongo.gemspec
Michael Jackson 9e2f562892 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.
2011-05-17 11:33:50 -07:00

35 lines
1.0 KiB
Ruby

require File.expand_path('../lib/mongo/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'mongo'
s.version = Mongo::VERSION
s.platform = Gem::Platform::RUBY
s.summary = 'Ruby driver for the MongoDB'
s.description = 'A Ruby driver for MongoDB. For more information about Mongo, see http://www.mongodb.org.'
s.require_paths = ['lib']
s.files = ['README.md', 'Rakefile', 'mongo.gemspec', 'LICENSE.txt']
s.files += ['lib/mongo.rb'] + Dir['lib/mongo/**/*.rb']
s.files += Dir['docs/**/*.md'] + Dir['examples/**/*.rb'] + Dir['bin/**/*.rb']
s.files += Dir['bin/mongo_console']
s.test_files = Dir['test/**/*.rb']
s.executables = ['mongo_console']
s.has_rdoc = true
s.test_files = Dir['test/**/*.rb']
s.has_rdoc = true
s.rdoc_options = ['--main', 'README.md', '--inline-source']
s.extra_rdoc_files = ['README.md']
s.authors = ['Jim Menard', 'Mike Dirolf', 'Kyle Banker']
s.email = 'mongodb-dev@googlegroups.com'
s.homepage = 'http://www.mongodb.org'
s.add_dependency('bson', Mongo::VERSION)
end