From f8fa61d4e09ab85fe13078f163ef2387a61488a6 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 5 Jan 2011 10:18:07 -0500 Subject: [PATCH] RUBY-135 Use yajl in JSON compatibility mode for j2bson --- bin/j2bson | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/j2bson b/bin/j2bson index b776b40..e15a714 100755 --- a/bin/j2bson +++ b/bin/j2bson @@ -29,11 +29,10 @@ require 'bson' # Note that, at the moment, this will not properly round-trip # in all cases from the output generated by b2json. begin -require 'json/pure' # broken with 'json/ext' +require 'yajl/json_gem' # broken with 'json/ext' rescue LoadError - puts "This script requires json/pure. Please install one of the following:" - puts " gem install json_pure" - puts " gem install json" + puts "This script requires yajl. Please install the following:" + puts " gem install yajl" Process.exit end