Skip to content

Commit

Permalink
rubocop --only Style/FrozenStringLiteralComment -A
Browse files Browse the repository at this point in the history
  • Loading branch information
Irving-Betterment committed Dec 28, 2023
1 parent 0c3d659 commit 369af2c
Show file tree
Hide file tree
Showing 57 changed files with 114 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

appraise 'rails-6-1' do
gem 'actionmailer', '~> 6.1.0'
gem 'activejob', '~> 6.1.0'
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'bundler/gem_helper'
Bundler::GemHelper.install_tasks

Expand Down
2 changes: 2 additions & 0 deletions app/models/delayed/job.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class Job < ::ActiveRecord::Base
include Delayed::Backend::Base
Expand Down
2 changes: 2 additions & 0 deletions delayed.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Gem::Specification.new do |spec|
spec.authors = ['Nathan Griffith', 'Rowan McDonald', 'Cyrus Eslami', 'John Mileham', 'Brandon Keepers', 'Brian Ryckbost',
'Chris Gaffney', 'David Genord II', 'Erik Michaels-Ober', 'Matt Griffin', 'Steve Richert', 'Tobias Lütke']
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/rails_5_2.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/rails_6_0.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/rails_6_1.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/rails_7_0.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/rails_7_1.gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# This file was generated by Appraisal

source "https://rubygems.org"
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_support'
require 'active_support/core_ext/numeric/time'
require 'delayed/exceptions'
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/active_job_adapter.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class ActiveJobAdapter
def enqueue(job)
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/backend/base.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
module Backend
module Base
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/backend/job_preparer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
module Backend
class JobPreparer
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/engine.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class Engine < Rails::Engine
rake_tasks do
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/exceptions.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'timeout'

module Delayed
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/job_wrapper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class JobWrapper # rubocop:disable Betterment/ActiveJobPerformable
attr_accessor :job_data
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/lifecycle.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class InvalidCallback < RuntimeError; end

Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/message_sending.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_support/proxy_object'

module Delayed
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/monitor.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class Monitor
include Runnable
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/performable_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'mail'

module Delayed
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/performable_method.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class PerformableMethod
attr_accessor :object, :method_name, :args, :kwargs
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/plugin.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'active_support/core_ext/class/attribute'

module Delayed
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/plugins/connection.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
module Plugins
class Connection < Plugin
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/plugins/instrumentation.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
module Plugins
class Instrumentation < Plugin
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/priority.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class Priority < Numeric
# A Delayed::Priority represents a value that exists within a named range.
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/psych_ext.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
class PerformableMethod
# serialize to YAML
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/runnable.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
module Runnable
def start
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/serialization/active_record.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

if defined?(ActiveRecord)
module ActiveRecord
class Base
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/syck_ext.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class Module
yaml_tag 'tag:ruby.yaml.org,2002:module'

Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/tasks.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

namespace :delayed do
task delayed_environment: :environment do
Delayed::Worker.min_priority = ENV['MIN_PRIORITY'].to_i if ENV.key?('MIN_PRIORITY')
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/worker.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'timeout'
require 'active_support/dependencies'
require 'active_support/core_ext/numeric/time'
Expand Down
2 changes: 2 additions & 0 deletions lib/delayed/yaml_ext.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# These extensions allow properly serializing and autoloading of
# Classes, Modules and Structs

Expand Down
2 changes: 2 additions & 0 deletions lib/delayed_job.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# frozen_string_literal: true

require 'delayed'
2 changes: 2 additions & 0 deletions lib/delayed_job_active_record.rb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# frozen_string_literal: true

require 'delayed'
2 changes: 2 additions & 0 deletions lib/generators/delayed/generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails/generators/base'

module Delayed
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/delayed/migration_generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "generators/delayed/generator"
require "generators/delayed/next_migration_version"
require "rails/generators/migration"
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/delayed/next_migration_version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Delayed
module NextMigrationVersion
# while methods have moved around this has been the implementation
Expand Down
2 changes: 2 additions & 0 deletions spec/autoloaded/clazz.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Make sure this file does not get required manually
module Autoloaded
class Clazz
Expand Down
2 changes: 2 additions & 0 deletions spec/autoloaded/instance_clazz.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Autoloaded
class InstanceClazz
def perform; end
Expand Down
2 changes: 2 additions & 0 deletions spec/autoloaded/instance_struct.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Autoloaded
InstanceStruct = ::Struct.new(nil)
class InstanceStruct
Expand Down
2 changes: 2 additions & 0 deletions spec/autoloaded/struct.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# Make sure this file does not get required manually
module Autoloaded
Struct = ::Struct.new(nil)
Expand Down
2 changes: 2 additions & 0 deletions spec/delayed/active_job_adapter_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

RSpec.describe Delayed::ActiveJobAdapter do
Expand Down
2 changes: 2 additions & 0 deletions spec/delayed/job_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe Delayed::Job do
Expand Down
2 changes: 2 additions & 0 deletions spec/delayed/monitor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

RSpec.describe Delayed::Monitor do
Expand Down
2 changes: 2 additions & 0 deletions spec/delayed/plugins/instrumentation_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

RSpec.describe Delayed::Plugins::Instrumentation do
Expand Down
2 changes: 2 additions & 0 deletions spec/delayed/priority_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

RSpec.describe Delayed::Priority do
Expand Down
2 changes: 2 additions & 0 deletions spec/delayed/serialization/active_record_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "helper"

describe ActiveRecord do
Expand Down
2 changes: 2 additions & 0 deletions spec/delayed/tasks_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe 'rake' do
Expand Down
2 changes: 2 additions & 0 deletions spec/helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rspec'
require 'timecop'

Expand Down
2 changes: 2 additions & 0 deletions spec/lifecycle_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe Delayed::Lifecycle do
Expand Down
2 changes: 2 additions & 0 deletions spec/message_sending_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe Delayed::MessageSending do
Expand Down
2 changes: 2 additions & 0 deletions spec/performable_mailer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe Delayed::PerformableMailer do
Expand Down
2 changes: 2 additions & 0 deletions spec/performable_method_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe Delayed::PerformableMethod do
Expand Down
2 changes: 2 additions & 0 deletions spec/psych_ext_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'
require 'active_support/core_ext/string/strip'

Expand Down
2 changes: 2 additions & 0 deletions spec/sample_jobs.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

NamedJob = Struct.new(:perform)
class NamedJob
def display_name
Expand Down
2 changes: 2 additions & 0 deletions spec/worker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe Delayed::Worker do
Expand Down
2 changes: 2 additions & 0 deletions spec/yaml_ext_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'helper'

describe 'YAML' do
Expand Down

0 comments on commit 369af2c

Please sign in to comment.