Sha256: 73f06e291ac6e6f1c760c12b27dc561a1eed346bf417463b27382490a7f36b77
Contents?: true
Size: 1.87 KB
Versions: 2
Compression:
Stored size: 1.87 KB
Contents
# encoding: utf-8 require 'github_api/api/config' module Github # Stores the configuration class Configuration < API::Config # Other adapters are :typhoeus, :patron, :em_synchrony, :excon, :test property :adapter, default: :net_http # By default, don't traverse the page links property :auto_pagination, default: false property :follow_redirects, default: true # Basic authentication property :basic_auth # By default, don't set an application key property :client_id # By default, don't set an application secret property :client_secret # By default, don't set a user oauth access token property :oauth_token # The api endpoint used to connect to GitHub if none is set property :endpoint, default: 'https://api.github.com'.freeze # The web endpoint used to connect to GitHub if none is set property :site, default: 'https://github.com'.freeze # The web endpoint used to upload release assets to GitHub if none is set property :upload_endpoint, default: 'https://uploads.github.com'.freeze # The default SSL configuration property :ssl, default: { :ca_file => File.expand_path('../ssl_certs/cacerts.pem', __FILE__) } # By default the Accept header will make a request for JSON property :mime_type # The value sent in the http header for 'User-Agent' if none is set property :user_agent, default: "Github API Ruby Gem #{Github::VERSION}".freeze # By default uses the Faraday connection options if none is set property :connection_options, default: {} # Global repository name property :repo property :user property :org property :login property :password # By default display 30 resources property :per_page, default: 30 # Add Faraday::RackBuilder to overwrite middleware property :stack end # Configuration end # Github
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.17.0 | lib/github_api/configuration.rb |
github_api-0.16.0 | lib/github_api/configuration.rb |