From e44e2085f1e186264692096db1b7d426849ab7d7 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 22 Oct 2014 01:27:08 -0700 Subject: json bugfix: upgrading CertificateAuthority gem broke everything, since it depends on ActiveSupport, which in turn badly modifies how JSON works. This commit does some hacky stuff to prevent ActiveSupport from messing with JSON and allows us to mess with JSON. --- lib/override/json.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/override/json.rb (limited to 'lib/override/json.rb') diff --git a/lib/override/json.rb b/lib/override/json.rb new file mode 100644 index 0000000..8857a22 --- /dev/null +++ b/lib/override/json.rb @@ -0,0 +1,11 @@ +# +# This exists solely to prevent other gems we depend on from +# importing json/ext (e.g. require 'json'). +# +# If json/ext is imported, json/pure cannot work, and we heavily +# rely on the specific behavior of json/pure. +# +# This trick only works if this directory is early in the +# include path. +# +require 'json/pure' -- cgit v1.2.3