From b5e9a2da4c668fe73f9fcca2b237def56c507464 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Wed, 19 Mar 2025 16:41:49 +0100 Subject: [PATCH] [ruby/prism] Remove `category` keyword from `warn` call `category` is only supported from Ruby 3.0 onwards and prism can still run with Ruyb 2.7 https://github.com/ruby/prism/commit/335a193851 --- lib/prism/node_ext.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prism/node_ext.rb b/lib/prism/node_ext.rb index 4dfcebd638..0234ad1a91 100644 --- a/lib/prism/node_ext.rb +++ b/lib/prism/node_ext.rb @@ -9,7 +9,7 @@ module Prism location = location[0].label if location suggest = replacements.map { |replacement| "#{self.class}##{replacement}" } - warn(<<~MSG, category: :deprecated) + warn(<<~MSG) [deprecation]: #{self.class}##{location} is deprecated and will be \ removed in the next major version. Use #{suggest.join("/")} instead. #{(caller(1, 3) || []).join("\n")}