From 2d8c6f6b5fbdff7cbc0f4ffd2801b9530f1a2143 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Sun, 9 Apr 2023 17:13:30 +0200 Subject: Opt-in for MFA requirement Make the gem more secure by requiring that all privileged operations by any of the owners require OTP. Ref: https://guides.rubygems.org/mfa-requirement-opt-in/ --- .rubocop_todo.yml | 7 ------- axlsx.gemspec | 2 ++ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index bb6a38f9..dab9ffb2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,13 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: Severity, Include. -# Include: **/*.gemspec -Gemspec/RequireMFA: - Exclude: - - 'axlsx.gemspec' - # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: IndentationWidth. # SupportedStyles: special_inside_parentheses, consistent, align_braces diff --git a/axlsx.gemspec b/axlsx.gemspec index 83531ce4..5f27130b 100644 --- a/axlsx.gemspec +++ b/axlsx.gemspec @@ -16,6 +16,8 @@ Gem::Specification.new do |s| eof s.files = Dir.glob("{lib/**/*,examples/**/*.rb,examples/**/*.jpeg}") + %w{LICENSE README.md Rakefile CHANGELOG.md .yardopts .yardopts_guide} + s.metadata = { 'rubygems_mfa_required' => 'true' } + s.add_runtime_dependency "htmlentities", "~> 4.3", '>= 4.3.4' s.add_runtime_dependency "marcel", '~> 1.0' s.add_runtime_dependency 'nokogiri', '~> 1.10', '>= 1.10.4' -- cgit v1.2.3