diff --git a/lib/mongo/util/bson.rb b/lib/mongo/util/bson.rb index 3127407..520aef9 100644 --- a/lib/mongo/util/bson.rb +++ b/lib/mongo/util/bson.rb @@ -71,7 +71,7 @@ class BSON end begin - require 'mongo/ext/cbson' + require 'mongo_ext/cbson' def serialize(obj) @buf = ByteBuffer.new(CBson.serialize(obj)) end @@ -129,7 +129,7 @@ class BSON end begin - require 'mongo/ext/cbson' + require 'mongo_ext/cbson' def deserialize(buf=nil) if buf.is_a? String @buf = ByteBuffer.new(buf) if buf diff --git a/mongo-extensions.gemspec b/mongo-extensions.gemspec new file mode 100644 index 0000000..c9d4d21 --- /dev/null +++ b/mongo-extensions.gemspec @@ -0,0 +1,26 @@ +# We need to list all of the included files because we aren't allowed to use +# Dir[...] in the github sandbox. +PACKAGE_FILES = ['Rakefile', 'mongo-extensions.gemspec', + 'ext/cbson/cbson.c', + 'ext/cbson/extconf.rb'] +TEST_FILES = [] + +Gem::Specification.new do |s| + s.name = 'mongo_ext' + s.version = '0.1' + s.platform = Gem::Platform::RUBY + s.summary = 'C extensions for the MongoDB Ruby driver' + s.description = 'C extensions to accelerate the MondoDB Ruby driver. For more information about Mongo, see http://www.mongodb.org.' + + s.require_paths = ['ext'] + + s.files = PACKAGE_FILES + s.test_files = TEST_FILES + + s.has_rdoc = false + s.extensions << 'ext/cbson/extconf.rb' + + s.author = 'Mike Dirolf' + s.email = 'mongodb-dev@googlegroups.com' + s.homepage = 'http://www.mongodb.org' +end diff --git a/mongo-ruby-driver.gemspec b/mongo-ruby-driver.gemspec index 8d74af2..52f1c11 100644 --- a/mongo-ruby-driver.gemspec +++ b/mongo-ruby-driver.gemspec @@ -79,7 +79,7 @@ TEST_FILES = ['tests/mongo-qa/_common.rb', Gem::Specification.new do |s| s.name = 'mongo' - s.version = '0.6.4' + s.version = '0.6.5' s.platform = Gem::Platform::RUBY s.summary = 'Ruby driver for the 10gen Mongo DB' s.description = 'A Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.'