Sha256: ea110eb713f74007a348661e0f0555d6b051e8e528c993e1d2dff141ee965dcf
Contents?: true
Size: 332 Bytes
Versions: 7
Compression:
Stored size: 332 Bytes
Contents
# This module holds shared logic that doesn't really belong anywhere else in the # gem. module Docker::Util extend self include Docker::Error def parse_json(body) JSON.parse(body) unless body.nil? || body.empty? || (body == 'null') rescue JSON::ParserError => ex raise UnexpectedResponseError, ex.message end end
Version data entries
7 entries across 7 versions & 1 rubygems