From 9cdc025759278963080570c88e3db1a7771ab2b6 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Thu, 22 Aug 2024 18:17:20 +0200 Subject: [PATCH] Opt-in for MFA requirement explicitly (#1580) As a popular gem, `faraday` implicitly requires that all privileged operations by any of the owners require OTP. However, by explicitly setting `rubygems_mfa_required` metadata, the gem will show "NEW VERSIONS REQUIRE MFA" and "VERSION PUBLISHED WITH MFA" in the sidebar at https://rubygems.org/gems/faraday Ref: - https://blog.rubygems.org/2022/08/15/requiring-mfa-on-popular-gems.html - https://guides.rubygems.org/mfa-requirement-opt-in/ --- faraday.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/faraday.gemspec b/faraday.gemspec index ce9c91c9..3cf69004 100644 --- a/faraday.gemspec +++ b/faraday.gemspec @@ -32,6 +32,7 @@ Gem::Specification.new do |spec| 'changelog_uri' => "https://github.com/lostisland/faraday/releases/tag/v#{spec.version}", 'source_code_uri' => 'https://github.com/lostisland/faraday', - 'bug_tracker_uri' => 'https://github.com/lostisland/faraday/issues' + 'bug_tracker_uri' => 'https://github.com/lostisland/faraday/issues', + 'rubygems_mfa_required' => 'true' } end