[ruby/date] Removed workaround for assert_ractor

https://github.com/ruby/date/commit/700e44ef54
This commit is contained in:
Hiroshi SHIBATA 2025-06-04 14:24:43 +09:00 committed by git
parent 803526786a
commit ac1dfee44a

View File

@ -5,10 +5,6 @@ require 'date'
class TestDateParseRactor < Test::Unit::TestCase
def code(klass = Date, share: false)
<<~RUBY.gsub('Date', klass.name)
class Ractor
alias value take
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
share = #{share}
d = Date.parse('Aug 23:55')
Ractor.make_shareable(d) if share