Sha256: 601bebba96e3342157c278c9014313bc056c062cd319338293c063ef4e5f1315
Contents?: true
Size: 291 Bytes
Versions: 17
Compression:
Stored size: 291 Bytes
Contents
require 'json' module PushbulletRuby class ParseJSON < Faraday::Response::Middleware def on_complete(env) env[:body] = JSON.parse(env[:body]) unless unparsable_status_codes.include?(env.status) end def unparsable_status_codes [204] end end end
Version data entries
17 entries across 16 versions & 2 rubygems