Skip to content

Commit

Permalink
disable shareable_constant_value for CI
Browse files Browse the repository at this point in the history
To debug CI failures on FreeBSD, disable `shareable_constant_value`.
  • Loading branch information
ko1 committed Apr 26, 2021
1 parent 4ca2719 commit c647205
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -480,10 +480,17 @@ def strptime(date, format, now=self.now)
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
Expand Down

0 comments on commit c647205

Please sign in to comment.