blob: c1a8b5231ddb3c5e83b09c47415c1e69e4108718 (
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
|
--- a/lib/json.rb 2020-12-22 07:48:50.000000000 -0500
+++ b/lib/json.rb 2021-04-29 12:34:01.408506564 -0500
@@ -575,9 +575,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 2020-12-22 07:48:50.000000000 -0500
+++ b/tests/test_helper.rb 2021-04-29 12:32:24.248506757 -0500
@@ -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 File.join(__dir__, '../lib')
+require 'json'
require 'test/unit'
begin
|