Skip to content

Commit

Permalink
Merge pull request #1351 from gmcgibbon/autoload_client
Browse files Browse the repository at this point in the history
Make clients autoload
  • Loading branch information
nickfloyd committed May 24, 2022
2 parents 8b1851a + be99544 commit 8697ed8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/octokit.rb
@@ -1,10 +1,11 @@
require 'octokit/client'
require 'octokit/enterprise_admin_client'
require 'octokit/enterprise_management_console_client'
require 'octokit/default'
require 'octokit/configurable'

# Ruby toolkit for the GitHub API
module Octokit
autoload(:Client, File.join(__dir__, 'octokit/client'))
autoload(:EnterpriseAdminClient, File.join(__dir__, 'octokit/enterprise_admin_client'))
autoload(:EnterpriseManagementConsoleClient, File.join(__dir__, 'octokit/enterprise_management_console_client'))

class << self
include Octokit::Configurable
Expand Down
1 change: 0 additions & 1 deletion lib/octokit/client.rb
Expand Up @@ -2,7 +2,6 @@
require 'octokit/warnable'
require 'octokit/arguments'
require 'octokit/repo_arguments'
require 'octokit/configurable'
require 'octokit/authentication'
require 'octokit/gist'
require 'octokit/rate_limit'
Expand Down

0 comments on commit 8697ed8

Please sign in to comment.