mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use frozen string literal in root files
This commit is contained in:
parent
0ea00bb5b0
commit
d17264d93f
5 changed files with 9 additions and 13 deletions
14
.rubocop.yml
14
.rubocop.yml
|
@ -83,20 +83,8 @@ Style/FrozenStringLiteralComment:
|
|||
Enabled: true
|
||||
EnforcedStyle: always
|
||||
Include:
|
||||
- 'activesupport/**/*'
|
||||
- 'activemodel/**/*'
|
||||
- 'actioncable/**/*'
|
||||
- 'activejob/**/*'
|
||||
- 'activerecord/**/*'
|
||||
- 'activestorage/**/*'
|
||||
- 'actionmailer/**/*'
|
||||
- 'actionview/**/*'
|
||||
- 'actionpack/**/*'
|
||||
- 'ci/**/*'
|
||||
- 'guides/**/*'
|
||||
- 'tasks/**/*'
|
||||
- 'tools/**/*'
|
||||
Exclude:
|
||||
- 'railties/**/*'
|
||||
- 'actionview/test/**/*.builder'
|
||||
- 'actionview/test/**/*.ruby'
|
||||
- 'actionpack/test/**/*.builder'
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||
|
|
2
Rakefile
2
Rakefile
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require "net/http"
|
||||
|
||||
$:.unshift __dir__
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
version = File.read(File.expand_path("RAILS_VERSION", __dir__)).strip
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Rails
|
||||
# Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
|
||||
def self.gem_version
|
||||
|
|
Loading…
Reference in a new issue