2015-12-16 00:07:31 -05:00
|
|
|
# frozen_string_literal: false
|
2015-04-12 04:36:37 -04:00
|
|
|
case ENV['JSON']
|
|
|
|
when 'pure'
|
|
|
|
$:.unshift 'lib'
|
|
|
|
require 'json/pure'
|
|
|
|
when 'ext'
|
|
|
|
$:.unshift 'ext', 'lib'
|
|
|
|
require 'json/ext'
|
|
|
|
else
|
|
|
|
$:.unshift 'ext', 'lib'
|
|
|
|
require 'json'
|
|
|
|
end
|