From dc31f1ce96ca4f4a968c7503f910a7334b998bc1 Mon Sep 17 00:00:00 2001 From: Eric Proulx Date: Sun, 1 Sep 2024 18:43:56 +0200 Subject: [PATCH] Adds rubygems_mfa_required to gemspec (#2493) * Adds rubygems_mfa_required to gemspec * Add CHANGELOG.md entry --- .rubocop_todo.yml | 8 -------- CHANGELOG.md | 1 + grape.gemspec | 3 ++- 3 files changed, 3 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/CHANGELOG.md b/CHANGELOG.md index 465f6fc89a..16182f6356 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,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). * [#2489](https://github.com/ruby-grape/grape/pull/2489): Add Rails 7.2 in CI workflow - [@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 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'