aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/override/json.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/override/json.rb')
-rw-r--r--lib/leap_cli/override/json.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/leap_cli/override/json.rb b/lib/leap_cli/override/json.rb
new file mode 100644
index 0000000..a7ae328
--- /dev/null
+++ b/lib/leap_cli/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' \ No newline at end of file