fastlane-plugin-android_testlab_script_swit 0.1.915 → 0.1.917

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: 3bbbcfb99af6fca66373690a1e9dd4a9f917a18b38ac267c3a44495bfafc53d3
4
- data.tar.gz: 7e66e6d341a29612dc8c27618eedce46bf4b35e8c2f88c708c5b6ab261bf18b7
3
+ metadata.gz: 89b7b3b9a757a277099df6757bd42ece2503955a9ec758eee84958e0ccbb6b34
4
+ data.tar.gz: cc93a06dd35e0a13d4b186f09ff19cf631391f94699256ebb584b2a509d930d7
5
5
  SHA512:
6
- metadata.gz: e3e520824c98f01c0932f815a3ce944f1d6f2f6cc511c5be85b4fcb28f6db582c2b4508233f82fa4e9a758681d37e3ecc053db9cbec9fae6f27884b8bdb0c667
7
- data.tar.gz: 3a0af5d053f62b651a52e6e73e855c6cc37adbd700364f867a5f2fde165e2c6004c482279b462fcf03a67f7f5f2c178ff74bcc54e5464372bb3628ff9ca229fe
6
+ metadata.gz: c51e037474c6377ac1a0080e0c8b62e5efb75424fd3a81743567573e1e84f8515f52c0dc8ea1571576c32f5cea2272266b3613d3160b06411dcd0eb323da54ca
7
+ data.tar.gz: f608d4c3df7e20a48e27c0bcfcfb39b2d82cb62f55c5e3bda831d833408d03c0eb7aa3128c91ab2c055abb77683eb2df223adeb3255ff7ebfba32b1242bb83b0
@@ -50,30 +50,21 @@ module Fastlane
50
50
  # Firebase Test Lab Result Json
51
51
  resultJson = JSON.parse(File.read(params[:console_log_file_name]))
52
52
 
53
- resultJson.each_with_index do |item, device_index|
54
- # 정보 추출하기
55
- axis_value = item["axis_value"]
56
- outcome = item["outcome"]
57
- test_details = item["test_details"]
58
-
59
- # 'axis_value' 분리하기
60
- parts = axis_value.split('-')
61
-
62
- swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},"
63
-
64
- parts.each_with_index do |part, part_index|
65
- swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]},"
66
-
67
- if part_index == (parts.length -1)
68
- swit_device_payload += "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : #{outcome}\"}]}"
69
- swit_device_payload += "," unless device_index == (resultJson.length -1)
70
- end
71
- end
72
- end
53
+ swit_device_payload = resultJson.map.with_index do |item, device_index|
54
+ axis_value_parts = item["axis_value"].split('-')
55
+ outcome = item["outcome"]
56
+
57
+ parts_payload = axis_value_parts.map do |part|
58
+ "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
59
+ end.join(',')
60
+
61
+ device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},#{parts_payload},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\": #{outcome.to_json}}]}"
62
+ end.join(',')
73
63
 
74
- # remove the last comma if it exists
75
64
  swit_device_payload.chomp!(',')
76
65
 
66
+
67
+
77
68
 
78
69
  # 각 JSON 객체에 대해 반복
79
70
  # resultJson.each do |item|
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.915"
3
+ VERSION = "0.1.917"
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.915
4
+ version: 0.1.917
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이