Skip to content

Commit

Permalink
Use frozen string literal in root files
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Aug 13, 2017
1 parent 0ea00bb commit d17264d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
14 changes: 1 addition & 13 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

git_source(:github) { |repo| "https://github.com/#{repo}.git" }
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "net/http"

$:.unshift __dir__
Expand Down
2 changes: 2 additions & 0 deletions rails.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

version = File.read(File.expand_path("RAILS_VERSION", __dir__)).strip

Gem::Specification.new do |s|
Expand Down
2 changes: 2 additions & 0 deletions version.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d17264d

Please sign in to comment.