Skip to content

Commit 14ece5e

Browse files
committed
Use frozen-string-literal in ActiveJob
1 parent 0b6309d commit 14ece5e

File tree

102 files changed

+102
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+102
-0
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Style/FrozenStringLiteralComment:
8282
EnforcedStyle: always
8383
Include:
8484
- 'activesupport/**/*'
85+
- 'activejob/**/*'
8586

8687
# Use `foo {}` not `foo{}`.
8788
Layout/SpaceBeforeBlockBraces:

activejob/Rakefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require "rake/testtask"
23

34
#TODO: add qu back to the list after it support Rails 5.1

activejob/activejob.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
23

34
Gem::Specification.new do |s|

activejob/bin/test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

34
COMPONENT_ROOT = File.expand_path("..", __dir__)
45
require_relative "../../tools/test"

activejob/lib/active_job.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
#--
23
# Copyright (c) 2014-2017 David Heinemeier Hansson
34
#

activejob/lib/active_job/arguments.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require "active_support/core_ext/hash"
23

34
module ActiveJob

activejob/lib/active_job/base.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require_relative "core"
23
require_relative "queue_adapter"
34
require_relative "queue_name"

activejob/lib/active_job/callbacks.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require "active_support/callbacks"
23

34
module ActiveJob

activejob/lib/active_job/configured_job.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
module ActiveJob
23
class ConfiguredJob #:nodoc:
34
def initialize(job_class, options = {})

activejob/lib/active_job/core.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
module ActiveJob
23
# Provides general behavior that will be included into every Active Job
34
# object that inherits from ActiveJob::Base.

0 commit comments

Comments
 (0)