Sha256: 6d626edff4ca5db4988afe5d2682004ee7afb60ae0143fe0e87434ff6e48f8b6
Contents?: true
Size: 928 Bytes
Versions: 2
Compression:
Stored size: 928 Bytes
Contents
require 'faraday_middleware' Dir[File.expand_path('../../../faraday/*.rb', __FILE__)].each{|file| require file} module Octokit class Client # @private module Connection private def connection(raw=false) options = { :proxy => proxy, :ssl => {:verify => false}, :url => endpoint, } Faraday::Connection.new(options) do |connection| connection.adapter(adapter) connection.basic_auth authentication[:login], authentication[:password] if authenticated? connection.use Faraday::Response::RaiseError unless raw case format.to_s.downcase when 'json' then connection.use Faraday::Response::ParseJson when 'xml' then connection.use Faraday::Response::ParseXml end connection.use Faraday::Response::Mashify end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octokit-0.4.1 | lib/octokit/client/connection.rb |
octokit-0.4.0 | lib/octokit/client/connection.rb |