dpl 1.5.11.travis.436.1 → 1.5.11.travis.437.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/dpl/provider/releases.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGNiYTMyY2VmMzc3YWY2MmIzZTA3ODdlODMwNWJiN2Q1MWJkNmNhYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NzJmNDlhNDQzZjc0ZjMyOGVjODlkYjYwOGRlOThiN2FmYTFkOWIwYQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjJjN2Q2ZDU0MDRlMTYwMjVjM2JiYjU4YjFkODc1OGVkMzY2ZGQxYTMyNDY4
|
10
|
+
NGMxOTgyNjJmOGUwOTNhYmQ0MWM4MTBjNjI5N2M3NDZkN2E1ZmY4ZmU3MWNh
|
11
|
+
Y2VhZmI5MjZkMmFhNTI5YWI3NGUwMDBhODJlNmEzZTVjN2JhYWU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmZlMmNhOWZiMjc5ZDhmMTdhNWQxMGZiYzRmYjkwYjc0ZjYwZWQ0MjdjN2M0
|
14
|
+
NzVkYzc3MTY0YTY3NTBkNGZiYzJkZGVlMDgxMDg2NzZiYWQyOWViZWYwZTFi
|
15
|
+
YjY5NmJlZTY2ZWU5YjM4N2JjZDVkMDlmY2E1NzFlMWU4NmYyMmI=
|
@@ -6,7 +6,7 @@ module DPL
|
|
6
6
|
requires 'octokit'
|
7
7
|
requires 'mime-types'
|
8
8
|
|
9
|
-
def get_tag
|
9
|
+
def get_tag
|
10
10
|
`git describe --tags --exact-match 2>/dev/null`.chomp
|
11
11
|
end
|
12
12
|
|
@@ -27,7 +27,7 @@ module DPL
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def user
|
30
|
-
user ||= api.user
|
30
|
+
@user ||= api.user
|
31
31
|
end
|
32
32
|
|
33
33
|
def needs_key?
|
@@ -49,18 +49,18 @@ module DPL
|
|
49
49
|
unless api.scopes.include? 'public_repo' or api.scopes.include? 'repo'
|
50
50
|
raise Error, "Dpl does not have permission to upload assets. Make sure your token contains the repo or public_repo scope."
|
51
51
|
end
|
52
|
-
|
52
|
+
|
53
53
|
log "Logged in as #{user.name}"
|
54
54
|
end
|
55
55
|
|
56
56
|
def push_app
|
57
57
|
tag_matched = false
|
58
58
|
release_url = nil
|
59
|
-
|
59
|
+
|
60
60
|
if options[:release_number]
|
61
61
|
tag_matched = true
|
62
62
|
release_url = "https://api.github.com/repos/" + slug + "/releases/" + options[:release_number]
|
63
|
-
else
|
63
|
+
else
|
64
64
|
releases.each do |release|
|
65
65
|
if release.tag_name == get_tag
|
66
66
|
release_url = release.rels[:self].href
|