ruby-changes:57933
From: David <ko1@a...>
Date: Thu, 26 Sep 2019 21:47:57 +0900 (JST)
Subject: [ruby-changes:57933] 54839f0173 (master): [rubygems/rubygems] Fix jruby build
https://git.ruby-lang.org/ruby.git/commit/?id=54839f0173 From 54839f01736a8827be64c7f1720d226d37fa17d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 12 Sep 2019 10:19:11 +0200 Subject: [rubygems/rubygems] Fix jruby build https://github.com/rubygems/rubygems/commit/cc255b774a diff --git a/lib/rubygems/core_ext/kernel_warn.rb b/lib/rubygems/core_ext/kernel_warn.rb index 6c5b387..a1dd8ad 100755 --- a/lib/rubygems/core_ext/kernel_warn.rb +++ b/lib/rubygems/core_ext/kernel_warn.rb @@ -14,7 +14,11 @@ if RUBY_VERSION >= "2.5" https://github.com/ruby/ruby/blob/trunk/lib/rubygems/core_ext/kernel_warn.rb#L14 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` -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/