From 4186c199ecad0c7d4f90b1590428e1ce74b115f8 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sat, 13 Jul 2024 08:47:46 +0000 Subject: [PATCH] Rubocop --- .rubocop_todo.yml | 18 +----------------- acts_as_commentable.gemspec | 3 ++- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 2edeeb5..0ab3958 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,27 +1,11 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2024-07-13 08:42:11 UTC using RuboCop version 1.65.0. +# on 2024-07-13 08:47:24 UTC using RuboCop version 1.65.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # 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: Include. -# Include: **/*.gemspec -Gemspec/AddRuntimeDependency: - Exclude: - - 'acts_as_commentable.gemspec' - -# Offense count: 1 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: Severity, Include. -# Include: **/*.gemspec -Gemspec/RequireMFA: - Exclude: - - 'acts_as_commentable.gemspec' - # Offense count: 1 # Configuration parameters: Severity, Include. # Include: **/*.gemspec diff --git a/acts_as_commentable.gemspec b/acts_as_commentable.gemspec index cefd07a..0573aa6 100644 --- a/acts_as_commentable.gemspec +++ b/acts_as_commentable.gemspec @@ -14,5 +14,6 @@ Gem::Specification.new do |s| s.summary = 'Plugin/gem that provides comment functionality' s.license = 'MIT' - s.add_runtime_dependency 'activerecord', '~> 7.1.0' + s.add_dependency 'activerecord', '~> 7.1.0' + s.metadata['rubygems_mfa_required'] = 'true' end