Skip to content

Commit 8a646fb

Browse files
committed
RUBY-135 Oops. Yajl compability mode doesn't support object_class
1 parent f8fa61d commit 8a646fb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/j2bson

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ require 'bson'
2929
# Note that, at the moment, this will not properly round-trip
3030
# in all cases from the output generated by b2json.
3131
begin
32-
require 'yajl/json_gem' # broken with 'json/ext'
32+
require 'json/pure' # broken with 'json/ext'
3333
rescue LoadError
34-
puts "This script requires yajl. Please install the following:"
35-
puts " gem install yajl"
34+
puts "This script requires json/pure. Please install one of the following:"
35+
puts " gem install json_pure"
36+
puts " gem install json"
3637
Process.exit
3738
end
3839

0 commit comments

Comments
 (0)