Skip to content

Commit

Permalink
Merge pull request #280 from ifad/chore/enable-frozen-string-literal-…
Browse files Browse the repository at this point in the history
…in-non-production-code

Add frozen string literal to non-production code
  • Loading branch information
tagliala authored Sep 14, 2024
2 parents 9b4e1b2 + 93b406b commit 4d0bb59
Show file tree
Hide file tree
Showing 22 changed files with 45 additions and 3 deletions.
6 changes: 4 additions & 2 deletions spec/heathen/convert_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# frozen_string_literal: true

require 'spec_helper'
require 'heathen'

class Heathen::Processor
def valid_step_1
job.content << ",step 1"
job.content += ",step 1"
end

def valid_step_2
job.content << ",step 2"
job.content += ",step 2"
end

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

require 'spec_helper'
require 'filemagic/ext'

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

require 'spec_helper'

RSpec.describe Heathen::Processor do
Expand Down
2 changes: 2 additions & 0 deletions spec/heathen/processor_methods/htmltotext_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Heathen::Processor do
Expand Down
2 changes: 2 additions & 0 deletions spec/heathen/processor_methods/libreoffice_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Heathen::Processor do
Expand Down
2 changes: 2 additions & 0 deletions spec/heathen/processor_methods/pdftotext_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Heathen::Processor do
Expand Down
2 changes: 2 additions & 0 deletions spec/heathen/processor_methods/tesseract_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Heathen::Processor do
Expand Down
2 changes: 2 additions & 0 deletions spec/heathen/processor_methods/wkhtmltopdf_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

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

require 'fileutils'

def tmp_storage_dir
Expand Down
2 changes: 2 additions & 0 deletions spec/integration/callback.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

#
# Simple sinatra app to receive and display callbacks
#
Expand Down
2 changes: 2 additions & 0 deletions spec/integration/standard_tasks_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'

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

require 'spec_helper'
require 'app'

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

require 'spec_helper'
require 'autoheathen'
require 'tempfile'
Expand Down
2 changes: 2 additions & 0 deletions spec/lib/autoheathen/email_processor_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'spec_helper'
require 'autoheathen'

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

require 'spec_helper'
require 'config'

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

require 'spec_helper'

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

require 'spec_helper'

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

require 'spec_helper'
require 'colore'

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

require 'spec_helper'

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

require 'spec_helper'
require 'rest_client'

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

require 'spec_helper'
require 'utils'

Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literals: true
# frozen_string_literal: true

if ENV['COVERAGE'] || ENV['CI']
require 'simplecov'
Expand Down

0 comments on commit 4d0bb59

Please sign in to comment.