From 3369c13390468977da861a24d0e41fbc2df2c142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Busqu=C3=A9?= Date: Fri, 27 May 2022 10:41:56 +0200 Subject: [PATCH] Allow autoloading Octokit::Repository Since dd5612e269336ecd43f7f12dbae077ecbef4cea2, it's not possible to reference `Octokit::Repository` when only `lib/octokit.rb` file has been required. Steps to reproduce: > require 'octokit' > Octokit::Repository # => NameError --- lib/octokit.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/octokit.rb b/lib/octokit.rb index 17c0fac5f..4965b37ce 100644 --- a/lib/octokit.rb +++ b/lib/octokit.rb @@ -6,6 +6,7 @@ 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')) + autoload(:Repository, File.join(__dir__, 'octokit/repository')) class << self include Octokit::Configurable