Sha256: f467cbda08cf4ed724399a33cbf1362ca4fbd1cbbe450b627a66df7997e319cb
Contents?: true
Size: 924 Bytes
Versions: 38
Compression:
Stored size: 924 Bytes
Contents
require 'octokit/client' require 'octokit/default' # Ruby toolkit for the GitHub API module Octokit class << self include Octokit::Configurable # API client based on configured options {Configurable} # # @return [Octokit::Client] API wrapper def client @client = Octokit::Client.new(options) unless defined?(@client) && @client.same_options?(options) @client end # @private def respond_to_missing?(method_name, include_private=false); client.respond_to?(method_name, include_private); end if RUBY_VERSION >= "1.9" # @private def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end if RUBY_VERSION < "1.9" private def method_missing(method_name, *args, &block) return super unless client.respond_to?(method_name) client.send(method_name, *args, &block) end end end Octokit.setup
Version data entries
38 entries across 38 versions & 1 rubygems