Sha256: 3f848385c5f1c8dd46c6a0e85d88ee0c4d39ade2e852b7599d7cf79aeac1e549

Contents?: true

Size: 350 Bytes

Versions: 172

Compression:

Stored size: 350 Bytes

Contents

require 'faraday_middleware/response_middleware'

module FaradayMiddleware
  class PlistMiddleware < ResponseMiddleware
    dependency do
      require 'plist' unless defined?(::Plist)
    end

    define_parser do |body|
      Plist.parse_xml(body)
    end
  end
end

Faraday::Response.register_middleware(plist: FaradayMiddleware::PlistMiddleware)

Version data entries

172 entries across 172 versions & 2 rubygems

Version Path
spaceship-0.38.5 lib/spaceship/helper/plist_middleware.rb
spaceship-0.38.4 lib/spaceship/helper/plist_middleware.rb
spaceship-0.38.3 lib/spaceship/helper/plist_middleware.rb
spaceship-0.38.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.38.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.38.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.37.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.36.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.36.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.36.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.35.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.34.3 lib/spaceship/helper/plist_middleware.rb
spaceship-0.34.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.34.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.34.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.33.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.32.4 lib/spaceship/helper/plist_middleware.rb
spaceship-0.32.3 lib/spaceship/helper/plist_middleware.rb
spaceship-0.32.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.32.1 lib/spaceship/helper/plist_middleware.rb