fastlane-plugin-android_testlab_script_swit 0.1.80 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78783cfb07f63f9a0069c8992548260d7c90ac430bfc82bd73b970db70c7dffb
|
4
|
+
data.tar.gz: 23ebb40662de899226be0f432452b13514889e4e0fb46f6a83b98be4300b4e19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed99c2a707b4b8e8b5d1001853027d5f4b43f0a155aa12a25b20f3903aa8473b102099bc801f927ccccbe01501fb576a3b563c7a715dff384d8999689f51b96f
|
7
|
+
data.tar.gz: a7450365e567a38e477faee1c17f3d6c8e4ded6bbe1b6058b2cff5901765f4855f0318d1b2b1c6a2eb13d47e9f2b6290d790fa0ac79b1707a41352d4ea2199fc
|
data/lib/fastlane/plugin/android_testlab_script_swit/actions/android_testlab_script_swit_action.rb
CHANGED
@@ -90,6 +90,8 @@ module Fastlane
|
|
90
90
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
|
91
91
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
|
92
92
|
{\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]}"
|
93
|
+
|
94
|
+
new_payload += "," unless index == params[:devices].length - 1
|
93
95
|
end
|
94
96
|
|
95
97
|
# Fetch results
|
@@ -108,14 +110,12 @@ module Fastlane
|
|
108
110
|
# 원래 하던 행위
|
109
111
|
# payload_string = params[:swit_webhook_payload]
|
110
112
|
|
111
|
-
# 앞뒤 지우기
|
112
|
-
new_payload_string = new_payload.to_json
|
113
113
|
|
114
114
|
# Remove the closing square bracket from the original payload and add a comma
|
115
115
|
swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
|
116
116
|
|
117
117
|
# Add the additional payload and close the square bracket
|
118
|
-
swit_webhook_payload +=
|
118
|
+
swit_webhook_payload += new_payload + ']}]}'
|
119
119
|
|
120
120
|
# Swit Message
|
121
121
|
HTTParty.post(params[:swit_webhook_url], body: { body_text: swit_webhook_payload }.to_json, headers: { 'Content-Type' => 'application/json' })
|