fastlane-plugin-android_testlab_script_swit 0.1.76 → 0.1.78

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: 2394211b30aa58256c2dbd3b499d91bc46d165461ddd600b6ef876615d47e4e9
4
- data.tar.gz: 9e431175247d4901e940faa02f08c9072c906cda0ccec93a362a2d4a2e3b69be
3
+ metadata.gz: 947ef3fa152318036e2d95276ceeff7eddb1b6a75f5b9003524b187e85392133
4
+ data.tar.gz: 5f35b245ab32dbca1617abf028ae4a709e5a082d6f317bf79cd2d7b568f46151
5
5
  SHA512:
6
- metadata.gz: 29339cb099d2da3391c294bc3aa57d8fe63e6acabcba62a8b98f54fc9fd0a9eeeff69f3d9e836d99507f9d243da1dfeb2c1c3369e134f5077e25657ca1a71b6e
7
- data.tar.gz: cf8cda565de4bc9753e3c444dd63fa13ad51ec4420661b88cbade7f116ca13c9042d73b7f294e50b5a5cd324ae0749b6740bf73b1ffc08d17af124c2c6005a50
6
+ metadata.gz: 26c0cc5dc160a22e5b6e69e3dce5b93dca874e18f2d50b57113899762d663e1676dccad9bed981736f0c66fac86e5766c3c7d094135a28b81b20b2d69d44ef6e
7
+ data.tar.gz: 8329a39781a09097a01bf4f9500c50f9d40ca4bc7fa3bef0f178c54bf404cbfc2db0ae2aef6525eb8d3e14bbf70ac1550fde4050e5e28833a5b2207ccd4170a6
@@ -71,6 +71,15 @@ module Fastlane
71
71
  # {"type":"rt_section","indent":2,"elements":[{"type\":\"rt_text\",\"content":{"orientation : #{device[:orientation]}"}}},
72
72
  # {"type":"rt_section","indent":2,"elements":[{"type":"rt_text","content":{"Result : #{outcome}"}}},
73
73
  # }
74
+ # end
75
+
76
+ # params[:devices].each_with_index do |device, index|
77
+ # new_payload = "[{\"type\": \"rt_section\", \"indent\": 1, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Device#{index + 1}\"}]},
78
+ # {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
79
+ # {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
80
+ # {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
81
+ # {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]},
82
+ # {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Result : #{outcome}\"}]}]"
74
83
  # end
75
84
 
76
85
  params[:devices].each_with_index do |device, index|
@@ -78,8 +87,7 @@ module Fastlane
78
87
  {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"model : #{device[:model]}\"}]},
79
88
  {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"OS Version : #{device[:version]}\"}]},
80
89
  {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"locale : #{device[:locale]}\"}]},
81
- {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]},
82
- {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"Result : #{outcome}\"}]}]"
90
+ {\"type\": \"rt_section\", \"indent\": 2, \"elements\": [{\"type\": \"rt_text\", \"content\": \"orientation : #{device[:orientation]}\"}]}"
83
91
  end
84
92
 
85
93
  # Fetch results
@@ -99,13 +107,13 @@ module Fastlane
99
107
  # payload_string = params[:swit_webhook_payload]
100
108
 
101
109
  # 앞뒤 지우기
102
- # new_payload_string = new_payload.to_json
110
+ new_payload_string = new_payload.to_json
103
111
 
104
- # Remove the closing square bracket from the original payload and add a comma
105
- # swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
112
+ # Remove the closing square bracket from the original payload and add a comma
113
+ swit_webhook_payload = params[:swit_webhook_payload][0..-3] + ','
106
114
 
107
115
  # Add the additional payload and close the square bracket
108
- # swit_webhook_payload += new_payload_string + ']}]}'
116
+ swit_webhook_payload += new_payload_string + ']}]}'
109
117
 
110
118
  # Swit Message
111
119
  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.76"
3
+ VERSION = "0.1.78"
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.76
4
+ version: 0.1.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이