diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/provider/package/rubygems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb index be4f1a149c..0f2c236166 100644 --- a/lib/chef/provider/package/rubygems.rb +++ b/lib/chef/provider/package/rubygems.rb @@ -188,7 +188,7 @@ class Chef # Use the API that 'gem install' calls which does not pull down the rubygems universe begin rs = dependency_installer.resolve_dependencies gem_dependency.name, gem_dependency.requirement - rs.specs.select { |s| s.name == gem_dependency.name }.first + rs.specs.find { |s| s.name == gem_dependency.name } rescue Gem::UnsatisfiableDependencyError nil end |