module Github

def default_middleware(options = {})

Other tags:
    Api: - private

Returns:
  • (Proc) -
def default_middleware(options = {})
  Middleware.default(options)
end

def deprecate(method, alternate_method=nil)

Each message is printed once.
Displays deprecation message to the user.
def deprecate(method, alternate_method=nil)
  return if deprecation_tracker.include? method
  deprecation_tracker << method
  message = <<-NOTICE
PRECATION_PREFIX}
method} is deprecated.
CE
  if alternate_method
    message << <<-ADDITIONAL
ease use #{alternate_method} instead.
TIONAL
  end
  warn_deprecation(message)
end

def deprecation_tracker

def deprecation_tracker
  @deprecation_tracker ||= []
end

def included(base)

def included(base)
  base.extend ClassMethods
end

def method_missing(method_name, *args, &block)

Other tags:
    Api: - private
def method_missing(method_name, *args, &block)
  if new.respond_to?(method_name)
    new.send(method_name, *args, &block)
  elsif configuration.respond_to?(method_name)
    Github.configuration.send(method_name, *args, &block)
  else
    super
  end
end

def new(options = {}, &block)

Other tags:
    Api: - public

Returns:
  • (Github::Client) -

Parameters:
  • options (Hash) --
def new(options = {}, &block)
  Client.new(options, &block)
end

def respond_to?(method_name, include_private = false)

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

def warn_deprecation(message)

def warn_deprecation(message)
  send :warn, message
end