fastlane-plugin-android_testlab_script_swit 0.1.80 → 0.1.82

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: b6e3084e3bd0acc2554513f8dbe09f44ee454b8f91b25dfa82d2c1b98ed25ff0
4
- data.tar.gz: d28fa9a9ceb6c567c0ed543d174cb8f314c7bec7263c8fd7f15ab2a546a2b728
3
+ metadata.gz: 7bd7a34fd2ed085ce3490c8a140d1faf0c00d4910e59e4a3c59cd488cb2eb678
4
+ data.tar.gz: abbbc9969ee7262c4198d6b1c8dd788abfb1370af5e00edf0b81203ca944ab63
5
5
  SHA512:
6
- metadata.gz: 3290c26e8e1c030ce54f2e3e1b5f2da471420179db28071ea84d373455db454a6551c5081224ac3b9745f59902d8e0438de7974832ff3711c27f93bd0ad456e3
7
- data.tar.gz: 5ea0d98c8a076019578ff3e5bb6fa71e336b43c0ac31d838dbcf04dd6152c86b1d1b5e40343b3300e058bdc50d1710a69b7f3185095369f144e2eb592344c4f5
6
+ metadata.gz: e222fffb43cd0e9f119d753d79fc26a6e95ad7065c05746decd0b5d1009691d4f284939cdc85a6cf74a6ab755737eb4292007101367d2baa80c20e540f463dd9
7
+ data.tar.gz: 4124971e80c275064831051a217c30d7fa19cd8f3ce1ec76311430a470b808bcf6b619e804eaaf39383c2635792326255c02c76948191cf2684dd615f82b7eee
@@ -86,10 +86,12 @@ module Fastlane
86
86
 
87
87
  params[:devices].each_with_index do |device, index|
88
88
  new_payload += "[{\"type\": \"rt_section\", \"indent\": 1, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Device#{index + 1}\"}]},
89
- {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
90
- {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
91
- {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
92
- {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]}"
89
+ {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
90
+ {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \\\"OS Version : #{device[:version]}\\\"}]},
91
+ {\"type\":\"rt_section\",\"indent":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"locale : #{device[:locale]}\\\"]}],
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
- swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
115
+ swit_webhook_payload = params[:swit_webhook_payload][0..-5] + ','
116
116
 
117
117
  # Add the additional payload and close the square bracket
118
- swit_webhook_payload += new_payload_string + ']}]}'
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' })
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.80"
3
+ VERSION = "0.1.82"
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.80
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이