danger-deploygate 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/deploygate/gem_version.rb +1 -1
- data/lib/deploygate/plugin.rb +4 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 542316acbabfe971c20d954c7d2ca1b82b8f3f32
|
4
|
+
data.tar.gz: b134ce35d1e1f254ef343cf33a15c9531b9216fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1106ee2a00fcd28c3b26057ef2b5423e753815321153187c9cce5eb87f52b72b325195dc24056052dc5c8abbe86944ca7f7083de4140f4bf6267f1af72dd5bdc
|
7
|
+
data.tar.gz: 81f239b6de30b0ab86acec6136dff502af659f550bea1c3edbaef856f7a13d0a880fc284fc1de86fbee08cecec6ad055b2821cd0ddc6d1c200d486d350116402
|
data/Gemfile.lock
CHANGED
data/lib/deploygate/plugin.rb
CHANGED
@@ -17,25 +17,17 @@ module Danger
|
|
17
17
|
#
|
18
18
|
attr_writer :token
|
19
19
|
|
20
|
-
#
|
21
|
-
# Uploaded response
|
22
|
-
#
|
23
|
-
# @return [DeployGate::Response]
|
24
|
-
#
|
25
|
-
attr_reader :response
|
26
|
-
|
27
20
|
def token
|
28
|
-
# default value can set from environment
|
29
21
|
@token ||= ENV['DEPLOYGATE_API_TOKEN']
|
30
22
|
end
|
31
23
|
|
32
24
|
def upload(binary, filename, message = nil, distribution_name = nil)
|
33
25
|
client = DeployGate::Client.new(user, token)
|
34
|
-
|
26
|
+
response = client.upload(binary, filename, message, distribution_name)
|
35
27
|
|
36
|
-
app_name =
|
37
|
-
revision = "##{
|
38
|
-
url = "https://deploygate.com#{
|
28
|
+
app_name = response['results']['name']
|
29
|
+
revision = "##{response['results']['revision']}"
|
30
|
+
url = "https://deploygate.com#{response['results']['path']}"
|
39
31
|
|
40
32
|
message "DeployGate Uploaded #{app_name} #{revision}, see detail: #{url}"
|
41
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danger-deploygate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fukuo Kadota
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
version: '0'
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.
|
197
|
+
rubygems_version: 2.6.8
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: A longer description of danger-deploygate.
|