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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d1b025b76817f6a57120b112603b6966f59d45966fb4aee6c32cd3ab51b844f
4
- data.tar.gz: 25cedc399c0be1646b88301bde4e8c9591107af10487380162f31d0a66547806
3
+ metadata.gz: 15c0bc2f9588755ceca2f978eb8dfe78728e25baaee3d323b59102c8fcc8dc0a
4
+ data.tar.gz: bf194c1d34429d03de58ed16c1ee8c12ddfb9d68fd97c1a89f2e218040d0c519
5
5
  SHA512:
6
- metadata.gz: e70bcadd6a7ba46c7116fc536ea78e8032008ab5c61c3e443f8e21a7d5023276d2a3f7a201a7bc85a2b54967fd64b87a929dbaeae6923338a180cf3562b8fec0
7
- data.tar.gz: f914950202810f9c5cdaec8b348491828e541b45db81ae70a536bbf5980e7914d6a92892acdad8a24b1613344e9be36a4bf61af4c1c26942caafd84a191ac9fe
6
+ metadata.gz: d7ee87c0bc5922b5c825af5eb0970cf97582238469cfb7061be0308d4161dd5adb4ea197b6c8a3809c735cabf4e28e20eaa7e892e6af21e1a9849ba5829c0682
7
+ data.tar.gz: 8465ad6b458d44fc170b27965337f8991700abad11c85300825faa79836a449bed38aef183d496ae85d0ad2b153657a4fa5708327bd3955bf16a39f464d34a9f
@@ -100,6 +100,7 @@ module DPL
100
100
  end
101
101
 
102
102
  files.each do |file|
103
+ next unless File.file?(file)
103
104
  existing_url = nil
104
105
  filename = Pathname.new(file).basename.to_s
105
106
  api.release(release_url).rels[:assets].get.data.each do |existing_file|
@@ -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.2725.5
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-12 00:00:00.000000000 Z
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.2725.5
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.2725.5
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