From 9eecf82f38ab780be773836a729fc3d6c8c02d2e Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Fri, 22 Aug 2025 17:41:33 +0200 Subject: [PATCH] Opt-in for MFA requirement explicitly As a popular gem (over 180 million total downloads), `ethon` implicitly requires that all privileged operations by any of the owners require OTP. 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/ethon This commit also introduces additional metadata Ref: - https://blog.rubygems.org/2022/08/15/requiring-mfa-on-popular-gems.html - https://guides.rubygems.org/mfa-requirement-opt-in/ --- ethon.gemspec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ethon.gemspec b/ethon.gemspec index ed6c1ef..a451aed 100644 --- a/ethon.gemspec +++ b/ethon.gemspec @@ -26,4 +26,12 @@ Gem::Specification.new do |s| end end s.require_path = 'lib' + + s.metadata = { + 'bug_tracker_uri' => 'https://github.com/typhoeus/ethon/issues', + 'changelog_uri' => "https://github.com/typhoeus/ethon/blob/v#{s.version}/CHANGELOG.md", + 'documentation_uri' => "https://www.rubydoc.info/gems/ethon/#{s.version}", + 'rubygems_mfa_required' => 'true', + 'source_code_uri' => "https://github.com/typhoeus/ethon/tree/v#{s.version}" + } end