Module: Octokit

Extended by:
Configuration
Defined in:
lib/octokit.rb,
lib/octokit/gist.rb,
lib/octokit/error.rb,
lib/octokit/client.rb,
lib/octokit/request.rb,
lib/octokit/version.rb,
lib/octokit/connection.rb,
lib/octokit/repository.rb,
lib/octokit/client/gists.rb,
lib/octokit/client/pulls.rb,
lib/octokit/client/users.rb,
lib/octokit/client/events.rb,
lib/octokit/client/issues.rb,
lib/octokit/client/labels.rb,
lib/octokit/configuration.rb,
lib/octokit/authentication.rb,
lib/octokit/client/commits.rb,
lib/octokit/client/network.rb,
lib/octokit/client/objects.rb,
lib/octokit/client/downloads.rb,
lib/octokit/client/timelines.rb,
lib/octokit/client/milestones.rb,
lib/octokit/client/repositories.rb,
lib/octokit/client/organizations.rb,
lib/octokit/client/pub_sub_hubbub.rb,
lib/octokit/client/pub_sub_hubbub/service_hooks.rb

Defined Under Namespace

Modules: Authentication, Configuration, Connection, Request Classes: BadGateway, BadRequest, Client, Error, Forbidden, Gist, InternalServerError, NotAcceptable, NotFound, NotImplemented, Repository, ServiceUnavailable, Unauthorized, UnprocessableEntity

Constant Summary collapse

VERSION =
"1.2.0".freeze

Constants included from Configuration

Configuration::DEFAULT_ADAPTER, Configuration::DEFAULT_API_VERSION, Configuration::DEFAULT_AUTO_TRAVERSAL, Configuration::DEFAULT_USER_AGENT, Configuration::VALID_OPTIONS_KEYS

Class Method Summary collapse

Methods included from Configuration

configure, extended, options, reset

Class Method Details

.method_missing(method, *args, &block) ⇒ Object

Delegate to Octokit::Client.new


16
17
18
19
# File 'lib/octokit.rb', line 16

def method_missing(method, *args, &block)
  return super unless new.respond_to?(method)
  new.send(method, *args, &block)
end

.new(options = {}) ⇒ Octokit::Client

Alias for Octokit::Client.new

Returns:


11
12
13
# File 'lib/octokit.rb', line 11

def new(options={})
  Octokit::Client.new(options)
end

.respond_to?(method, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/octokit.rb', line 21

def respond_to?(method, include_private=false)
  new.respond_to?(method, include_private) || super(method, include_private)
end