summaryrefslogtreecommitdiff
path: root/jni/ruby/test/json/setup_variant.rb
blob: 2dab184bc421a8af2971efca4964124e4d61bcb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
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