Sha256: ca8afe8b16767716aec015eeaa9028ee57dee61878e5ebf03c5aea41f8cb6642
Contents?: true
Size: 417 Bytes
Versions: 19
Compression:
Stored size: 417 Bytes
Contents
module Pupa class Processor module Middleware # A Faraday response middleware for parsing JSON. # # @see https://github.com/lostisland/faraday_middleware/issues/30#issuecomment-4706892 class ParseJson < FaradayMiddleware::ResponseMiddleware dependency 'oj' define_parser do |body| Oj.load(body) unless body.strip.empty? end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems