Sha256: 06ff1dd810c87bd6db7e89d574e75e3161fa1d9cd6246c665bf9add911e8bf7c

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'faraday_middleware'

module Gems
  module Connection
    private

    def connection
      Faraday.new(:url => 'http://rubygems.org') do |connection|
        connection.use Faraday::Request::UrlEncoded
        connection.use Faraday::Response::RaiseError
        connection.use Faraday::Response::Rashify
        connection.use Faraday::Response::ParseJson
        connection.adapter(Faraday.default_adapter)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gems-0.0.1 lib/gems/connection.rb