Sha256: f0f15cc3a0147d3866e370b2f292a3bdf89b3af9a640327904b60acc4c350c94

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

# coding: utf-8
require 'faraday'
require 'faraday_middleware'

module GetGithubPubKeys
  module Connection
    def self.new( options = {} )
      Faraday.new( url: 'https://api.github.com' ) do |faraday|
        faraday.request :url_encoded
        faraday.request :json
        faraday.response :json, :content_type => /\bjson$/
        faraday.response :logger
        faraday.adapter Faraday.default_adapter
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
get_github_pub_keys-0.0.6 lib/get_github_pub_keys/connection.rb
get_github_pub_keys-0.0.5 lib/get_github_pub_keys/connection.rb
get_github_pub_keys-0.0.4 lib/get_github_pub_keys/connection.rb
get_github_pub_keys-0.0.3 lib/get_github_pub_keys/connection.rb
get_github_pub_keys-0.0.2 lib/get_github_pub_keys/connection.rb
get_github_pub_keys-0.0.1 lib/get_github_pub_keys/connection.rb