Sha256: e9e71721b3255a9039bdaa41a3652915f73d63059b712fe04b9de9198f41f1f6

Contents?: true

Size: 500 Bytes

Versions: 27

Compression:

Stored size: 500 Bytes

Contents

module Ridley
  # @author Jamie Winsor <jamie@vialstudios.com>
  module Middleware
    CONTENT_TYPE = 'content-type'.freeze

    require 'ridley/middleware/parse_json'
    require 'ridley/middleware/chef_response'
    require 'ridley/middleware/chef_auth'

    Faraday.register_middleware :request,
      chef_auth: -> { ChefAuth }

    Faraday.register_middleware :response,
      json: -> { ParseJson }

    Faraday.register_middleware :response,
      chef_response: -> { ChefResponse }
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
ridley-0.7.0 lib/ridley/middleware.rb
ridley-0.7.0.rc4 lib/ridley/middleware.rb
ridley-0.7.0.rc3 lib/ridley/middleware.rb
ridley-0.7.0.rc1 lib/ridley/middleware.rb
ridley-0.7.0.beta lib/ridley/middleware.rb
ridley-0.6.3 lib/ridley/middleware.rb
ridley-0.6.2 lib/ridley/middleware.rb
ridley-0.6.1 lib/ridley/middleware.rb
ridley-0.6.0 lib/ridley/middleware.rb
ridley-0.5.2 lib/ridley/middleware.rb
ridley-0.5.1 lib/ridley/middleware.rb
ridley-0.5.0 lib/ridley/middleware.rb
ridley-0.4.1 lib/ridley/middleware.rb
ridley-0.4.0 lib/ridley/middleware.rb
ridley-0.3.2 lib/ridley/middleware.rb
ridley-0.3.1 lib/ridley/middleware.rb
ridley-0.3.0 lib/ridley/middleware.rb
ridley-0.2.2 lib/ridley/middleware.rb
ridley-0.2.1 lib/ridley/middleware.rb
ridley-0.2.0 lib/ridley/middleware.rb