1
0
Fork 0
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:
Koichi ITO 2017-08-13 22:14:22 +09:00
parent 0ea00bb5b0
commit d17264d93f
5 changed files with 9 additions and 13 deletions

View file

@ -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'

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
require "net/http"
$:.unshift __dir__

View file

@ -1,3 +1,5 @@
# frozen_string_literal: true
version = File.read(File.expand_path("RAILS_VERSION", __dir__)).strip
Gem::Specification.new do |s|

View file

@ -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