Skip to content

Commit 81b99ca

Browse files
committed
Fix another potential RubyGems 1.3 warning.
1 parent 6dbce4c commit 81b99ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/passenger/application.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def self.detect_framework_version(app_root)
6464
# date because the Rails version may have been installed now.
6565
# So we reload the RubyGems cache and try again.
6666
Gem.clear_paths
67-
found_version = Gem.cache.search('rails', gem_version_spec).map do |x|
67+
search_results = Gem.cache.search(Gem::Dependency.new('rails', gem_version_spec), true)
68+
found_version = search_results.map do |x|
6869
x.version.version
6970
end.sort.last
7071
end

0 commit comments

Comments
 (0)