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.16.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.15.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.15.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.15.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.14.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.14.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.14.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.13.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.13.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.12.3 lib/spaceship/helper/plist_middleware.rb
spaceship-0.12.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.12.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.12.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.11.5 lib/spaceship/helper/plist_middleware.rb
spaceship-0.11.4 lib/spaceship/helper/plist_middleware.rb
spaceship-0.11.3 lib/spaceship/helper/plist_middleware.rb
spaceship-0.11.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.11.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.11.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.10.3 lib/spaceship/helper/plist_middleware.rb