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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f47a393f1802caee7539e9cae72d5670ffd1834f
4
- data.tar.gz: 79e3bb5905726456eda4397c7302748bd355a7c7
3
+ metadata.gz: 542316acbabfe971c20d954c7d2ca1b82b8f3f32
4
+ data.tar.gz: b134ce35d1e1f254ef343cf33a15c9531b9216fe
5
5
  SHA512:
6
- metadata.gz: 1c4f3353de35c5cc46da9d7b1f3a4e4e3e2d9aae1e096f314ea4f6ffe3e82df3c0b10c7898303b8796e94b27fff0380e0876fc5e74cb3c7af2389f16e33cbdc1
7
- data.tar.gz: 1e110f984782962c000ca5f4b8d42b7d7a18e082075d28be46ba654f1698ce57ae446a0298a329de6c864b907cf49666f1d74649e9b22c55aec4b10286534c32
6
+ metadata.gz: 1106ee2a00fcd28c3b26057ef2b5423e753815321153187c9cce5eb87f52b72b325195dc24056052dc5c8abbe86944ca7f7083de4140f4bf6267f1af72dd5bdc
7
+ data.tar.gz: 81f239b6de30b0ab86acec6136dff502af659f550bea1c3edbaef856f7a13d0a880fc284fc1de86fbee08cecec6ad055b2821cd0ddc6d1c200d486d350116402
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-deploygate (0.0.1)
4
+ danger-deploygate (0.0.2)
5
5
  danger-plugin-api (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Deploygate
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
@@ -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
- responses = client.upload(binary, filename, message, distribution_name)
26
+ response = client.upload(binary, filename, message, distribution_name)
35
27
 
36
- app_name = responses['results']['name']
37
- revision = "##{responses['results']['revision']}"
38
- url = "https://deploygate.com#{responses['results']['path']}"
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.1
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.5.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.