From 100ac63d9cd4978a2ec50be89adbc4d07d353e91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Mon, 22 Jan 2024 06:33:28 -1000 Subject: [PATCH] Require MFA to push to rubygems.org --- .rubocop.yml | 2 -- riemann-tools.gemspec | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 4bf094ec..923bcb78 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -7,8 +7,6 @@ AllCops: require: - rubocop-rake - rubocop-rspec -Gemspec/RequireMFA: - Enabled: false Gemspec/RequiredRubyVersion: Enabled: false Layout/HashAlignment: diff --git a/riemann-tools.gemspec b/riemann-tools.gemspec index b373ecd9..e8792a00 100644 --- a/riemann-tools.gemspec +++ b/riemann-tools.gemspec @@ -14,7 +14,8 @@ Gem::Specification.new do |spec| spec.license = 'MIT' spec.required_ruby_version = Gem::Requirement.new('>= 2.6.0') - spec.metadata['allowed_push_host'] = 'https://rubygems.org/' + spec.metadata['allowed_push_host'] = 'https://rubygems.org/' + spec.metadata['rubygems_mfa_required'] = 'true' spec.metadata['homepage_uri'] = spec.homepage spec.metadata['source_code_uri'] = spec.homepage