chef-zero 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -105,7 +105,7 @@ module ChefZero
|
|
105
105
|
return versions if !constraint
|
106
106
|
constraint = Gem::Requirement.new(constraint)
|
107
107
|
new_versions = versions[cookbook_name]
|
108
|
-
new_versions = new_versions.select { |version| constraint.satisfied_by?(Gem::Version.new(version)) }
|
108
|
+
new_versions = new_versions.select { |version| constraint.satisfied_by?(Gem::Version.new(version.dup)) }
|
109
109
|
result = versions.clone
|
110
110
|
result[cookbook_name] = new_versions
|
111
111
|
result
|
data/lib/chef_zero/version.rb
CHANGED