From 850159cd7cbaf0b80fd7d45e24a70a75f47e90cb Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 4 Oct 2010 15:19:14 -0400 Subject: [PATCH] BUMP 1.1 --- ext/cbson/version.h | 2 +- lib/bson.rb | 7 +++---- lib/mongo.rb | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ext/cbson/version.h b/ext/cbson/version.h index ca234cc..f022a93 100644 --- a/ext/cbson/version.h +++ b/ext/cbson/version.h @@ -14,4 +14,4 @@ * limitations under the License. */ -#define VERSION "1.0.9" +#define VERSION "1.1" diff --git a/lib/bson.rb b/lib/bson.rb index dada0c0..2dde5be 100644 --- a/lib/bson.rb +++ b/lib/bson.rb @@ -2,10 +2,10 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) -MINIMUM_BSON_EXT_VERSION = "1.0.9" +MINIMUM_BSON_EXT_VERSION = "1.1" module BSON - VERSION = "1.0.9" + VERSION = "1.1" def self.serialize(obj, check_keys=false, move_id=false) BSON_CODER.serialize(obj, check_keys, move_id) end @@ -55,12 +55,11 @@ else module BSON BSON_CODER = BSON_C end - rescue LoadError => e + rescue LoadError require 'bson/bson_ruby' module BSON BSON_CODER = BSON_RUBY end - p e warn "\n**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance." warn " You can install the extension as follows:\n gem install bson_ext\n" warn " If you continue to receive this message after installing, make sure that the" diff --git a/lib/mongo.rb b/lib/mongo.rb index 464b55e..0edf1fb 100644 --- a/lib/mongo.rb +++ b/lib/mongo.rb @@ -3,7 +3,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) module Mongo - VERSION = "1.0.9" + VERSION = "1.1" end module Mongo