dpl-releases 1.9.2.travis.2725.5 → 1.9.2.travis.2737.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dpl/provider/releases.rb +1 -0
- data/spec/provider/releases_spec.rb +9 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15c0bc2f9588755ceca2f978eb8dfe78728e25baaee3d323b59102c8fcc8dc0a
|
4
|
+
data.tar.gz: bf194c1d34429d03de58ed16c1ee8c12ddfb9d68fd97c1a89f2e218040d0c519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7ee87c0bc5922b5c825af5eb0970cf97582238469cfb7061be0308d4161dd5adb4ea197b6c8a3809c735cabf4e28e20eaa7e892e6af21e1a9849ba5829c0682
|
7
|
+
data.tar.gz: 8465ad6b458d44fc170b27965337f8991700abad11c85300825faa79836a449bed38aef183d496ae85d0ad2b153657a4fa5708327bd3955bf16a39f464d34a9f
|
@@ -160,6 +160,8 @@ describe DPL::Provider::Releases do
|
|
160
160
|
|
161
161
|
allow(provider).to receive(:releases).and_return([""])
|
162
162
|
allow(provider).to receive(:get_tag).and_return("v0.0.0")
|
163
|
+
expect(File).to receive(:file?).with("test/foo.bar").and_return(true)
|
164
|
+
expect(File).to receive(:file?).with("bar.txt").and_return(true)
|
163
165
|
|
164
166
|
provider.releases.map do |release|
|
165
167
|
allow(release).to receive(:tag_name).and_return("v0.0.0")
|
@@ -186,6 +188,8 @@ describe DPL::Provider::Releases do
|
|
186
188
|
|
187
189
|
allow(provider).to receive(:releases).and_return([""])
|
188
190
|
allow(provider).to receive(:get_tag).and_return("v0.0.0")
|
191
|
+
expect(File).to receive(:file?).with("test/foo.bar").and_return(true)
|
192
|
+
expect(File).to receive(:file?).with("bar.txt").and_return(true)
|
189
193
|
|
190
194
|
provider.releases.map do |release|
|
191
195
|
allow(release).to receive(:tag_name).and_return("v0.0.0")
|
@@ -213,6 +217,7 @@ describe DPL::Provider::Releases do
|
|
213
217
|
|
214
218
|
allow(provider).to receive(:releases).and_return([""])
|
215
219
|
allow(provider).to receive(:get_tag).and_return("v0.0.0")
|
220
|
+
expect(File).to receive(:file?).with("exists.txt").and_return(true)
|
216
221
|
|
217
222
|
provider.releases.map do |release|
|
218
223
|
allow(release).to receive(:tag_name).and_return("v0.0.0")
|
@@ -238,6 +243,8 @@ describe DPL::Provider::Releases do
|
|
238
243
|
provider.options.update(:file => ["test/foo.bar", "bar.txt"])
|
239
244
|
|
240
245
|
allow(provider).to receive(:releases).and_return([""])
|
246
|
+
expect(File).to receive(:file?).with("test/foo.bar").and_return(true)
|
247
|
+
expect(File).to receive(:file?).with("bar.txt").and_return(true)
|
241
248
|
|
242
249
|
provider.releases.map do |release|
|
243
250
|
allow(release).to receive(:tag_name).and_return("foo")
|
@@ -268,6 +275,7 @@ describe DPL::Provider::Releases do
|
|
268
275
|
provider.options.update(:release_number => "1234")
|
269
276
|
|
270
277
|
allow(provider).to receive(:slug).and_return("foo/bar")
|
278
|
+
expect(File).to receive(:file?).with("bar.txt").and_return(true)
|
271
279
|
|
272
280
|
allow(provider.api).to receive(:release)
|
273
281
|
allow(provider.api.release).to receive(:rels).and_return({:assets => nil})
|
@@ -286,8 +294,8 @@ describe DPL::Provider::Releases do
|
|
286
294
|
provider.options.update(:file => ["bar.txt"])
|
287
295
|
provider.options.update(:release_number => "1234")
|
288
296
|
provider.options.update(:draft => true)
|
289
|
-
|
290
297
|
allow(provider).to receive(:slug).and_return("foo/bar")
|
298
|
+
expect(File).to receive(:file?).with("bar.txt").and_return(true)
|
291
299
|
|
292
300
|
allow(provider.api).to receive(:release)
|
293
301
|
allow(provider.api.release).to receive(:rels).and_return({:assets => nil})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl-releases
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.2.travis.
|
4
|
+
version: 1.9.2.travis.2737.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dpl
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.9.2.travis.
|
19
|
+
version: 1.9.2.travis.2737.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.9.2.travis.
|
26
|
+
version: 1.9.2.travis.2737.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: octokit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|