We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dbce4c commit 81b99caCopy full SHA for 81b99ca
lib/passenger/application.rb
@@ -64,7 +64,8 @@ def self.detect_framework_version(app_root)
64
# date because the Rails version may have been installed now.
65
# So we reload the RubyGems cache and try again.
66
Gem.clear_paths
67
- found_version = Gem.cache.search('rails', gem_version_spec).map do |x|
+ search_results = Gem.cache.search(Gem::Dependency.new('rails', gem_version_spec), true)
68
+ found_version = search_results.map do |x|
69
x.version.version
70
end.sort.last
71
end
0 commit comments