lib/bson.rb in bson-1.1.1 vs lib/bson.rb in bson-1.1.2
- old
+ new
@@ -1,13 +1,13 @@
# encoding: UTF-8
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
-MINIMUM_BSON_EXT_VERSION = "1.1.1"
+MINIMUM_BSON_EXT_VERSION = "1.1.2"
module BSON
- VERSION = "1.1.1"
+ VERSION = "1.1.2"
def self.serialize(obj, check_keys=false, move_id=false)
BSON_CODER.serialize(obj, check_keys, move_id)
end
@@ -58,13 +58,15 @@
rescue LoadError
require 'bson/bson_ruby'
module BSON
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 bson_ext\n"
- warn " If you continue to receive this message after installing, make sure that the"
- warn " bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.\n"
+ unless ENV['TEST_MODE']
+ 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"
+ warn " bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.\n"
+ end
end
end
require 'bson/types/binary'
require 'bson/types/code'