12345678910111213141516171819202122232425262728293031323334353637 |
- diff --git a/lib/json.rb b/lib/json.rb
- index aeb9774..3bd94ec 100644
- --- a/lib/json.rb
- +++ b/lib/json.rb
- @@ -575,9 +575,5 @@ require 'json/common'
- module JSON
- require 'json/version'
-
- - begin
- - require 'json/ext'
- - rescue LoadError
- - require 'json/pure'
- - end
- + require 'json/pure'
- end
- diff --git a/tests/test_helper.rb b/tests/test_helper.rb
- index 446c020..4c15af6 100644
- --- a/tests/test_helper.rb
- +++ b/tests/test_helper.rb
- @@ -1,14 +1,5 @@
- -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
- +$:.unshift 'lib'
- +require 'json'
-
- require 'test/unit'
- begin
|