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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy