berkshelf-api 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cfca2d0b27a4de920ab8ebebc1696e54215d99c8
|
4
|
+
data.tar.gz: e1eb91c9fb7aee0533c880ee52ba383c1c5bcca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 266934ce6f48ec6e47eaa3ac3f666bf697c35e971f663bd5344a71b4d1e872334f4c74c7b2cbf69a2e24519efc3a81ba67d7272e959d2ab7060c4c9fccebda1a
|
7
|
+
data.tar.gz: 9bb4b00e20252fefc1e88c8b7c2d3477736b1e31428568b4281d47bd5ed142741bd106ab3a1855ba84e4bade823e949733ef483e15cb3d1cb794d30899534636
|
@@ -52,7 +52,7 @@ module Berkshelf::API
|
|
52
52
|
|
53
53
|
if cookbook_metadata.version.to_s == match[:version].to_s
|
54
54
|
cookbook_versions << RemoteCookbook.new(cookbook_metadata.name, cookbook_metadata.version,
|
55
|
-
self.class.worker_type, repo.html_url, priority)
|
55
|
+
self.class.worker_type, repo.html_url, priority, {:repo_name => repo.name} )
|
56
56
|
else
|
57
57
|
log.warn "Version found in metadata for #{repo.name} (#{tag.name}) does not " +
|
58
58
|
"match the tag. Got #{cookbook_metadata.version}."
|
@@ -77,7 +77,7 @@ module Berkshelf::API
|
|
77
77
|
#
|
78
78
|
# @return [Ridley::Chef::Cookbook::Metadata, nil]
|
79
79
|
def metadata(remote)
|
80
|
-
load_metadata(remote.
|
80
|
+
load_metadata(remote.info[:repo_name], "v#{remote.version}")
|
81
81
|
end
|
82
82
|
|
83
83
|
private
|
@@ -31,8 +31,16 @@ describe Berkshelf::API::CacheBuilder::Worker::Github do
|
|
31
31
|
)
|
32
32
|
end
|
33
33
|
|
34
|
+
let(:repo_mismached) do
|
35
|
+
double('repo',
|
36
|
+
name: 'enterprise',
|
37
|
+
full_name: 'opscode-cookbooks/enterprise-chef-common',
|
38
|
+
html_url: 'https://github.com/opscode-cookbooks/enterprise-chef-common',
|
39
|
+
)
|
40
|
+
end
|
41
|
+
|
34
42
|
let(:repos) do
|
35
|
-
[repo]
|
43
|
+
[repo, repo_mismached]
|
36
44
|
end
|
37
45
|
|
38
46
|
subject do
|
@@ -43,15 +51,18 @@ describe Berkshelf::API::CacheBuilder::Worker::Github do
|
|
43
51
|
it_behaves_like "a human-readable string"
|
44
52
|
|
45
53
|
describe "#cookbooks" do
|
54
|
+
|
46
55
|
before do
|
47
56
|
expect(connection).to receive(:organization_repositories) { repos }
|
48
|
-
|
49
|
-
|
50
|
-
|
57
|
+
repos.each do |repo|
|
58
|
+
expect(connection).to receive(:tags) { [good_tag, bad_tag] }
|
59
|
+
expect(connection).to receive(:contents).with("opscode-cookbooks/" + repo.name,
|
60
|
+
{ path: "metadata.rb", ref: "v1.0.0"}) { contents }
|
61
|
+
end
|
51
62
|
end
|
52
63
|
|
53
64
|
it "returns an array containing an item for each valid cookbook on the server" do
|
54
|
-
expect(subject.cookbooks.size).to eq(
|
65
|
+
expect(subject.cookbooks.size).to eq(2)
|
55
66
|
end
|
56
67
|
|
57
68
|
it "returns an array of RemoteCookbooks" do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: berkshelf-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Winsor
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ridley
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '4.
|
20
|
+
version: '4.4'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '4.
|
27
|
+
version: '4.4'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: celluloid
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,7 +104,7 @@ dependencies:
|
|
104
104
|
version: 2.0.4
|
105
105
|
- - "<"
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: 4.0.0
|
108
108
|
type: :runtime
|
109
109
|
prerelease: false
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -114,7 +114,7 @@ dependencies:
|
|
114
114
|
version: 2.0.4
|
115
115
|
- - "<"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 4.0.0
|
118
118
|
- !ruby/object:Gem::Dependency
|
119
119
|
name: archive
|
120
120
|
requirement: !ruby/object:Gem::Requirement
|
@@ -147,16 +147,22 @@ dependencies:
|
|
147
147
|
name: octokit
|
148
148
|
requirement: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 3.0.0
|
153
|
+
- - "<"
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: 5.0.0
|
153
156
|
type: :runtime
|
154
157
|
prerelease: false
|
155
158
|
version_requirements: !ruby/object:Gem::Requirement
|
156
159
|
requirements:
|
157
|
-
- - "
|
160
|
+
- - ">="
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 3.0.0
|
163
|
+
- - "<"
|
158
164
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
165
|
+
version: 5.0.0
|
160
166
|
- !ruby/object:Gem::Dependency
|
161
167
|
name: semverse
|
162
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +177,26 @@ dependencies:
|
|
171
177
|
- - "~>"
|
172
178
|
- !ruby/object:Gem::Version
|
173
179
|
version: '1.0'
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: varia_model
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.4.0
|
187
|
+
- - "<"
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 0.5.0
|
190
|
+
type: :runtime
|
191
|
+
prerelease: false
|
192
|
+
version_requirements: !ruby/object:Gem::Requirement
|
193
|
+
requirements:
|
194
|
+
- - ">="
|
195
|
+
- !ruby/object:Gem::Version
|
196
|
+
version: 0.4.0
|
197
|
+
- - "<"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 0.5.0
|
174
200
|
description: Berkshelf dependency API server
|
175
201
|
email:
|
176
202
|
- jamie@vialstudios.com
|
@@ -257,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
283
|
version: '0'
|
258
284
|
requirements: []
|
259
285
|
rubyforge_project:
|
260
|
-
rubygems_version: 2.
|
286
|
+
rubygems_version: 2.5.2
|
261
287
|
signing_key:
|
262
288
|
specification_version: 4
|
263
289
|
summary: A server which indexes cookbooks from various sources and hosts it over a
|