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
|
Enabled: true
|
||||||
EnforcedStyle: always
|
EnforcedStyle: always
|
||||||
Include:
|
Include:
|
||||||
- 'activesupport/**/*'
|
|
||||||
- 'activemodel/**/*'
|
|
||||||
- 'actioncable/**/*'
|
|
||||||
- 'activejob/**/*'
|
|
||||||
- 'activerecord/**/*'
|
|
||||||
- 'activestorage/**/*'
|
|
||||||
- 'actionmailer/**/*'
|
|
||||||
- 'actionview/**/*'
|
|
||||||
- 'actionpack/**/*'
|
|
||||||
- 'ci/**/*'
|
|
||||||
- 'guides/**/*'
|
|
||||||
- 'tasks/**/*'
|
|
||||||
- 'tools/**/*'
|
|
||||||
Exclude:
|
Exclude:
|
||||||
|
- 'railties/**/*'
|
||||||
- 'actionview/test/**/*.builder'
|
- 'actionview/test/**/*.builder'
|
||||||
- 'actionview/test/**/*.ruby'
|
- 'actionview/test/**/*.ruby'
|
||||||
- 'actionpack/test/**/*.builder'
|
- 'actionpack/test/**/*.builder'
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
||||||
|
|
2
Rakefile
2
Rakefile
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "net/http"
|
require "net/http"
|
||||||
|
|
||||||
$:.unshift __dir__
|
$:.unshift __dir__
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
version = File.read(File.expand_path("RAILS_VERSION", __dir__)).strip
|
version = File.read(File.expand_path("RAILS_VERSION", __dir__)).strip
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Rails
|
module Rails
|
||||||
# Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
|
# Returns the version of the currently loaded Rails as a <tt>Gem::Version</tt>
|
||||||
def self.gem_version
|
def self.gem_version
|
||||||
|
|
Loading…
Reference in a new issue