lib/berkshelf/locations/chef_api_location.rb in berkshelf-0.5.1 vs lib/berkshelf/locations/chef_api_location.rb in berkshelf-0.6.0.beta1
- old
+ new
@@ -175,12 +175,11 @@
def latest_version
graph = Solve::Graph.new
versions.each do |version, url|
graph.artifacts(name, version)
end
- graph.demands(name, ">= 0.0.0")
- version = Solve.it!(graph)[name]
+ version = Solve.it!(graph, [name])[name]
[ version, versions[version] ]
end
def to_hash