fastlane-plugin-android_testlab_script_swit 0.1.69 → 0.1.71

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: a9d9d2f3476e0df6dd6ec3dc453c3252704b22f2e030f106b27090807d490a12
4
- data.tar.gz: bd854151dce0475e51ba296f930a1a9efc6f5c4a829e1c6391b8d5a474e5d558
3
+ metadata.gz: f593ca762d36b46747fe86989df904189bfbc4ecdc41364dbab1c25a6a54c7f6
4
+ data.tar.gz: 2e794388fc79040791752cbdae0413bf31836bb7e2dc80265c33aa963c32c322
5
5
  SHA512:
6
- metadata.gz: a333228889c894ff83fb754fba0f23a2945a83f80f27372a276e75fe8c97125004d5536843f640cf148e726c226945f532fe3656664e5e43d6ccfea9a9284655
7
- data.tar.gz: 6d63e37c40e881f6ae166f2dc51fb0203b33c04ad03cac74111cc61e4807eec5926b3e25afe96d1098050e9f7934f7cb9124e096c8ae0821514beb034b7bd0c3
6
+ metadata.gz: e3daf646754270f04700706dbd601c1fd65cbd09e49623f9414d9d6727aff2a96b05c80d0bc065b76be31e812a19e9168cc363afd6b24e6912206d52bfe2e1fa
7
+ data.tar.gz: d0cda2d82a0c187c1dac48fa51f6ade98c72e85b8310b29e88bc74e41d0accdd4399fab895f4409d506821eaa0cf68c42d22b29ccc7118e03e297be9864e8d58
@@ -43,8 +43,6 @@ module Fastlane
43
43
  # json = JSON.parse(File.read(params[:console_log_file_name]))
44
44
  # UI.message("Test status: #{json}")
45
45
 
46
- #
47
- payload_string = params[:swit_webhook_payload]
48
46
 
49
47
  # 각 JSON 객체에 대해 반복
50
48
  # json.each do |item|
@@ -87,7 +85,27 @@ module Fastlane
87
85
  # Helper.set_public("#{results_bucket}/#{results_dir}/#{axis}")
88
86
  # end
89
87
  # end
90
-
88
+
89
+ payload_string = [
90
+ {"type" => "rt_section", "indent" => 1, "elements" => [{"type" => "rt_text", "content" => "Device#{index + 1}"}]},
91
+ {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:model]}"}]},
92
+ {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:version]}"}]},
93
+ {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:locale]}"}]},
94
+ {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{device[:orientation]}"}]},
95
+ {"type" => "rt_section", "indent" => 2, "elements" => [{"type" => "rt_text", "content" => "model : #{outcome}"}]}
96
+ ]
97
+
98
+ # 원래 하던 행위
99
+ # payload_string = params[:swit_webhook_payload]
100
+
101
+ # 앞뒤 지우기
102
+ payload_string = payload_string.to_json
103
+
104
+ # Remove the closing square bracket from the original payload and add a comma
105
+ swit_webhook_payload = params[:swit_webhook_payload][0..-2] + ','
106
+
107
+ # Add the additional payload and close the square bracket
108
+ swit_webhook_payload += payload_string[1..]
91
109
 
92
110
  # Swit Message
93
111
  HTTParty.post(params[:swit_webhook_url], body: { body_text: params[:swit_webhook_payload] }.to_json, headers: { 'Content-Type' => 'application/json' })
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.69"
3
+ VERSION = "0.1.71"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-android_testlab_script_swit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.69
4
+ version: 0.1.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이