summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-04-26 11:31:58 +0900
committerKoichi Sasada <ko1@atdot.net>2021-04-26 11:33:07 +0900
commitc647205c3eb1f17409a859149bb7d2ea38b43bed (patch)
treeb4026e309798a3663d522faf86806c61b9bfce21 /lib
parent4ca271909d51a692a97363f41d2372a108ef771a (diff)
disable shareable_constant_value for CI
To debug CI failures on FreeBSD, disable `shareable_constant_value`.
Diffstat (limited to 'lib')
-rw-r--r--lib/time.rb11
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