diff options
author | Cody Cutrer <[email protected]> | 2025-03-13 09:21:12 -0600 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-06-13 12:55:14 +0900 |
commit | 22a7f6b6c257e2ceb10a1f2ef304d6e94b5b9b2b () | |
tree | 21fde65283e92446bd6706c29c2b25b3a3c43068 /lib | |
parent | 73532ecf3a84d3a6340bf029bd9f2b25f226c71b (diff) |
[rubygems/rubygems] Recognize JRuby loaded from a classloader, not just any JAR
Such is the case if you embed JRuby into an application dynamically (such as via OSGi). From my test environment: ``` irb(main):006:0> $LOADED_FEATURES.grep(/cli.rb/) => ["uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/bundler/cli.rb"] ``` https://.com/rubygems/rubygems/commit/75ac5d46a7
-rw-r--r-- | lib/bundler/cli.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -130,7 +130,7 @@ module Bundler if man_pages.include?(command) man_page = man_pages[command] - if Bundler.which("man") && !man_path.match?(%r{^file:/.+!/META-INF/jruby.home/.+}) Kernel.exec("man", man_page) else puts File.read("#{man_path}/#{File.basename(man_page)}.ronn") |