diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-29 13:53:44 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-29 13:53:44 -0700 |
commit | 784f022da32808b57b89fc39d2d2461a9f635be0 (patch) | |
tree | 676a0391d659a3d7946cbcd181472dd1f1a0f074 /lib/chef/provider/package/rubygems.rb | |
parent | ab9e8cf525742a9331877489b0facf756d34e41d (diff) | |
download | chef-784f022da32808b57b89fc39d2d2461a9f635be0.tar.gz |
fix gem_package regressionlcg/gem-package-regression
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/package/rubygems.rb')
-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 0fd9373dbf..b5f2340faf 100644 --- a/lib/chef/provider/package/rubygems.rb +++ b/lib/chef/provider/package/rubygems.rb @@ -170,7 +170,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.first + rs.specs.select { |s| s.name == gem_dependency.name }.first rescue Gem::UnsatisfiableDependencyError nil end |