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.32.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.10 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.9 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.8 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.7 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.6 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.5 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.4 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.3 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.31.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.30.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.29.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.29.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.28.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.27.2 lib/spaceship/helper/plist_middleware.rb
spaceship-0.27.1 lib/spaceship/helper/plist_middleware.rb
spaceship-0.27.0 lib/spaceship/helper/plist_middleware.rb
spaceship-0.26.3 lib/spaceship/helper/plist_middleware.rb