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

[rubygems/rubygems] Fix jruby build

https://github.com/rubygems/rubygems/commit/cc255b774a
This commit is contained in:
David Rodríguez 2019-09-12 10:19:11 +02:00 committed by Hiroshi SHIBATA
parent 966915d807
commit 54839f0173
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -14,7 +14,11 @@ if RUBY_VERSION >= "2.5"
module_function define_method(:warn) {|*messages, **kw|
unless uplevel = kw[:uplevel]
return original_warn.call(*messages, **kw)
if Gem.java_platform?
return original_warn.call(*messages)
else
return original_warn.call(*messages, **kw)
end
end
# Ensure `uplevel` fits a `long`