8000 disable shareable_constant_value for CI · mame/ruby@c647205 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit c647205

Browse files
committed
disable shareable_constant_value for CI
To debug CI failures on FreeBSD, disable `shareable_constant_value`.
1 parent 4ca2719 commit c647205

File tree

< 8000 div class="d-flex flex-items-center flex-justify-between gap-2 pt-3 pt-lg-4 pb-2 position-sticky top-0 color-bg-default" style="z-index:2">

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lib/time.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,10 +480,17 @@ def strptime(date, format, now=self.now)
480480
t
481481
end
482482

483-
MonthValue = { # :nodoc:
483+
# TODO: CI failure on FreeBSD
484+
# http://rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20210425T203001Z.fail.html.gz
485+
# shareable_constant_value: none
486+
487+
MonthValue = Ractor.make_shareable({ # :nodoc:
484488
'JAN' => 1, 'FEB' => 2, 'MAR' => 3, 'APR' => 4, 'MAY' => 5, 'JUN' => 6,
485489
'JUL' => 7, 'AUG' => 8, 'SEP' => 9, 'OCT' =>10, 'NOV' =>11, 'DEC' =>12
486-
}
490+
})
491+
492+
# shareable_constant_value: literal
493+
487494

488495
#
489496
# Parses +date+ as date-time defined by RFC 2822 and converts it to a Time

0 commit comments

Comments
 (0)
0