diff options
-rw-r--r-- | lib/time.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/time.rb b/lib/time.rb index bd20a1a8e9..6a13993a36 100644 --- a/lib/time.rb +++ b/lib/time.rb @@ -480,10 +480,17 @@ class Time t end - MonthValue = { # :nodoc: +# TODO: CI failure on FreeBSD +# http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20210425T203001Z.fail.html.gz +# shareable_constant_value: none + + MonthValue = Ractor.make_shareable({ # :nodoc: 'JAN' => 1, 'FEB' => 2, 'MAR' => 3, 'APR' => 4, 'MAY' => 5, 'JUN' => 6, 'JUL' => 7, 'AUG' => 8, 'SEP' => 9, 'OCT' =>10, 'NOV' =>11, 'DEC' =>12 - } + }) + +# shareable_constant_value: literal + # # Parses +date+ as date-time defined by RFC 2822 and converts it to a Time |