fastlane-plugin-android_testlab_script_swit 0.1.77 → 0.1.79

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: 31f2720d5a8e271527f36d63b7b539f6bbcf49bc18274ff301e2834d0b914439
4
- data.tar.gz: 57f8d948ffda0714534c53ec5b82a3de8f08715026bd01a74a4c37717e0f3dd7
3
+ metadata.gz: d6f7d4dd9e630ebf7278f37d8c56440180e41ab7ae59c47924fa2caf2224016e
4
+ data.tar.gz: 87be8b82ef88b882005206aeadd1d0abf4529cc081fa7d799a3bf43670c56782
5
5
  SHA512:
6
- metadata.gz: e041d0a69b92f1c12ed454d7d0ace6be710d586c0527a015ce37212062bd9441f8d46d6546cb132e55878471425174337c691183483ea6f2a1922a1ed191cb9d
7
- data.tar.gz: b17bb5231f3484e448ef8cfa4d31385fa533a83f76bfefd5869bac771bcddaa5246a26067d2743ba58c6dd398d75966eadd62954150e367535f1b448ada15661
6
+ metadata.gz: 92809838c4aadcac137e75aa317359483b90151ee1b6107958881041c3ca5188ade23230df7b0cc66bf64a4bfe58a95203266d5c2e3a5902e45b8ac1973bc105
7
+ data.tar.gz: f68157fca579c24288903d5852a954824165c72ac986af1263914b9e526f45615e25a05e0e065e04af5e0f5554d63c0a8ee68476b1dfd319c4f9c1bccfcde44b
@@ -82,8 +82,10 @@ module Fastlane
82
82
  # {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Result : #{outcome}\"}]}]"
83
83
  # end
84
84
 
85
+ new_payload = ""
86
+
85
87
  params[:devices].each_with_index do |device, index|
86
- new_payload = "[{\"type\": \"rt_section\", \"indent\": 1, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Device#{index + 1}\"}]},
88
+ new_payload += "[{\"type\": \"rt_section\", \"indent\": 1, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Device#{index + 1}\"}]},
87
89
  {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
88
90
  {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
89
91
  {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
@@ -107,13 +109,13 @@ module Fastlane
107
109
  # payload_string = params[:swit_webhook_payload]
108
110
 
109
111
  # 앞뒤 지우기
110
- # new_payload_string = new_payload.to_json
112
+ new_payload_string = new_payload.to_json
111
113
 
112
- # Remove the closing square bracket from the original payload and add a comma
113
- # swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
114
+ # Remove the closing square bracket from the original payload and add a comma
115
+ swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
114
116
 
115
117
  # Add the additional payload and close the square bracket
116
- # swit_webhook_payload += new_payload_string + ']}]}'
118
+ swit_webhook_payload += new_payload_string + ']}]}'
117
119
 
118
120
  # Swit Message
119
121
  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.77"
3
+ VERSION = "0.1.79"
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.77
4
+ version: 0.1.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이