pure: fix time.rb incompatibility in Ruby 3.1+
commit226e3c0b12e6e31dff8fb70945c8bc6be48202f0
authorEric Wong <bofh@yhbt.net>
Thu, 16 Jun 2022 16:04:34 +0000 (16 16:04 +0000)
committerEric Wong <bofh@yhbt.net>
Thu, 16 Jun 2022 16:10:22 +0000 (16 16:10 +0000)
treecfc5bdf0b69b677b9e81891860241f0430bbe0e2
parent10f13b886b8a76889f5442f7347159d3677324d0
pure: fix time.rb incompatibility in Ruby 3.1+

The time.rb distributed with Ruby 3.1+ no longer has the
RFC2822_MONTH_NAME constant, as Time#strftime in Ruby is
locale-independent (unlike strftime(3) in C).

This doesn't affect the default C extension, it only affects the
pure Ruby code used for Ruby implementations without C extension
support.

cf. ruby.git commit 5307fab6619e26e05d791d68c35ceef2e923e8d5
lib/clogger/pure.rb