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

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

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

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