From e432fccae80cfc0e71dc5b62dc7ed92a327129fa Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Aug 2026 04:05:41 +0000 Subject: [PATCH 1/2] Bump rubocop from 1.89.0 to 1.90.0 Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.89.0 to 1.90.0. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.89.0...v1.90.0) --- updated-dependencies: - dependency-name: rubocop dependency-version: 1.90.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3f775f9..3236e0d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -261,8 +261,8 @@ GEM rspec-mocks (>= 3.13.0, < 5.0.0) rspec-support (>= 3.13.0, < 5.0.0) rspec-support (3.13.7) - rubocop (1.89.0) - json (~> 2.3) + rubocop (1.90.0) + json (>= 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) parallel (>= 1.10) From 6d9f581579ce1e459f1adb94b67f6857782cfc7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89douard=20Bri=C3=A8re?= Date: Mon, 31 Aug 2026 07:03:38 +0100 Subject: [PATCH 2/2] style: Satisfy the new Style/DirectiveScope cop from RuboCop 1.90.0 RuboCop 1.90.0 ships Style/DirectiveScope, which rejects a `rubocop:disable`/`rubocop:enable` (or `rubocop:todo`/`enable`) comment pair that wraps only a single statement and asks for the one-line `disable-next`/`todo-next` form instead. Three such pairs were flagged, in lib/version_fu/version_fu.rb and version_fu.gemspec. This is rubocop's own autocorrect (`--only Style/DirectiveScope -A`); only comment lines change and the same cops stay suppressed for the same code. Claude-Session: https://claude.ai/code/session_016TgzEzGneJQhZ3wmhvysxE --- lib/version_fu/version_fu.rb | 6 ++---- version_fu.gemspec | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/version_fu/version_fu.rb b/lib/version_fu/version_fu.rb index 8570864..a6f6226 100644 --- a/lib/version_fu/version_fu.rb +++ b/lib/version_fu/version_fu.rb @@ -10,7 +10,7 @@ module ClassMethods # rubocop:todo Metrics/PerceivedComplexity # rubocop:todo Metrics/MethodLength - # rubocop:todo Metrics/AbcSize + # rubocop:todo-next Metrics/AbcSize def version_fu(options = {}, &) # rubocop:todo Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/MethodLength, Metrics/PerceivedComplexity return if include?(VersionFu::InstanceMethods) @@ -21,9 +21,8 @@ def version_fu(options = {}, &) # rubocop:todo Metrics/CyclomaticComplexity, Met self.versioned_class_name = options[:class_name] || 'Version' self.versioned_foreign_key = options[:foreign_key] || to_s.foreign_key - # rubocop:todo Layout/LineLength + # rubocop:todo-next Layout/LineLength self.versioned_table_name = options[:table_name] || "#{table_name_prefix}#{base_class.name.demodulize.underscore}_versions#{table_name_suffix}" - # rubocop:enable Layout/LineLength self.version_column = options[:version_column] || 'version' # Setup versions association @@ -86,7 +85,6 @@ def next ActiveRecord::Base.logger.warn 'Version Table not found' end end - # rubocop:enable Metrics/AbcSize # rubocop:enable Metrics/MethodLength # rubocop:enable Metrics/PerceivedComplexity diff --git a/version_fu.gemspec b/version_fu.gemspec index 668625a..9a18f7e 100644 --- a/version_fu.gemspec +++ b/version_fu.gemspec @@ -5,9 +5,8 @@ Gem::Specification.new do |gem| gem.version = '1.6.6' gem.required_ruby_version = '>= 3.2' gem.authors = ['Jordan McKible'] - # rubocop:todo Layout/LineLength + # rubocop:todo-next Layout/LineLength gem.description = "version_fu helps version your ActiveRecord models. It is based on Rick Olson's acts_as_versioned and is compatible with Rails 3." - # rubocop:enable Layout/LineLength gem.email = '' gem.licenses = 'MIT' gem.homepage = 'https://github.com/webtranslateit/version_fu'