fastlane-plugin-jandi_webhook 0.1.1 → 0.1.6

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: f0764fbdd45918aaa90c0f6839724c5eaa3128e7de6d96928e9b906332665803
4
- data.tar.gz: '060880088f9b044cf7187344e5cb22f6d2d5af7791b71c2eb5abe925b8b753f7'
3
+ metadata.gz: 4c28d1673d41979cf5ae8c2dfdcd8140fd92848cb378d075b22d655079726b18
4
+ data.tar.gz: 6e871e167bc580ec1c43bb38ea57ac89f5cad13ec8b5a14fe5fd477402b51eab
5
5
  SHA512:
6
- metadata.gz: 5562d8757d51be4c9185bcea4c71bd737d3eb1d010437b0e5e78eddb42f13037b2a0cd4255bc49f218c8dffea515087988a4c592efe937f1fa65ce4267773448
7
- data.tar.gz: 9ceadf178e144ef80496562c43ffc1042eed25c7da4badd6844e9c3299fef78c03b8ef5975954e2da938e4529dc7c4ae830026f1255796d53a5f3a5bfda22865
6
+ metadata.gz: b3e65880ba3ccbfdc8e2f45e37c972c38bfb6aead3c53e3d95218a74743e7e3745d943d79fd80a41103a3ce0449c037d2c6a8129c0e46d86278d7d9014151c9f
7
+ data.tar.gz: b9453d03827818999718f1d0edd0b207c49f5ee0ffd4942b95ffb0e5c180bc7d67d41123d8c4851284488697d0910b126ecd0c8755100c11a293dcfbcda38607
@@ -1,11 +1,36 @@
1
1
  require 'fastlane/action'
2
2
  require_relative '../helper/jandi_webhook_helper'
3
+ require 'json'
4
+ require 'httparty'
3
5
 
4
6
  module Fastlane
5
7
  module Actions
6
8
  class JandiWebhookAction < Action
7
9
  def self.run(params)
8
10
  UI.message("The jandi_webhook plugin is working!")
11
+
12
+ headers = {
13
+ "Content-Type" => "application/json",
14
+ "Accept" => "application/vnd.tosslab.jandi-v2+json"
15
+ }
16
+
17
+ message = {
18
+ body: "#{params[:appName]} 테스트 앱이 배포되었습니다.\n#{params[:link]}",
19
+ connectColor: "#ea002c",
20
+ connectInfo: [
21
+ {
22
+ title: "#{params[:deployService]}를 확인해 주세요.",
23
+ description: "#{params[:version]} for #{params[:platform]}"
24
+ }
25
+ ]
26
+ }
27
+
28
+ UI.message(message.to_json)
29
+ UI.message("#{params[:jandi_url]} for #{params[:platform]} ")
30
+
31
+ #Send the request
32
+ response = HTTParty.post(params[:jandi_url], :headers => headers, body: message.to_json)
33
+ UI.message("response : #{response}")
9
34
  end
10
35
 
11
36
  def self.description
@@ -13,7 +38,7 @@ module Fastlane
13
38
  end
14
39
 
15
40
  def self.authors
16
- ["norte13_imform"]
41
+ ["respecu"]
17
42
  end
18
43
 
19
44
  def self.return_value
@@ -27,11 +52,41 @@ module Fastlane
27
52
 
28
53
  def self.available_options
29
54
  [
30
- # FastlaneCore::ConfigItem.new(key: :your_option,
31
- # env_name: "JANDI_WEBHOOK_YOUR_OPTION",
32
- # description: "A description of your option",
33
- # optional: false,
34
- # type: String)
55
+ FastlaneCore::ConfigItem.new(key: :jandi_url,
56
+ env_name: "JANDI_WEBHOOK_URL",
57
+ description: "webhook url for jandi",
58
+ optional: false,
59
+ type: String),
60
+
61
+ FastlaneCore::ConfigItem.new(key: :platform,
62
+ env_name: "DEPLOYMENT_PLATFORM",
63
+ description: "platform android or ios",
64
+ optional: false,
65
+ type: String),
66
+
67
+ FastlaneCore::ConfigItem.new(key: :version,
68
+ env_name: "DEPLOYMENT_VERSION",
69
+ description: "app version",
70
+ optional: false,
71
+ type: String),
72
+
73
+ FastlaneCore::ConfigItem.new(key: :appName,
74
+ env_name: "APP_NAME",
75
+ description: "app name",
76
+ optional: false,
77
+ type: String),
78
+
79
+ FastlaneCore::ConfigItem.new(key: :link,
80
+ env_name: "LINK",
81
+ description: "link",
82
+ optional: true,
83
+ type: String),
84
+
85
+ FastlaneCore::ConfigItem.new(key: :deployService,
86
+ env_name: "deployService",
87
+ description: "deployService",
88
+ optional: true,
89
+ type: String)
35
90
  ]
36
91
  end
37
92
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module JandiWebhook
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-jandi_webhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - respecu
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-29 00:00:00.000000000 Z
11
+ date: 2020-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: pry
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -136,7 +150,7 @@ dependencies:
136
150
  - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: 2.146.1
139
- description:
153
+ description:
140
154
  email: odddeye83@gmail.com
141
155
  executables: []
142
156
  extensions: []
@@ -152,7 +166,7 @@ homepage: https://github.com/respecu/fastlane-plugin-jandi_webhook
152
166
  licenses:
153
167
  - MIT
154
168
  metadata: {}
155
- post_install_message:
169
+ post_install_message:
156
170
  rdoc_options: []
157
171
  require_paths:
158
172
  - lib
@@ -168,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
182
  version: '0'
169
183
  requirements: []
170
184
  rubygems_version: 3.1.2
171
- signing_key:
185
+ signing_key:
172
186
  specification_version: 4
173
187
  summary: webhook for jandi
174
188
  test_files: []