From dccc442edb075bb5fdbc6f9d5bfdfb532ddb95f8 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Fri, 13 Mar 2009 17:24:16 -0400 Subject: [PATCH] for now don't try to install extension --- lib/mongo/util/bson.rb | 1 + mongo-ruby-driver.gemspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mongo/util/bson.rb b/lib/mongo/util/bson.rb index 8d045ab..f38e3d2 100644 --- a/lib/mongo/util/bson.rb +++ b/lib/mongo/util/bson.rb @@ -76,6 +76,7 @@ class BSON @buf = ByteBuffer.new(CBson.serialize(obj)) end rescue LoadError + raise def serialize(obj) raise "Document is null" unless obj diff --git a/mongo-ruby-driver.gemspec b/mongo-ruby-driver.gemspec index ab28532..e63a162 100644 --- a/mongo-ruby-driver.gemspec +++ b/mongo-ruby-driver.gemspec @@ -20,7 +20,7 @@ Gem::Specification.new do |s| s.has_rdoc = true s.rdoc_options = ['--main', 'README.rdoc', '--inline-source'] s.extra_rdoc_files = ['README.rdoc'] - s.extensions << 'ext/cbson/extconf.rb' +# s.extensions << 'ext/cbson/extconf.rb' s.authors = ['Jim Menard', 'Mike Dirolf'] s.email = 'mongodb-dev@googlegroups.com'