fastlane-plugin-jandi_webhook 0.1.0 → 0.1.5

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: b464a22e1c2414443445203eb41b6597a427610043c0a05b460afc7b3ac411db
4
- data.tar.gz: f5acf6b572336693bcde8c2dd1b1982df3fabfe94b52bdf1a5620f17c58f7a22
3
+ metadata.gz: '059c216d84bf8b56b78a4f8684c9f13a772d03af415cfaa2069e65187a1ad09e'
4
+ data.tar.gz: 93f724287bf48e4093dd1cd1f7709c32cc64f2acb2cfc4d799aca55db6aa3aeb
5
5
  SHA512:
6
- metadata.gz: 7f935c01a2e7849d9ee5aae172d33c491a353384579183d1061cc4bf7b5c6d947f427c4d02281b3bcbb5da7ab572ea355f439fa35c0dca7fc2c9d93948122005
7
- data.tar.gz: 525ac7c2c1ff840dccc3d5ac493c47291892612d429afcb98ef338f088ee3887df770108936f90e07e88fa7fe3cbd11103f8f6296b2740b265b4f3dc0e80bd90
6
+ metadata.gz: 2cbaea087fe18d9d1494f6b85fdce5e4841301b8f337f9ce38ac29ac2d8cff008956ec542bfd0695dfc9069976f4fbeb25bbb41601c42116b00619a115d3db18
7
+ data.tar.gz: eba604dcc1d06daaca03628f73be7521549d1687987fd45b02216f02da1b4496857dd0adb7bb86753e6a821872e0186edffd9048b28677aa0663f54cd686aeb8
@@ -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.0"
3
+ VERSION = "0.1.5"
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.0
4
+ version: 0.1.5
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: []