lib/ridley/resources/cookbook_resource.rb in ridley-1.2.2 vs lib/ridley/resources/cookbook_resource.rb in ridley-1.2.3
- old
+ new
@@ -22,10 +22,10 @@
#
# @return [Hash]
# a hash containing keys which represent cookbook names and values which contain
# an array of strings representing the available versions
def all
- response = request(:get, self.class.resource_path)
+ response = request(:get, self.class.resource_path, num_versions: "all")
{}.tap do |cookbooks|
response.each do |name, details|
cookbooks[name] = details["versions"].collect { |version| version["version"] }
end