diff options
author | Kir Shatrov <shatrov@me.com> | 2017-07-09 20:49:52 +0300 |
---|---|---|
committer | Kir Shatrov <shatrov@me.com> | 2017-07-09 20:50:52 +0300 |
commit | 14ece5e4292053e7a40e9bd80c447745f721e217 (patch) | |
tree | a4dafa29ffc8419449a6edab6abcd8554a2b9000 /activejob/test/jobs | |
parent | 0b6309d6bc9712c06fdc42dda8ae8bd695401b7c (diff) | |
download | rails-14ece5e4292053e7a40e9bd80c447745f721e217.tar.gz rails-14ece5e4292053e7a40e9bd80c447745f721e217.tar.bz2 rails-14ece5e4292053e7a40e9bd80c447745f721e217.zip |
Use frozen-string-literal in ActiveJob
Diffstat (limited to 'activejob/test/jobs')
-rw-r--r-- | activejob/test/jobs/application_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/callback_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/gid_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/hello_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/inherited_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/kwargs_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/logging_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/nested_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/overridden_logging_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/provider_jid_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/queue_adapter_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/queue_as_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/rescue_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/retry_job.rb | 1 | ||||
-rw-r--r-- | activejob/test/jobs/translated_hello_job.rb | 1 |
15 files changed, 15 insertions, 0 deletions
diff --git a/activejob/test/jobs/application_job.rb b/activejob/test/jobs/application_job.rb index a009ace51c..32fe70b8e4 100644 --- a/activejob/test/jobs/application_job.rb +++ b/activejob/test/jobs/application_job.rb @@ -1,2 +1,3 @@ +# frozen_string_literal: true class ApplicationJob < ActiveJob::Base end diff --git a/activejob/test/jobs/callback_job.rb b/activejob/test/jobs/callback_job.rb index ca2a8e031a..7c5b161437 100644 --- a/activejob/test/jobs/callback_job.rb +++ b/activejob/test/jobs/callback_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class CallbackJob < ActiveJob::Base before_perform ->(job) { job.history << "CallbackJob ran before_perform" } after_perform ->(job) { job.history << "CallbackJob ran after_perform" } diff --git a/activejob/test/jobs/gid_job.rb b/activejob/test/jobs/gid_job.rb index c7cfa6e7a2..c43e25a796 100644 --- a/activejob/test/jobs/gid_job.rb +++ b/activejob/test/jobs/gid_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" class GidJob < ActiveJob::Base diff --git a/activejob/test/jobs/hello_job.rb b/activejob/test/jobs/hello_job.rb index 126fefae00..79e1d6a6f4 100644 --- a/activejob/test/jobs/hello_job.rb +++ b/activejob/test/jobs/hello_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" class HelloJob < ActiveJob::Base diff --git a/activejob/test/jobs/inherited_job.rb b/activejob/test/jobs/inherited_job.rb index 60fca66f88..58b6582154 100644 --- a/activejob/test/jobs/inherited_job.rb +++ b/activejob/test/jobs/inherited_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "application_job" class InheritedJob < ApplicationJob diff --git a/activejob/test/jobs/kwargs_job.rb b/activejob/test/jobs/kwargs_job.rb index 9f9d809673..ccd9811595 100644 --- a/activejob/test/jobs/kwargs_job.rb +++ b/activejob/test/jobs/kwargs_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" class KwargsJob < ActiveJob::Base diff --git a/activejob/test/jobs/logging_job.rb b/activejob/test/jobs/logging_job.rb index 119b32fa67..1a47601fde 100644 --- a/activejob/test/jobs/logging_job.rb +++ b/activejob/test/jobs/logging_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class LoggingJob < ActiveJob::Base def perform(dummy) logger.info "Dummy, here is it: #{dummy}" diff --git a/activejob/test/jobs/nested_job.rb b/activejob/test/jobs/nested_job.rb index 21b7692cd1..891a2f952e 100644 --- a/activejob/test/jobs/nested_job.rb +++ b/activejob/test/jobs/nested_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class NestedJob < ActiveJob::Base def perform LoggingJob.perform_later "NestedJob" diff --git a/activejob/test/jobs/overridden_logging_job.rb b/activejob/test/jobs/overridden_logging_job.rb index 2b17a65142..808d6e30e6 100644 --- a/activejob/test/jobs/overridden_logging_job.rb +++ b/activejob/test/jobs/overridden_logging_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class OverriddenLoggingJob < ActiveJob::Base def perform(dummy) logger.info "Dummy, here is it: #{dummy}" diff --git a/activejob/test/jobs/provider_jid_job.rb b/activejob/test/jobs/provider_jid_job.rb index 0c8ba040f5..71ed23e9bb 100644 --- a/activejob/test/jobs/provider_jid_job.rb +++ b/activejob/test/jobs/provider_jid_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" class ProviderJidJob < ActiveJob::Base diff --git a/activejob/test/jobs/queue_adapter_job.rb b/activejob/test/jobs/queue_adapter_job.rb index 160dfd74ec..7058ab2087 100644 --- a/activejob/test/jobs/queue_adapter_job.rb +++ b/activejob/test/jobs/queue_adapter_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true class QueueAdapterJob < ActiveJob::Base self.queue_adapter = :inline end diff --git a/activejob/test/jobs/queue_as_job.rb b/activejob/test/jobs/queue_as_job.rb index 7dc318e736..ab3075aa77 100644 --- a/activejob/test/jobs/queue_as_job.rb +++ b/activejob/test/jobs/queue_as_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" class QueueAsJob < ActiveJob::Base diff --git a/activejob/test/jobs/rescue_job.rb b/activejob/test/jobs/rescue_job.rb index 62add4271a..fd78820bfe 100644 --- a/activejob/test/jobs/rescue_job.rb +++ b/activejob/test/jobs/rescue_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" class RescueJob < ActiveJob::Base diff --git a/activejob/test/jobs/retry_job.rb b/activejob/test/jobs/retry_job.rb index c02febc50c..b121296441 100644 --- a/activejob/test/jobs/retry_job.rb +++ b/activejob/test/jobs/retry_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" require "active_support/core_ext/integer/inflections" diff --git a/activejob/test/jobs/translated_hello_job.rb b/activejob/test/jobs/translated_hello_job.rb index 56e9f147b9..67ddca2f41 100644 --- a/activejob/test/jobs/translated_hello_job.rb +++ b/activejob/test/jobs/translated_hello_job.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require_relative "../support/job_buffer" class TranslatedHelloJob < ActiveJob::Base |