Sha256: 758d96a1bb14a54d6f3adbda15750d52153c3641a123e457ebce596555a397c6
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
# encoding: utf-8 require 'github_api/version' require 'github_api/configuration' require 'github_api/connection' module Github extend Configuration class << self # Alias for Github::Client.new # # @return [Github::Client] def new(options = {}) Github::Client.new(options) end # Delegate to Github::Client # def method_missing(method, *args, &block) return super unless new.respond_to?(method) new.send(method, *args, &block) end def respond_to?(method, include_private = false) new.respond_to?(method, include_private) || super(method, include_private) end end module AutoloadHelper def autoload_all(prefix, options) options.each do |const_name, path| autoload const_name, File.join(prefix, path) end end end extend AutoloadHelper autoload_all 'github_api', :API => 'api', :Client => 'client', :Repos => 'repos', :Request => 'request', :Response => 'response', :Error => 'error', :Issues => 'issues', :Gists => 'gists', :GitData => 'git_data', :Orgs => 'orgs', :PullRequests => 'pull_requests', :Users => 'users', :CoreExt => 'core_ext', :MimeType => 'mime_type', :Authorization => 'authorization' end # Github
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.2.2 | lib/github_api.rb |
github_api-0.2.1 | lib/github_api.rb |