diff options
author | Dan Rathbone <daniel.rathbone@bskyb.com> | 2013-12-17 10:49:41 +0000 |
---|---|---|
committer | Dan Rathbone <daniel.rathbone@bskyb.com> | 2013-12-17 10:49:41 +0000 |
commit | 15523055ebf4403edce69b5ebf1245284620f23d (patch) | |
tree | bc734c912ba95e5c6c141ff304a3475a28d16c22 /lib/chef/provider/package/rubygems.rb | |
parent | 5f1776bb8d1150d11556ad932992ea4e48f8af6e (diff) | |
download | chef-15523055ebf4403edce69b5ebf1245284620f23d.tar.gz |
CHEF-4890: Allow gem upgrades
This was preventing chef from finding the candidate version when
upgrading a gem and assuming there was nothing to do
Diffstat (limited to 'lib/chef/provider/package/rubygems.rb')
-rw-r--r-- | lib/chef/provider/package/rubygems.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/package/rubygems.rb b/lib/chef/provider/package/rubygems.rb index b423c199a0..35a359a1af 100644 --- a/lib/chef/provider/package/rubygems.rb +++ b/lib/chef/provider/package/rubygems.rb @@ -495,6 +495,7 @@ class Chef def target_version_already_installed? return false unless @current_resource && @current_resource.version return false if @current_resource.version.nil? + return false if @new_resource.version.nil? Gem::Requirement.new(@new_resource.version).satisfied_by?(Gem::Version.new(@current_resource.version)) end |