Skip to content

Commit 18c550a

Browse files
hsbtclaude
andcommitted
Keep the credential_store vocabulary lists private
They sit after `private`, which does not apply to constants, so both are public API today. Nothing outside the file reads them, and the setting has not shipped, so this is the last release where making them private costs nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent d12e41a commit 18c550a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/rubygems/config_file.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,10 @@ def warn_credential_store_fallback
853853
end
854854

855855
CREDENTIAL_STORE_OFF = %w[false 0 no off f n].freeze
856+
private_constant :CREDENTIAL_STORE_OFF
857+
856858
CREDENTIAL_STORE_ON = %w[true 1 yes on t y].freeze
859+
private_constant :CREDENTIAL_STORE_ON
857860

858861
#--
859862
# Anything that reads as a boolean is one, so RUBYGEMS_CREDENTIAL_STORE=0

0 commit comments

Comments
 (0)