Skip to content

Commit 75ac5d4

Browse files
ccutrerhsbt
authored andcommitted
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"] ```
1 parent ae39077 commit 75ac5d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bundler/lib/bundler/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def help(cli = nil)
130130

131131
if man_pages.include?(command)
132132
man_page = man_pages[command]
133-
if Bundler.which("man") && !man_path.match?(%r{^file:/.+!/META-INF/jruby.home/.+})
133+
if Bundler.which("man") && !man_path.match?(%r{^(?:file:/.+!|uri:classloader:)/META-INF/jruby.home/.+})
134134
Kernel.exec("man", man_page)
135135
else
136136
puts File.read("#{man_path}/#{File.basename(man_page)}.ronn")

0 commit comments

Comments
 (0)