From ba778f632c3f5e3315640f8757dc505560e3b6a4 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Sat, 20 Jan 2024 14:09:28 -0800 Subject: [PATCH] formatting --- Gemfile.lock | 82 +++++++++++++++++++++++++----------------- lib/faktory/job.rb | 2 +- lib/faktory/logging.rb | 2 +- test/batch_test.rb | 2 +- 4 files changed, 53 insertions(+), 35 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 4bdcc29..2408d1d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,71 +7,86 @@ PATH GEM remote: https://rubygems.org/ specs: - activejob (7.0.4.3) - activesupport (= 7.0.4.3) + activejob (7.1.3) + activesupport (= 7.1.3) globalid (>= 0.3.6) - activesupport (7.0.4.3) + activesupport (7.1.3) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) ast (2.4.2) - concurrent-ruby (1.2.2) - connection_pool (2.4.0) + base64 (0.2.0) + bigdecimal (3.1.6) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) docile (1.4.0) - globalid (1.1.0) - activesupport (>= 5.0) - i18n (1.13.0) + drb (2.2.0) + ruby2_keywords + globalid (1.2.1) + activesupport (>= 6.1) + i18n (1.14.1) concurrent-ruby (~> 1.0) - json (2.6.3) + json (2.7.1) language_server-protocol (3.17.0.3) - lint_roller (1.0.0) - minitest (5.18.0) - minitest-hooks (1.5.0) + lint_roller (1.1.0) + minitest (5.21.2) + minitest-hooks (1.5.1) minitest (> 5.3) - parallel (1.23.0) - parser (3.2.2.1) + mutex_m (0.2.0) + parallel (1.24.0) + parser (3.3.0.4) ast (~> 2.4.1) + racc + racc (1.7.3) rainbow (3.1.1) - rake (13.0.6) - regexp_parser (2.8.0) - rexml (3.2.5) - rubocop (1.50.2) + rake (13.1.0) + regexp_parser (2.9.0) + rexml (3.2.6) + rubocop (1.59.0) json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.2.0.0) + parser (>= 3.2.2.4) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) rexml (>= 3.2.5, < 4.0) - rubocop-ast (>= 1.28.0, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.28.1) + rubocop-ast (1.30.0) parser (>= 3.2.1.0) - rubocop-performance (1.16.0) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) + rubocop-performance (1.20.2) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.30.0, < 2.0) ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - standard (1.28.2) + standard (1.33.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) - rubocop (~> 1.50.2) + rubocop (~> 1.59.0) standard-custom (~> 1.0.0) - standard-performance (~> 1.0.1) - standard-custom (1.0.0) + standard-performance (~> 1.3) + standard-custom (1.0.2) lint_roller (~> 1.0) - standard-performance (1.0.1) - lint_roller (~> 1.0) - rubocop-performance (~> 1.16.0) + rubocop (~> 1.50) + standard-performance (1.3.1) + lint_roller (~> 1.1) + rubocop-performance (~> 1.20.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.4.2) + unicode-display_width (2.5.0) PLATFORMS ruby @@ -84,3 +99,6 @@ DEPENDENCIES rake simplecov standard + +BUNDLED WITH + 2.4.22 diff --git a/lib/faktory/job.rb b/lib/faktory/job.rb index c4d2aa0..4877e19 100644 --- a/lib/faktory/job.rb +++ b/lib/faktory/job.rb @@ -173,7 +173,7 @@ def faktory_class_attribute(*attrs) m = "#{name}=" undef_method(m) if method_defined?(m) || private_method_defined?(m) end - define_singleton_method("#{name}=") do |val| + define_singleton_method(:"#{name}=") do |val| singleton_class.class_eval do undef_method(name) if method_defined?(name) || private_method_defined?(name) define_method(name) { val } diff --git a/lib/faktory/logging.rb b/lib/faktory/logging.rb index de60715..1a89e3e 100644 --- a/lib/faktory/logging.rb +++ b/lib/faktory/logging.rb @@ -62,7 +62,7 @@ def self.logger end def self.logger=(log) - @logger = (log || Logger.new(File::NULL)) + @logger = log || Logger.new(File::NULL) end def logger diff --git a/test/batch_test.rb b/test/batch_test.rb index 5141e63..e268482 100644 --- a/test/batch_test.rb +++ b/test/batch_test.rb @@ -1,4 +1,4 @@ -require_relative "./helper" +require_relative "helper" class BatchTest < Minitest::Test def setup