Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkowalski committed Jan 16, 2024
1 parent a5cdf49 commit bdb40e6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ gemspec

gem "activerecord", "< 8" # needed for app_test test case
gem "minitest-reporters", "~> 1.6"
gem "rubocop", "~> 1.56"
gem "rubocop-minitest", "~> 0.32"
gem "rubocop-performance", "~> 1.19"
gem "rubocop", "~> 1.60"
gem "rubocop-minitest", "~> 0.34"
gem "rubocop-performance", "~> 1.20"
gem "rubocop-thread_safety", "~> 0.5"
gem "sqlite3", "~> 1.6"
gem "sqlite3", "~> 1.7"
4 changes: 2 additions & 2 deletions lib/concurrent_rails/promises.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ def wait(timeout = nil)
%i[on_fulfillment on_rejection on_resolution].each do |method|
define_method(method) do |*args, &callback_task|
rails_wrapped do
@instance = instance.__send__("#{method}_using", executor, *args, &callback_task)
@instance = instance.__send__(:"#{method}_using", executor, *args, &callback_task)
end

self
end

define_method("#{method}!") do |*args, &callback_task|
define_method(:"#{method}!") do |*args, &callback_task|
rails_wrapped do
@instance = instance.__send__(:add_callback, "callback_#{method}", args, callback_task)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/concurrent_rails/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class << self
result
end

define_method("#{test_mode}!") do
define_method(:"#{test_mode}!") do
@execution_mode = test_mode
end

define_method("#{test_mode}?") do
define_method(:"#{test_mode}?") do
execution_mode == test_mode
end
end
Expand Down

0 comments on commit bdb40e6

Please sign in to comment.