1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Guard < Ruby 3.0 for the repositories of default gems.

This commit is contained in:
Hiroshi SHIBATA 2020-12-22 16:09:52 +09:00
parent 7e44ade565
commit f14aaa2b12
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -53,7 +53,7 @@ module EnvUtil
@original_internal_encoding = Encoding.default_internal
@original_external_encoding = Encoding.default_external
@original_verbose = $VERBOSE
@original_warning = %i[deprecated experimental].to_h {|i| [i, Warning[i]]}
@original_warning = %i[deprecated experimental].to_h {|i| [i, Warning[i]]} if RUBY_VERSION > "2.7"
end
end