[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
This commit is contained in:
Earlopain 2025-03-19 16:41:49 +01:00 committed by git
parent e5e160475b
commit b5e9a2da4c

View File

@ -9,7 +9,7 @@ module Prism
location = location[0].label if location location = location[0].label if location
suggest = replacements.map { |replacement| "#{self.class}##{replacement}" } suggest = replacements.map { |replacement| "#{self.class}##{replacement}" }
warn(<<~MSG, category: :deprecated) warn(<<~MSG)
[deprecation]: #{self.class}##{location} is deprecated and will be \ [deprecation]: #{self.class}##{location} is deprecated and will be \
removed in the next major version. Use #{suggest.join("/")} instead. removed in the next major version. Use #{suggest.join("/")} instead.
#{(caller(1, 3) || []).join("\n")} #{(caller(1, 3) || []).join("\n")}