Skip to content

Commit

Permalink
Merge pull request #1428 from octokit/rollback-autoload-PR-1351
Browse files Browse the repository at this point in the history
Reverts autoloading of modules change
  • Loading branch information
nickfloyd authored Jun 6, 2022
2 parents 6202e72 + 258f04f commit 76555e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/octokit.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
require 'octokit/default'
require 'octokit/configurable'
require 'octokit/client'
require 'octokit/enterprise_admin_client'
require 'octokit/enterprise_management_console_client'

# 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: 1 addition & 0 deletions lib/octokit/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
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 76555e5

Please sign in to comment.