diff options
author | Koichi ITO <koic.ito@gmail.com> | 2017-08-13 21:55:53 +0900 |
---|---|---|
committer | Koichi ITO <koic.ito@gmail.com> | 2017-08-13 22:04:59 +0900 |
commit | 7d85e0f95cbc75fe0a6f10d1b9c575e415868857 (patch) | |
tree | d6b2ad4d1fe892b77726886d50065f67d4c60062 | |
parent | ef2016f8885ccd30c37ca97e76786503325f4e81 (diff) | |
download | rails-7d85e0f95cbc75fe0a6f10d1b9c575e415868857.tar.gz rails-7d85e0f95cbc75fe0a6f10d1b9c575e415868857.tar.bz2 rails-7d85e0f95cbc75fe0a6f10d1b9c575e415868857.zip |
Use frozen string literal in tools/
-rw-r--r-- | .rubocop.yml | 1 | ||||
-rwxr-xr-x | tools/console | 2 | ||||
-rwxr-xr-x | tools/profile | 2 | ||||
-rw-r--r-- | tools/test.rb | 2 |
4 files changed, 7 insertions, 0 deletions
diff --git a/.rubocop.yml b/.rubocop.yml index f84014d83a..cc725637ee 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -94,6 +94,7 @@ Style/FrozenStringLiteralComment: - 'actionpack/**/*' - 'guides/**/*' - 'tasks/**/*' + - 'tools/**/*' Exclude: - 'actionview/test/**/*.builder' - 'actionview/test/**/*.ruby' diff --git a/tools/console b/tools/console index 58c76fb1b6..ee08e22502 100755 --- a/tools/console +++ b/tools/console @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require "bundler" Bundler.setup diff --git a/tools/profile b/tools/profile index 01e513c67a..6fb571f43b 100755 --- a/tools/profile +++ b/tools/profile @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + # Profile require calls giving information about the time and the files that are called # when loading the provided file. # diff --git a/tools/test.rb b/tools/test.rb index 774e4ec6c7..1fd3ee30eb 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + $: << File.expand_path("test", COMPONENT_ROOT) require "bundler" |