second gem for extensions
This commit is contained in:
parent
9e12025727
commit
595a9464bb
@ -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
|
||||
|
26
mongo-extensions.gemspec
Normal file
26
mongo-extensions.gemspec
Normal file
@ -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
|
@ -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.'
|
||||
|
Loading…
Reference in New Issue
Block a user