RUBY-135 Oops. Yajl compability mode doesn't support object_class
This commit is contained in:
parent
f8fa61d4e0
commit
8a646fbf00
|
@ -29,10 +29,11 @@ require 'bson'
|
||||||
# Note that, at the moment, this will not properly round-trip
|
# Note that, at the moment, this will not properly round-trip
|
||||||
# in all cases from the output generated by b2json.
|
# in all cases from the output generated by b2json.
|
||||||
begin
|
begin
|
||||||
require 'yajl/json_gem' # broken with 'json/ext'
|
require 'json/pure' # broken with 'json/ext'
|
||||||
rescue LoadError
|
rescue LoadError
|
||||||
puts "This script requires yajl. Please install the following:"
|
puts "This script requires json/pure. Please install one of the following:"
|
||||||
puts " gem install yajl"
|
puts " gem install json_pure"
|
||||||
|
puts " gem install json"
|
||||||
Process.exit
|
Process.exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue