From b1fe3767f2ec8e8d470f69cc2eee6aa36aeb7e2f Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Thu, 11 Nov 2010 15:02:16 -0500 Subject: [PATCH] minor: formatting --- lib/bson.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bson.rb b/lib/bson.rb index 9099b64..608a26b 100644 --- a/lib/bson.rb +++ b/lib/bson.rb @@ -45,8 +45,10 @@ else begin # Need this for running test with and without c ext in Ruby 1.9. raise LoadError if ENV['TEST_MODE'] && !ENV['C_EXT'] - #raise LoadError unless little endian - raise LoadError unless [1,0,0,0].pack("i").bytes.first==1 + + # Raise LoadError unless little endian + raise LoadError unless [1,0,0,0].pack("i").bytes.first == 1 + require 'bson_ext/cbson' raise LoadError unless defined?(CBson::VERSION) if CBson::VERSION < MINIMUM_BSON_EXT_VERSION