From e55bcba50e9a399d75a0ac8eb8ed65b2b56b9f6f Mon Sep 17 00:00:00 2001 From: Ayush Poddar Date: Fri, 12 Jul 2024 08:22:02 +0530 Subject: [PATCH] Remove rubygems_mfa_required setting and disable RequireMFA cop This setting was introduced automatically by the aforementioned rubocop cop,which makes it impossible to publish to rubygems automatically from a Githubaction with an API key, since one would always need the second factor. --- .rubocop.yml | 3 +++ colorls.gemspec | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index 607eb78..95285cd 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -113,6 +113,9 @@ Metrics/CyclomaticComplexity: Metrics/PerceivedComplexity: Max: 8 +Gemspec/RequireMFA: + Enabled: false + # TODO ----------------------------------------------------------------- Style/Documentation: diff --git a/colorls.gemspec b/colorls.gemspec index 0a7b5e4..8bf8d0a 100644 --- a/colorls.gemspec +++ b/colorls.gemspec @@ -81,5 +81,4 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rubocop-rspec', '~> 2.20.0' spec.add_development_dependency 'rubygems-tasks', '~> 0' spec.add_development_dependency 'simplecov', '~> 0.22.0' - spec.metadata['rubygems_mfa_required'] = 'true' end