From 49bc88c4b3d8b246028f22c03bc6847024a4b317 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 7 Apr 2010 23:47:06 -0400 Subject: [PATCH] BUMP 0.20.1 --- HISTORY | 3 +++ bin/fail_if_no_c.rb | 2 +- bin/standard_benchmark | 2 +- ext/cbson/version.h | 2 +- lib/bson.rb | 6 +++--- lib/mongo.rb | 2 +- mongo-ruby-driver.gemspec | 2 ++ 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/HISTORY b/HISTORY index 4c2826c..714f8cb 100644 --- a/HISTORY +++ b/HISTORY @@ -1,3 +1,6 @@ +0.20.1 2010-4-7 + * Added bson gem dependency. + 0.20 2010-4-7 If upgrading from a previous version of the Ruby driver, please read these notes carefully, along with the 0.20_UPGRADE doc. diff --git a/bin/fail_if_no_c.rb b/bin/fail_if_no_c.rb index 855c427..a451d81 100644 --- a/bin/fail_if_no_c.rb +++ b/bin/fail_if_no_c.rb @@ -5,7 +5,7 @@ require 'rubygems' require 'mongo' begin - require 'mongo_ext/cbson' + require 'bson_ext/cbson' rescue LoadError Process.exit 1 end diff --git a/bin/standard_benchmark b/bin/standard_benchmark index af94eb4..d30f7ff 100755 --- a/bin/standard_benchmark +++ b/bin/standard_benchmark @@ -3,7 +3,7 @@ # # Note: Ruby 1.9 is faster than 1.8, as expected. # This suite will be run against the installed version of ruby-mongo-driver. -# The c-extension, mongo_ext, will be used if installed. +# The c-extension, bson_ext, will be used if installed. require 'rubygems' require 'mongo' diff --git a/ext/cbson/version.h b/ext/cbson/version.h index 10cf4f4..047c60a 100644 --- a/ext/cbson/version.h +++ b/ext/cbson/version.h @@ -14,4 +14,4 @@ * limitations under the License. */ -#define VERSION "0.20" +#define VERSION "0.20.1" diff --git a/lib/bson.rb b/lib/bson.rb index 6057668..8fc0bab 100644 --- a/lib/bson.rb +++ b/lib/bson.rb @@ -1,7 +1,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) module BSON - VERSION = "0.20" + VERSION = "0.20.1" def self.serialize(obj, check_keys=false, move_id=false) BSON_CODER.serialize(obj, check_keys, move_id) end @@ -27,9 +27,9 @@ rescue LoadError BSON_CODER = BSON_RUBY end 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 mongo_ext\n" + 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" - warn " mongo_ext gem is in your load path and that the mongo_ext and mongo gems are of the same version.\n" + warn " bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.\n" end require 'bson/types/binary' diff --git a/lib/mongo.rb b/lib/mongo.rb index 452396f..dcb37f9 100644 --- a/lib/mongo.rb +++ b/lib/mongo.rb @@ -1,7 +1,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) module Mongo - VERSION = "0.20" + VERSION = "0.20.1" end module Mongo diff --git a/mongo-ruby-driver.gemspec b/mongo-ruby-driver.gemspec index e4bbc6b..86db91d 100644 --- a/mongo-ruby-driver.gemspec +++ b/mongo-ruby-driver.gemspec @@ -27,4 +27,6 @@ Gem::Specification.new do |s| s.authors = ['Jim Menard', 'Mike Dirolf', 'Kyle Banker'] s.email = 'mongodb-dev@googlegroups.com' s.homepage = 'http://www.mongodb.org' + + s.add_dependency(%q, ["= #{Mongo::VERSION}"]) end