2015-04-12 04:36:37 -04:00
|
|
|
case ENV['JSON']
|
|
|
|
when 'pure'
|
2020-03-23 21:45:52 -04:00
|
|
|
$:.unshift File.join(__dir__, '../lib')
|
2015-04-12 04:36:37 -04:00
|
|
|
require 'json/pure'
|
|
|
|
when 'ext'
|
2020-03-23 21:45:52 -04:00
|
|
|
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
|
2015-04-12 04:36:37 -04:00
|
|
|
require 'json/ext'
|
|
|
|
else
|
2020-03-23 21:45:52 -04:00
|
|
|
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
|
2015-04-12 04:36:37 -04:00
|
|
|
require 'json'
|
|
|
|
end
|
2016-07-05 07:49:39 -04:00
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
begin
|
|
|
|
require 'byebug'
|
|
|
|
rescue LoadError
|
|
|
|
end
|