[ruby/psych] Refine Ruby 3.5 Set support.
commit1f2a9dc2a912118e77ec9f01e9ad4002ccde52b5
authorJean Boussier <[email protected]>
Sat, 3 May 2025 10:57:39 +0000 (3 12:57 +0200)
committerHiroshi SHIBATA <[email protected]>
Thu, 8 May 2025 09:03:04 +0000 (8 18:03 +0900)
tree4a4defceb58af3fbb3beaf15e0d08d5402d93775
parent49b4e0350d1a55f9372760b0b164039c7535b85e
[ruby/psych] Refine Ruby 3.5 Set support.

Use feature testing to detect native Set,
and don't rely on `Set#to_h` which wasn't intended
as a public method.

https://github.com/ruby/psych/commit/d58cff11af
ext/psych/lib/psych.rb
ext/psych/lib/psych/core_ext.rb