Sha256: 84dfac6beb1f0bd37990a13d09b6102ab3eca576f24837ff6b425bcddc9aea23

Contents?: true

Size: 575 Bytes

Versions: 3

Compression:

Stored size: 575 Bytes

Contents

module LinkedIn
  module FaradayMiddleware
    Dir[ File.expand_path('../faraday_middleware/**/*.rb', __FILE__) ].each { |f| require f }

    if Faraday::Middleware.respond_to? :register_middleware
      Faraday::Request.register_middleware linkedin_credentials: lambda { CredentialsRequest }
      Faraday::Request.register_middleware linkedin_format: lambda { FormatRequest }
      Faraday::Request.register_middleware linkedin_user_agent: lambda { UserAgentRequest }

      Faraday::Response.register_middleware linkedin_errors: lambda { ErrorResponse }
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
linkedin2-0.0.19 lib/linkedin/faraday_middleware.rb
linkedin2-0.0.18 lib/linkedin/faraday_middleware.rb
linkedin2-0.0.17 lib/linkedin/faraday_middleware.rb