Sha256: 247ad2b6befc26f9389bb98e06a956bcf5b3b8ad98d2ed6adca28c55c8fd2c77
Contents?: true
Size: 405 Bytes
Versions: 660
Compression:
Stored size: 405 Bytes
Contents
require 'faraday_middleware/response_middleware' module FaradayMiddleware class PlistMiddleware < ResponseMiddleware dependency do require 'plist' unless Object.const_defined?("Plist") end define_parser do |body| body = body.force_encoding("UTF-8") Plist.parse_xml(body) end end end Faraday::Response.register_middleware(plist: FaradayMiddleware::PlistMiddleware)
Version data entries
660 entries across 660 versions & 5 rubygems