fastlane-plugin-android_testlab_script_swit 0.1.72 → 0.1.74

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: 3ea7dcc6705b46362d15100be25c6f615cc6b827912a5f717cc92ad495db13fd
4
- data.tar.gz: cb503efa308837fa29c54b821ffaca8e17a0b6d658a779cfe8b0e9e24c08f47f
3
+ metadata.gz: 54a1cd6f5a9d2c4dfb320952e617f32804f2381c8340c4ed08413c5e3e6dd5a3
4
+ data.tar.gz: 4a032af821c702fca1166e7b7edf12d4bdeb17399e7f59472378f726d124644d
5
5
  SHA512:
6
- metadata.gz: 769418264efcca9467ffb364e317ebb9016073e012076502884f6c121ccfcd67b0475a4d8eed44bb1c39f7efb99484550880bc6a5022d22acd680ee347012111
7
- data.tar.gz: 5b7cef40953499f39cec42fdea1762ef16539fa0fbcddd4535c63d9aaa075b9ffa6335eacb9de910fb69beda93a3d43b869a09666a215c6fe15c72ae3ad77e8e
6
+ metadata.gz: 5c09731108ec7112520086e1ac1bbd3fb1eabbc333165af624ca81f22bbe946211fdf07a814fb0f9f07f2fc64e9858ebfbc1fc3583c142b4beccc42fd1ff6c1c
7
+ data.tar.gz: 8c963c1c81c103387af6017d412295dbfe3d6900bd60ce2286a9ffe24a46cf423401b1176d3a107265a82d2e6d3277ac58f52557548d40a394e06c7fd5ccea58
@@ -86,26 +86,26 @@ module Fastlane
86
86
  # end
87
87
  # end
88
88
 
89
- new_payload = [
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
- ]
89
+
90
+ new_payload = "[{\"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
97
 
98
98
  # 원래 하던 행위
99
99
  # payload_string = params[:swit_webhook_payload]
100
100
 
101
101
  # 앞뒤 지우기
102
- new_payload_string = new_payload.to_json
102
+ # new_payload_string = new_payload.to_json
103
103
 
104
- # Remove the closing square bracket from the original payload and add a comma
105
- swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
104
+ # Remove the closing square bracket from the original payload and add a comma
105
+ # swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
106
106
 
107
107
  # Add the additional payload and close the square bracket
108
- swit_webhook_payload += new_payload_string + ']}]}'
108
+ # swit_webhook_payload += new_payload_string + ']}]}'
109
109
 
110
110
  # Swit Message
111
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.72"
3
+ VERSION = "0.1.74"
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.72
4
+ version: 0.1.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이