summaryrefslogtreecommitdiff
path: root/libre/ruby2.4/json-2.0.4-libre.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-07 13:59:22 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-07 13:59:22 -0500
commite442eb024321696e82d503881d4d85e7ae3cfd93 (patch)
tree91b1888a92d759e05d2238ee03aea0ea4be65018 /libre/ruby2.4/json-2.0.4-libre.patch
parent4cb0b9db8954305f8cd28c68107e76c1d6f71863 (diff)
downloadabslibre-e442eb024321696e82d503881d4d85e7ae3cfd93.tar.gz
abslibre-e442eb024321696e82d503881d4d85e7ae3cfd93.tar.bz2
abslibre-e442eb024321696e82d503881d4d85e7ae3cfd93.zip
Add ruby2.4
Diffstat (limited to 'libre/ruby2.4/json-2.0.4-libre.patch')
-rw-r--r--libre/ruby2.4/json-2.0.4-libre.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/ruby2.4/json-2.0.4-libre.patch b/libre/ruby2.4/json-2.0.4-libre.patch
new file mode 100644
index 000000000..04eced89d
--- /dev/null
+++ b/libre/ruby2.4/json-2.0.4-libre.patch
@@ -0,0 +1,32 @@
+--- a/lib/json.rb 2017-04-18 04:16:28.000000000 -0500
++++ b/lib/json.rb 2018-01-07 12:54:09.516275320 -0500
+@@ -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 2017-04-18 04:16:28.000000000 -0500
++++ b/tests/test_helper.rb 2018-01-07 12:55:21.359687486 -0500
+@@ -1,14 +1,5 @@
+-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