Sha256: 4ff4b06dc0343ee019340a54563fb15c63c151c496b4a4dde56a04a6998bb9b8

Contents?: true

Size: 173 Bytes

Versions: 17

Compression:

Stored size: 173 Bytes

Contents

module Pupper
  class ParseJson < FaradayMiddleware::ParseJson
    define_parser do |body|
      Oj.load(body, symbol_keys: true) unless body.strip.empty?
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pupper-0.2.2 lib/pupper/parse_json.rb
pupper-0.2.1 lib/pupper/parse_json.rb
pupper-0.2.0 lib/pupper/parse_json.rb
pupper-0.1.13 lib/pupper/parse_json.rb
pupper-0.1.12 lib/pupper/parse_json.rb
pupper-0.1.11 lib/pupper/parse_json.rb
pupper-0.1.10 lib/pupper/parse_json.rb
pupper-0.1.9 lib/pupper/parse_json.rb
pupper-0.1.8 lib/pupper/parse_json.rb
pupper-0.1.7 lib/pupper/parse_json.rb
pupper-0.1.6 lib/pupper/parse_json.rb
pupper-0.1.5 lib/pupper/parse_json.rb
pupper-0.1.4 lib/pupper/parse_json.rb
pupper-0.1.3 lib/pupper/parse_json.rb
pupper-0.1.2 lib/pupper/parse_json.rb
pupper-0.1.1 lib/pupper/parse_json.rb
pupper-0.1.0 lib/pupper/parse_json.rb