mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
17 lines
362 B
Ruby
17 lines
362 B
Ruby
case ENV['JSON']
|
|
when 'pure'
|
|
$:.unshift File.join(__dir__, '../lib')
|
|
require 'json/pure'
|
|
when 'ext'
|
|
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
|
|
require 'json/ext'
|
|
else
|
|
$:.unshift File.join(__dir__, '../ext'), File.join(__dir__, '../lib')
|
|
require 'json'
|
|
end
|
|
|
|
require 'test/unit'
|
|
begin
|
|
require 'byebug'
|
|
rescue LoadError
|
|
end
|