ruby-changes:71885
From: Jean <ko1@a...>
Date: Fri, 20 May 2022 17:32:33 +0900 (JST)
Subject: [ruby-changes:71885] bd8df25cdc (master): [ruby/did_you_mean] Fix `frozen_string_literal is ignored after any tokens` warning. (https://github.com/ruby/did_you_mean/pull/172)
https://git.ruby-lang.org/ruby.git/commit/?id=bd8df25cdc From bd8df25cdc8e0e94cbc2eacc492a764e6b90833c Mon Sep 17 00:00:00 2001 From: Jean byroot Boussier <jean.boussier+github@s...> Date: Fri, 21 Jan 2022 11:04:56 +0100 Subject: [ruby/did_you_mean] Fix `frozen_string_literal is ignored after any tokens` warning. (https://github.com/ruby/did_you_mean/pull/172) ``` did_you_mean/formatters/verbose_formatter.rb:5: warning: `frozen_string_literal' is ignored after any tokens ``` https://github.com/ruby/did_you_mean/commit/531760f323 --- lib/did_you_mean/formatters/verbose_formatter.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/did_you_mean/formatters/verbose_formatter.rb b/lib/did_you_mean/formatters/verbose_formatter.rb index 8ee98fa070..f6623681f2 100644 --- a/lib/did_you_mean/formatters/verbose_formatter.rb +++ b/lib/did_you_mean/formatters/verbose_formatter.rb @@ -1,8 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/lib/did_you_mean/formatters/verbose_formatter.rb#L1 +# frozen-string-literal: true + warn "`require 'did_you_mean/formatters/verbose_formatter'` is deprecated and falls back to the default formatter. " require_relative '../formatter' -# frozen-string-literal: true module DidYouMean # For compatibility: VerboseFormatter = Formatter -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/