diff options
author | Earlopain <[email protected]> | 2025-03-19 16:41:49 +0100 |
---|---|---|
committer | git <[email protected]> | 2025-03-19 21:03:17 +0000 |
commit | b5e9a2da4c668fe73f9fcca2b237def56c507464 (patch) | |
tree | 8243f343d35556104e374a92f40ee2a18441890a | |
parent | e5e160475bbd94ab90525132f7987cf29e9afc11 (diff) |
[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
-rw-r--r-- | lib/prism/node_ext.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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")} |