ridley 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore
CHANGED
@@ -24,7 +24,7 @@ module Ridley
|
|
24
24
|
# a hash containing keys which represent cookbook names and values which contain
|
25
25
|
# an array of strings representing the available versions
|
26
26
|
def all
|
27
|
-
response = request(:get, self.class.resource_path)
|
27
|
+
response = request(:get, self.class.resource_path, num_versions: "all")
|
28
28
|
|
29
29
|
{}.tap do |cookbooks|
|
30
30
|
response.each do |name, details|
|
data/lib/ridley/version.rb
CHANGED
@@ -41,4 +41,20 @@ describe "Client API operations", type: "acceptance" do
|
|
41
41
|
cookbook.root_files.should have(2).items
|
42
42
|
end
|
43
43
|
end
|
44
|
+
|
45
|
+
describe "listing cookbooks" do
|
46
|
+
before do
|
47
|
+
chef_cookbook("ruby", "1.0.0")
|
48
|
+
chef_cookbook("ruby", "2.0.0")
|
49
|
+
chef_cookbook("elixir", "3.0.0")
|
50
|
+
chef_cookbook("elixir", "3.0.1")
|
51
|
+
end
|
52
|
+
|
53
|
+
it "returns all of the cookbooks on the server" do
|
54
|
+
all_cookbooks = subject.all
|
55
|
+
expect(all_cookbooks).to have(2).items
|
56
|
+
expect(all_cookbooks["ruby"]).to have(2).items
|
57
|
+
expect(all_cookbooks["elixir"]).to have(2).items
|
58
|
+
end
|
59
|
+
end
|
44
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ridley
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-06-
|
13
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|
@@ -454,7 +454,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
454
454
|
version: '0'
|
455
455
|
segments:
|
456
456
|
- 0
|
457
|
-
hash:
|
457
|
+
hash: -2669705474346805003
|
458
458
|
requirements: []
|
459
459
|
rubyforge_project:
|
460
460
|
rubygems_version: 1.8.23
|