Skip to content

Commit

Permalink
Autocorrect Rubocop violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Mangara committed Jun 28, 2024
1 parent f280924 commit c958b91
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
18 changes: 9 additions & 9 deletions lib/job-iteration.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# frozen_string_literal: true

require "active_job"
require_relative "./job-iteration/version"
require_relative "./job-iteration/enumerator_builder"
require_relative "./job-iteration/interruption_adapters"
require_relative "./job-iteration/iteration"
require_relative "./job-iteration/log_subscriber"
require_relative "./job-iteration/railtie"
require_relative "job-iteration/version"
require_relative "job-iteration/enumerator_builder"
require_relative "job-iteration/interruption_adapters"
require_relative "job-iteration/iteration"
require_relative "job-iteration/log_subscriber"
require_relative "job-iteration/railtie"

module JobIteration
Deprecation = ActiveSupport::Deprecation.new("2.0", "JobIteration")
Expand Down Expand Up @@ -62,9 +62,9 @@ def logger
# Overrides interruption checks based on queue adapter.
# @deprecated - Use JobIteration::InterruptionAdapters.register(:foo, callable) instead.
def interruption_adapter=(adapter)
Deprecation.warn("Setting JobIteration.interruption_adapter is deprecated. "\
"Use JobIteration::InterruptionAdapters.register(:foo, callable) instead "\
"to register the callable (a proc, method, or other object responding to #call) "\
Deprecation.warn("Setting JobIteration.interruption_adapter is deprecated. " \
"Use JobIteration::InterruptionAdapters.register(:foo, callable) instead " \
"to register the callable (a proc, method, or other object responding to #call) " \
"as the interruption adapter for queue adapter :foo.")
@interruption_adapter = adapter
end
Expand Down
2 changes: 1 addition & 1 deletion lib/job-iteration/active_record_enumerator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./active_record_cursor"
require_relative "active_record_cursor"
module JobIteration
# Builds Enumerator based on ActiveRecord Relation. Supports enumerating on rows and batches.
# @see EnumeratorBuilder
Expand Down
10 changes: 5 additions & 5 deletions lib/job-iteration/enumerator_builder.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# frozen_string_literal: true

require_relative "./active_record_batch_enumerator"
require_relative "./active_record_enumerator"
require_relative "./csv_enumerator"
require_relative "./throttle_enumerator"
require_relative "./nested_enumerator"
require_relative "active_record_batch_enumerator"
require_relative "active_record_enumerator"
require_relative "csv_enumerator"
require_relative "throttle_enumerator"
require_relative "nested_enumerator"
require "forwardable"

module JobIteration
Expand Down

0 comments on commit c958b91

Please sign in to comment.