[ruby/psych] Replace Ruby 3.5 with Ruby 4.0

This commit updates the Ruby version to follow the commit in Ruby master branch.
6d81969b47

https://github.com/ruby/psych/commit/971b7de078
This commit is contained in:
Yasuo Honda 2025-11-11 23:44:30 +09:00 committed by git
parent ade2b51a3b
commit c07b2329ed

View File

@ -20,7 +20,7 @@ end
# Up to Ruby 3.4, Set was a regular object and was dumped as such
# by Pysch.
# Starting from Ruby 3.5 it's a core class written in C, so we have to implement
# Starting from Ruby 4.0 it's a core class written in C, so we have to implement
# #encode_with / #init_with to preserve backward compatibility.
if defined?(::Set) && Set.new.instance_variables.empty?
class Set