Sha256: 2affeef44bfab78ec6b0839ea40abc63fd0dc3393745bde8dd98d9ab579a09af

Contents?: true

Size: 421 Bytes

Versions: 3

Compression:

Stored size: 421 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

3 entries across 3 versions & 1 rubygems

Version Path
fastlane_hotfix-2.165.1 spaceship/lib/spaceship/helper/plist_middleware.rb
fastlane_hotfix-2.165.0 spaceship/lib/spaceship/helper/plist_middleware.rb
fastlane_hotfix-2.187.0 spaceship/lib/spaceship/helper/plist_middleware.rb