X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=lib%2Fmcollective%2Fvendor%2Fjson%2Flib%2Fjson%2Fext.rb;fp=lib%2Fmcollective%2Fvendor%2Fjson%2Flib%2Fjson%2Fext.rb;h=7264a857fa06535bdee48e8cbb5356c8be454c0e;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/lib/mcollective/vendor/json/lib/json/ext.rb b/lib/mcollective/vendor/json/lib/json/ext.rb new file mode 100644 index 0000000..7264a85 --- /dev/null +++ b/lib/mcollective/vendor/json/lib/json/ext.rb @@ -0,0 +1,15 @@ +require 'json/common' + +module JSON + # This module holds all the modules/classes that implement JSON's + # functionality as C extensions. + module Ext + require 'json/ext/parser' + require 'json/ext/generator' + $DEBUG and warn "Using Ext extension for JSON." + JSON.parser = Parser + JSON.generator = Generator + end + + JSON_LOADED = true unless defined?(::JSON::JSON_LOADED) +end