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