Skip to content

Add #frozen_string_literal: true to all files #599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-7-0" do
gem "rails", "~> 7.0.0"
gem "concurrent-ruby", "< 1.3.5" # to avoid problem described in https://github.com/rails/rails/pull/54264
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gemspec
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/setup"
require "bundler/gem_tasks"
require "rake/testtask"
Expand Down
2 changes: 2 additions & 0 deletions jbuilder.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative "lib/jbuilder/version"

Gem::Specification.new do |s|
Expand Down
2 changes: 2 additions & 0 deletions lib/generators/rails/jbuilder_generator.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails/generators/named_base'
require 'rails/generators/resource_helpers'

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

require 'rails/generators'
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'

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

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

class Jbuilder
class Blank
def ==(other)
Expand Down
2 changes: 2 additions & 0 deletions lib/jbuilder/collection_renderer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'delegate'
require 'active_support/concern'
require 'action_view'
Expand Down
2 changes: 2 additions & 0 deletions lib/jbuilder/errors.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'jbuilder/jbuilder'

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

Jbuilder = Class.new(BasicObject)
2 changes: 2 additions & 0 deletions lib/jbuilder/jbuilder_dependency_tracker.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class Jbuilder::DependencyTracker
EXPLICIT_DEPENDENCY = /# Template Dependency: (\S+)/

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

require 'jbuilder/jbuilder'
require 'jbuilder/collection_renderer'
require 'action_dispatch/http/mime_type'
Expand Down
2 changes: 2 additions & 0 deletions lib/jbuilder/key_formatter.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'jbuilder/jbuilder'
require 'active_support/core_ext/array'

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

require 'rails'
require 'jbuilder/jbuilder_template'

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

class Jbuilder
VERSION = "2.13.0"
end