Skip to content

Commit

Permalink
Guard < Ruby 3.0 for the repositories of default gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 23, 2020
1 parent 7e44ade commit f14aaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tool/lib/envutil.rb
Expand Up @@ -53,7 +53,7 @@ def capture_global_values
@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

Expand Down

0 comments on commit f14aaa2

Please sign in to comment.