Skip to content

Commit ae6861d

Browse files
authored
Merge pull request #8567 from ccutrer/jruby-inside-osgi
Recognize JRuby loaded from a classloader, not just any JAR
2 parents ad8a26b + 75ac5d4 commit ae6861d

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)