lib/mb/mixin/attribute_setting.rb in motherbrain-1.1.1 vs lib/mb/mixin/attribute_setting.rb in motherbrain-1.1.2
- old
+ new
@@ -231,14 +231,14 @@
# # => { "league" => "= 1.74.2", "pvpnet" => ">= 1.2.3" }
#
# @return [Hash]
def expand_constraints(cookbook_versions)
expanded = cookbook_versions.collect do |name, constraint|
- [name, Solve::Constraint.new(constraint).to_s]
+ [name, Semverse::Constraint.new(constraint).to_s]
end
Hash[expanded]
- rescue Solve::Errors::InvalidConstraintFormat => ex
+ rescue Semverse::InvalidConstraintFormat => ex
raise ArgumentError, ex
end
# Ensure the chef server can satisfy the desired cookbook version constraints
#