fastlane-plugin-android_testlab_script_swit 0.1.920 → 0.1.922

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: b35ca4ff91129a742b0d39b72d85027f9bf5fcba55f00a316f1c11cd4e7c341a
4
- data.tar.gz: 2934f5a88e3e2087690e6133c039dd213ee118116c67c1e7936394baa003ae6b
3
+ metadata.gz: c8689345dcc4037748cd7334d9e0b07b0ffc41293aa49784602cd9480c74de99
4
+ data.tar.gz: 75a699dd91c2c3fb254b13e730c476c4cab8b109f4380c886c726bdaabdb8550
5
5
  SHA512:
6
- metadata.gz: 79436d20bbe5ff8949480b7e629df2aa59238e2479ddc6282e54ae2be8530909e5e638ef77eed64371a600133d78ce1c5de9dcee359d88ec52931d3eb246048a
7
- data.tar.gz: a73405d042eb22fc279830934210c38ac4ce7474ec171b9d752d2cd0513b13f8f660335ec2965b46c173189eecc14ce7b201b4f4a2f868598164e96afaf8e599
6
+ metadata.gz: 3adf57cd752618c345c53ce202a22bb3e98aaaba3c864213692442ca4a64e93027dc7f3f8a0172b7de05298bb00ec2bd0e3dab37558a47a9b76073d954d52b90
7
+ data.tar.gz: f5e5365781b571c1f839b394b398c4a5e98cca581e619034e07a19f13380998fc320e0b79b814f08aac09f8a50aeb2c76838e58bdd956360056f631d1c4e1891
@@ -8,7 +8,7 @@ module Fastlane
8
8
  module Actions
9
9
  class AndroidTestlabScriptSwitAction < Action
10
10
 
11
- def measure_time
11
+ def self.measure_time
12
12
  start_time = Time.now
13
13
  yield
14
14
  end_time = Time.now
@@ -16,7 +16,7 @@ module Fastlane
16
16
  duration_min = (duration_sec_total / 60).round(1)
17
17
  duration_sec = duration_sec_total % 60
18
18
  return "#{duration_min}분 소요시간 자동화"
19
- end
19
+ end
20
20
 
21
21
  # actions run
22
22
  def self.run(params)
@@ -78,20 +78,20 @@ module Fastlane
78
78
  resultJson = JSON.parse(File.read(params[:console_log_file_name]))
79
79
 
80
80
  swit_device_payload = resultJson.map.with_index do |item, device_index|
81
- axis_value_parts = item["axis_value"].split('-')
82
- outcome = item["outcome"]
81
+ axis_value_parts = item["axis_value"].split('-')
82
+ outcome = item["outcome"]
83
83
 
84
- model = axis_value_parts[0]
85
- version = axis_value_parts[1]
86
- locale = axis_value_parts[2]
87
- orientation = axis_value_parts[3]
84
+ model = axis_value_parts[0]
85
+ version = axis_value_parts[1]
86
+ locale = axis_value_parts[2]
87
+ orientation = axis_value_parts[3]
88
88
 
89
- parts_payload = axis_value_parts.map do |part|
90
- "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
91
- end.join(',')
89
+ parts_payload = axis_value_parts.map do |part|
90
+ "{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Part : #{part}\"}]}"
91
+ end.join(',')
92
92
 
93
- device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\",\"content\":\"model: #{model}\"},{\"type\":\"rt_text\",\"content\":\"version: #{version}\"},{\"type\":\"rt_text\",\"content\":\"locale: #{locale}\"},{\"type\":\"rt_text\",\"content\":\"orientation: #{orientation}\"},{\"type\":\"rt_text\",\"content\": \"Outcome: #{outcome.to_json}}]}"
94
- end.join(',')
93
+ device_payload = "{\"type\":\"rt_section\",\"indent\":1,\"elements\":[{\"type\":\"rt_text\",\"content\":\"Device#{device_index + 1}\"}]},{\"type\":\"rt_section\",\"indent\":2,\"elements\":[{\"type\":\"rt_text\", \"content\": \"model: #{model}\"},{\"type\":\"rt_text\", \"content\": \"version: #{version}\"},{\"type\":\"rt_text\", \"content\": \"locale: #{locale}\"},{\"type":" rt_text\", \"content": \"orientation: #{orientation}\", {\"type":" rt_text", " content": "Outcome: \\\"#{outcome}\\\"" }]}"
94
+ end.join(',')
95
95
 
96
96
  swit_device_payload.chomp!(',')
97
97
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AndroidTestlabScriptSwit
3
- VERSION = "0.1.920"
3
+ VERSION = "0.1.922"
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.920
4
+ version: 0.1.922
5
5
  platform: ruby
6
6
  authors:
7
7
  - 나비이쁜이