From e2bc06a27f7796954ba379f581c2762501246cdd Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 1 Sep 2024 13:47:24 +0200 Subject: [PATCH 1/2] Adds rubygems_mfa_required to gemspec --- .rubocop_todo.yml | 8 -------- grape.gemspec | 3 ++- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 10cc2c7ed8..81384c026d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,14 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: Severity, Include. -# Include: **/*.gemspec -Gemspec/RequireMFA: - Exclude: - - 'grape.gemspec' - # Offense count: 1 # Configuration parameters: AllowedMethods. # AllowedMethods: enums diff --git a/grape.gemspec b/grape.gemspec index e3383f9277..bdb4ba1c17 100644 --- a/grape.gemspec +++ b/grape.gemspec @@ -17,7 +17,8 @@ Gem::Specification.new do |s| 'bug_tracker_uri' => 'https://github.com/ruby-grape/grape/issues', 'changelog_uri' => "https://github.com/ruby-grape/grape/blob/v#{s.version}/CHANGELOG.md", 'documentation_uri' => "https://www.rubydoc.info/gems/grape/#{s.version}", - 'source_code_uri' => "https://github.com/ruby-grape/grape/tree/v#{s.version}" + 'source_code_uri' => "https://github.com/ruby-grape/grape/tree/v#{s.version}", + 'rubygems_mfa_required' => 'true' } s.add_runtime_dependency 'activesupport', '>= 6' From 5577fcd2dddc19ce6c12f27524ed8b1a2885e34d Mon Sep 17 00:00:00 2001 From: Eric Date: Sun, 1 Sep 2024 13:50:17 +0200 Subject: [PATCH 2/2] Add CHANGELOG.md entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1000c1a4c..9e0b3731b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * [#2475](https://github.com/ruby-grape/grape/pull/2475): Remove Grape::Util::Registrable - [@ericproulx](https://github.com/ericproulx). * [#2484](https://github.com/ruby-grape/grape/pull/2484): Refactor versioner middlewares - [@ericproulx](https://github.com/ericproulx). +* [#2493](https://github.com/ruby-grape/grape/pull/2493): MFA required when releasing - [@ericproulx](https://github.com/ericproulx). * Your contribution here. #### Fixes