diff options
author | Freemor <freemor@freemor.ca> | 2019-05-24 08:42:33 -0300 |
---|---|---|
committer | Freemor <freemor@freemor.ca> | 2019-05-24 08:42:33 -0300 |
commit | e37e745aa9705938c10dc394a8fa3421907b5551 (patch) | |
tree | 2a8c129551481f5d3cf9b3bb76bd4abe84bc31cf /libre-testing/ruby/json-libre.patch | |
parent | df89ce36d9ba7244b7ecca622623aabfffbf56f0 (diff) | |
download | abslibre-e37e745aa9705938c10dc394a8fa3421907b5551.tar.gz abslibre-e37e745aa9705938c10dc394a8fa3421907b5551.tar.bz2 abslibre-e37e745aa9705938c10dc394a8fa3421907b5551.zip |
[libre-testing/ruby] Move rubygems to an optional depend in preparation for your-system-sanity which will prevent the installation of rubygems as it is a TPPM
Diffstat (limited to 'libre-testing/ruby/json-libre.patch')
-rw-r--r-- | libre-testing/ruby/json-libre.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libre-testing/ruby/json-libre.patch b/libre-testing/ruby/json-libre.patch new file mode 100644 index 000000000..04eced89d --- /dev/null +++ b/libre-testing/ruby/json-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 |