Sha256: d3ef8d1f579155cd4b55e601cbe634d4f451a2495cd150f8b1bdc75259846daa

Contents?: true

Size: 404 Bytes

Versions: 26

Compression:

Stored size: 404 Bytes

Contents

require 'multi_json'

if !MultiJson.respond_to?(:load) || [
  Kernel,
  defined?(ActiveSupport::Dependencies::Loadable) && ActiveSupport::Dependencies::Loadable
].compact.include?(MultiJson.method(:load).owner)
  module MultiJson
    class <<self
      alias :load :decode
    end
  end
end
if !MultiJson.respond_to?(:dump)
  module MultiJson
    class <<self
      alias :dump :encode
    end
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
arvados-google-api-client-0.8.7.9 lib/compat/multi_json.rb
arvados-google-api-client-0.8.7.8 lib/compat/multi_json.rb
arvados-google-api-client-0.8.7.7 lib/compat/multi_json.rb
arvados-google-api-client-0.8.7.6 lib/compat/multi_json.rb
arvados-google-api-client-0.8.7.5 lib/compat/multi_json.rb
arvados-google-api-client-0.8.7.4 lib/compat/multi_json.rb
arvados-google-api-client-0.8.7.3 lib/compat/multi_json.rb
arvados-google-api-client-0.8.7.2 lib/compat/multi_json.rb
cure-google-api-client-0.8.7.1 lib/compat/multi_json.rb
google-api-client-0.8.7 lib/compat/multi_json.rb
google-api-client-0.8.6 lib/compat/multi_json.rb
google-api-client-0.8.5 lib/compat/multi_json.rb
google-api-client-0.8.4 lib/compat/multi_json.rb
google-api-client-0.8.3 lib/compat/multi_json.rb
google-api-client-0.8.2 lib/compat/multi_json.rb
google-api-client-0.8.1.1 lib/compat/multi_json.rb
google-api-client-0.8.1 lib/compat/multi_json.rb
google-api-client-0.8.0 lib/compat/multi_json.rb
google-api-client-0.7.1 lib/compat/multi_json.rb
google-api-client-0.7.0 lib/compat/multi_json.rb