twitter-status-bot/.gems/gems/json-1.8.1/tests/setup_variant.rb

12 lines
180 B
Ruby
Raw Normal View History

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