fastlane-plugin-android_testlab_script_swit 0.1.914 → 0.1.915

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: 98dd87d5fba0d3ea3b0875c3b3ff477037d6e0dfe5c04a18d52fc4a86729a31f
4
- data.tar.gz: 5e0ca28409ced3a40dadf5779f7b52b73f2186a1042fcf573ffb968ad9370083
3
+ metadata.gz: 3bbbcfb99af6fca66373690a1e9dd4a9f917a18b38ac267c3a44495bfafc53d3
4
+ data.tar.gz: 7e66e6d341a29612dc8c27618eedce46bf4b35e8c2f88c708c5b6ab261bf18b7
5
5
  SHA512:
6
- metadata.gz: 12eb582f3ca20ab110c9261fc9bf6d28ba09accf5dcc9aa2652b457833cfd1311c41df374d15d037dac675eaba2a8b5e5a7ae8aa270a9228e4fda34be22ae4f7
7
- data.tar.gz: 4b392f1be62944f7cd1de6caa565004eef3a962e1d35f160c75c2ee0031ac0528b579016a23fb911db4bb56a2bac1ef66bb79dce15819e381ccc9a97fa5d4012
6
+ metadata.gz: e3e520824c98f01c0932f815a3ce944f1d6f2f6cc511c5be85b4fcb28f6db582c2b4508233f82fa4e9a758681d37e3ecc053db9cbec9fae6f27884b8bdb0c667
7
+ data.tar.gz: 3a0af5d053f62b651a52e6e73e855c6cc37adbd700364f867a5f2fde165e2c6004c482279b462fcf03a67f7f5f2c178ff74bcc54e5464372bb3628ff9ca229fe
@@ -50,25 +50,6 @@ module Fastlane
50
50
  # Firebase Test Lab Result Json
51
51
  resultJson = JSON.parse(File.read(params[:console_log_file_name]))
52
52
 
53
- # 각 JSON 객체에 대해 반복
54
- # resultJson.each do |item|
55
- # # 정보 추출하기
56
- # axis_value = item["axis_value"]
57
- # outcome = item["outcome"]
58
- # test_details = item["test_details"]
59
- #
60
- # # 'axis_value' 분리하기
61
- # parts = axis_value.split('-')
62
- #
63
- # parts.each_with_index do |part, index|
64
- # swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
65
- # {\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{parts[index]}\"}]},
66
- # {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : #{outcome}\"}]}"
67
- #
68
- # swit_device_payload += "," unless index == parts.length - 1
69
- # end
70
- # end
71
-
72
53
  resultJson.each_with_index do |item, device_index|
73
54
  # 정보 추출하기
74
55
  axis_value = item["axis_value"]
@@ -81,23 +62,41 @@ module Fastlane
81
62
  swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},"
82
63
 
83
64
  parts.each_with_index do |part, part_index|
84
- swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{parts[index]}\"}]},"
65
+ swit_device_payload += "{\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]},"
85
66
 
86
67
  if part_index == (parts.length -1)
87
- swit_device_payload += "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Result : #{outcome}\"}]}"
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)
88
70
  end
89
71
  end
90
-
91
- swit_device_payload += "," unless device_index == (resultJson.length - 1) && part_index == (parts.length - 1)
92
72
  end
93
73
 
94
74
  # remove the last comma if it exists
95
75
  swit_device_payload.chomp!(',')
96
76
 
97
77
 
78
+ # 각 JSON 객체에 대해 반복
79
+ # resultJson.each do |item|
80
+ # # 정보 추출하기
81
+ # axis_value = item["axis_value"]
82
+ # outcome = item["outcome"]
83
+ # test_details = item["test_details"]
84
+ #
85
+ # # 'axis_value' 분리하기
86
+ # parts = axis_value.split('-')
87
+ #
88
+ # parts.each_with_index do |part, index|
89
+ # swit_device_payload += "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{index + 1}\"}]},
90
+ # {\"type\": \"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{parts[index]}\"}]},
91
+ # {\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content":"Result : #{outcome}\"}]}"
92
+ #
93
+ # swit_device_payload += "," unless index == parts.length - 1
94
+ # end
95
+ # end
96
+
97
+
98
98
 
99
-
100
-
99
+
101
100
 
102
101
  # 중간 체크
103
102
  UI.message(swit_device_payload)
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.914"
3
+ VERSION = "0.1.915"
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.914
4
+ version: 0.1.915
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이