Skip to content

Commit d17264d

Browse files
committed
Use frozen string literal in root files
1 parent 0ea00bb commit d17264d

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.rubocop.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -83,20 +83,8 @@ Style/FrozenStringLiteralComment:
8383
Enabled: true
8484
EnforcedStyle: always
8585
Include:
86-
- 'activesupport/**/*'
87-
- 'activemodel/**/*'
88-
- 'actioncable/**/*'
89-
- 'activejob/**/*'
90-
- 'activerecord/**/*'
91-
- 'activestorage/**/*'
92-
- 'actionmailer/**/*'
93-
- 'actionview/**/*'
94-
- 'actionpack/**/*'
95-
- 'ci/**/*'
96-
- 'guides/**/*'
97-
- 'tasks/**/*'
98-
- 'tools/**/*'
9986
Exclude:
87+
- 'railties/**/*'
10088
- 'actionview/test/**/*.builder'
10189
- 'actionview/test/**/*.ruby'
10290
- 'actionpack/test/**/*.builder'

Gemfile

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source "https://rubygems.org"
24

35
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

Rakefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require "net/http"
24

35
$:.unshift __dir__

rails.gemspec

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
version = File.read(File.expand_path("RAILS_VERSION", __dir__)).strip
24

35
Gem::Specification.new do |s|

version.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Rails
24
# Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
35
def self.gem_version

0 commit comments

Comments
 (0)