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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c28d1673d41979cf5ae8c2dfdcd8140fd92848cb378d075b22d655079726b18
|
4
|
+
data.tar.gz: 6e871e167bc580ec1c43bb38ea57ac89f5cad13ec8b5a14fe5fd477402b51eab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
["
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
|
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.
|
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-
|
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: []
|