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) 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'