blob: 188bc628e70fafa1fa92056dad2f254d0aa176a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
diff --git a/lib/json.rb b/lib/json.rb
index b5a6912415..bf93c663fe 100644
--- a/lib/json.rb
+++ b/lib/json.rb
@@ -55,9 +55,5 @@
module JSON
require 'json/version'
- begin
- require 'json/ext'
- rescue LoadError
- require 'json/pure'
- end
+ require 'json/pure'
end
--- a/tests/test_helper.rb
+++ b/tests/test_helper.rb
@@ -1,16 +1,7 @@
gem 'json', File.read('VERSION').chomp
-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
+$:.unshift 'lib'
+require 'json'
require 'test/unit'
begin
|