From 4831bb5babb0743dce7aa6db6c2258d62ff962af Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Fri, 23 Feb 2024 18:53:50 +0800 Subject: [PATCH] [ruby/irb] Turn on frozen literal in files (https://github.com/ruby/irb/pull/881) https://github.com/ruby/irb/commit/83d90550c2 --- lib/irb/command.rb | 2 +- lib/irb/command/base.rb | 2 +- lib/irb/command/chws.rb | 2 +- lib/irb/command/irb_info.rb | 2 +- lib/irb/command/load.rb | 2 +- lib/irb/command/pushws.rb | 2 +- lib/irb/command/subirb.rb | 2 +- lib/irb/completion.rb | 2 +- lib/irb/context.rb | 2 +- lib/irb/ext/change-ws.rb | 2 +- lib/irb/ext/eval_history.rb | 2 +- lib/irb/ext/loader.rb | 2 +- lib/irb/ext/multi-irb.rb | 2 +- lib/irb/ext/tracer.rb | 2 +- lib/irb/ext/use-loader.rb | 2 +- lib/irb/ext/workspaces.rb | 2 +- lib/irb/frame.rb | 2 +- lib/irb/help.rb | 2 +- lib/irb/init.rb | 2 +- lib/irb/input-method.rb | 2 +- lib/irb/lc/error.rb | 2 +- lib/irb/lc/ja/error.rb | 2 +- lib/irb/locale.rb | 2 +- lib/irb/notifier.rb | 2 +- lib/irb/output-method.rb | 2 +- lib/irb/ruby-lex.rb | 2 +- lib/irb/version.rb | 2 +- lib/irb/workspace.rb | 2 +- lib/irb/ws-for-case-2.rb | 2 +- lib/irb/xmp.rb | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/lib/irb/command.rb b/lib/irb/command.rb index 83ec3b1b43..4dc2994ba9 100644 --- a/lib/irb/command.rb +++ b/lib/irb/command.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/command.rb - irb command # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/command/base.rb b/lib/irb/command/base.rb index 880b781a46..3ce4f4d6c1 100644 --- a/lib/irb/command/base.rb +++ b/lib/irb/command/base.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # nop.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/command/chws.rb b/lib/irb/command/chws.rb index 341d516155..e1047686c5 100644 --- a/lib/irb/command/chws.rb +++ b/lib/irb/command/chws.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # change-ws.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/command/irb_info.rb b/lib/irb/command/irb_info.rb index 7fd3e2104a..00ce7a5f06 100644 --- a/lib/irb/command/irb_info.rb +++ b/lib/irb/command/irb_info.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true module IRB # :stopdoc: diff --git a/lib/irb/command/load.rb b/lib/irb/command/load.rb index 0558bc83b0..9e89a7b7f3 100644 --- a/lib/irb/command/load.rb +++ b/lib/irb/command/load.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # load.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/command/pushws.rb b/lib/irb/command/pushws.rb index a6fcd6a165..fadd10d6aa 100644 --- a/lib/irb/command/pushws.rb +++ b/lib/irb/command/pushws.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # change-ws.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/command/subirb.rb b/lib/irb/command/subirb.rb index 0a75706f5f..5cc7b8c6f8 100644 --- a/lib/irb/command/subirb.rb +++ b/lib/irb/command/subirb.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # multi.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 7b9c1bbbdd..ceb6eb087a 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/completion.rb - # by Keiju ISHITSUKA(keiju@ishitsuka.com) diff --git a/lib/irb/context.rb b/lib/irb/context.rb index 8eef3dff46..d2d0bed522 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/context.rb - irb context # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ext/change-ws.rb b/lib/irb/ext/change-ws.rb index c0f810a4c8..ec29f7a2bc 100644 --- a/lib/irb/ext/change-ws.rb +++ b/lib/irb/ext/change-ws.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/ext/cb.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ext/eval_history.rb b/lib/irb/ext/eval_history.rb index 1a04178b40..316e0b312e 100644 --- a/lib/irb/ext/eval_history.rb +++ b/lib/irb/ext/eval_history.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # history.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ext/loader.rb b/lib/irb/ext/loader.rb index 5bd25546fa..df5aaa8e5a 100644 --- a/lib/irb/ext/loader.rb +++ b/lib/irb/ext/loader.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # loader.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ext/multi-irb.rb b/lib/irb/ext/multi-irb.rb index 1c20489137..944c04c822 100644 --- a/lib/irb/ext/multi-irb.rb +++ b/lib/irb/ext/multi-irb.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/multi-irb.rb - multiple irb module # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ext/tracer.rb b/lib/irb/ext/tracer.rb index d498b5320b..fd6daa88ae 100644 --- a/lib/irb/ext/tracer.rb +++ b/lib/irb/ext/tracer.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/lib/tracer.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ext/use-loader.rb b/lib/irb/ext/use-loader.rb index b22e6d2bf4..f47d1cab04 100644 --- a/lib/irb/ext/use-loader.rb +++ b/lib/irb/ext/use-loader.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # use-loader.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ext/workspaces.rb b/lib/irb/ext/workspaces.rb index 9defc3e17b..f447948fbd 100644 --- a/lib/irb/ext/workspaces.rb +++ b/lib/irb/ext/workspaces.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # push-ws.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/frame.rb b/lib/irb/frame.rb index 14768bd8f6..4b697c8719 100644 --- a/lib/irb/frame.rb +++ b/lib/irb/frame.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # frame.rb - # by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd) diff --git a/lib/irb/help.rb b/lib/irb/help.rb index 6861d7efc8..c97656f0c4 100644 --- a/lib/irb/help.rb +++ b/lib/irb/help.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/help.rb - print usage module # by Keiju ISHITSUKA(keiju@ishitsuka.com) diff --git a/lib/irb/init.rb b/lib/irb/init.rb index 8acfdea8e1..107cba5929 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/init.rb - irb initialize module # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index c0e6c7e38b..a483ec671b 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/input-method.rb - input methods used irb # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/lc/error.rb b/lib/irb/lc/error.rb index 25f4ba2e1c..9041ec4d6c 100644 --- a/lib/irb/lc/error.rb +++ b/lib/irb/lc/error.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/lc/error.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb index 756b8b9afb..f7f2b13c45 100644 --- a/lib/irb/lc/ja/error.rb +++ b/lib/irb/lc/ja/error.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/lc/ja/error.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb index 1510af2ab4..2abcc7354b 100644 --- a/lib/irb/locale.rb +++ b/lib/irb/locale.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/locale.rb - internationalization module # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb index 612de3df16..dc1b9ef14b 100644 --- a/lib/irb/notifier.rb +++ b/lib/irb/notifier.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # notifier.rb - output methods used by irb # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb index 06fd37157c..69942f47a2 100644 --- a/lib/irb/output-method.rb +++ b/lib/irb/output-method.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # output-method.rb - output methods used by irb # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 754acfad05..cfe36be83f 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/ruby-lex.rb - ruby lexcal analyzer # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/version.rb b/lib/irb/version.rb index 585c837020..d9753d3eb6 100644 --- a/lib/irb/version.rb +++ b/lib/irb/version.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/version.rb - irb version definition file # by Keiju ISHITSUKA(keiju@ishitsuka.com) diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index aaf2f335e2..4c3b5e425e 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/workspace-binding.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/ws-for-case-2.rb b/lib/irb/ws-for-case-2.rb index a0f617e4ed..03f42d73d9 100644 --- a/lib/irb/ws-for-case-2.rb +++ b/lib/irb/ws-for-case-2.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # irb/ws-for-case-2.rb - # by Keiju ISHITSUKA(keiju@ruby-lang.org) diff --git a/lib/irb/xmp.rb b/lib/irb/xmp.rb index de29089429..b1bc53283e 100644 --- a/lib/irb/xmp.rb +++ b/lib/irb/xmp.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true # # xmp.rb - irb version of gotoken xmp # by Keiju ISHITSUKA(Nippon Rational Inc.)