fastlane-plugin-accessibility_test 0.1.7 → 0.1.8

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: de46e4eb3ad7671f1541c43b89bcd8ce65d9146cf73dab950d6e78f4f880f190
4
- data.tar.gz: edafd5db27d4dc9226b91111cfaac6972284225d9e342cc6c597325a9226e52c
3
+ metadata.gz: 7da2fe2bdb1a6a4c18e7ad28531d422b5ccc1a10aab448449d5f84a9150eeee6
4
+ data.tar.gz: 166420201c23d2b1a637cbd248062ad835868d3de695372efc4d40424ac77e50
5
5
  SHA512:
6
- metadata.gz: d8130299f75f25e499720d774d76c509600a98e038101b90d743f3b80bf70e135759447c4d5eb1dda0612ea170b6d44575a87aa32d90e6594b5048cbfe3f0fe3
7
- data.tar.gz: 26e6aaa5d8ed9c77d7954bb6e171f2092efe36c400121a48e97b0edd9282662fd2eb73c9ab1d2a731017c58c791fee35dbeccf430e7a76821ebdabe39d0d65f9
6
+ metadata.gz: 822d6f68bc0a026f3145cc166857054d21a4a3217fc43a77ca22674925ed4b5aca4904040d76966095a54abdb65374edcf6dda380e8c789c4aa8b4404834beef
7
+ data.tar.gz: f68987f95f29b541d8577d23b40df9244d56857b5390f83023540f207976f2becb7d00a16f05a2be7f05558ff50f4fb23fb501c41b581a2acdc240fca2a660b7
@@ -78,26 +78,26 @@ module Fastlane
78
78
  summary = errors.empty? ?
79
79
  "### :white_check_mark: All test passed (with #{warnings.length} warnings)" :
80
80
  "### :x: #{errors.length} error found. (with #{errors.length} warnings)"
81
- error_cells = errors.map {|result|
82
- "|<img src=\"#{result[:image]}\">|**#{result[:title]}**<br/>#{result[:message]}|\n"
81
+ error_cells = errors.each_slice(2).map {|results|
82
+ "|<img src=\"#{results[0].to_h[:image]}\">|**#{results[0].to_h[:title]}**<br/>#{results[0].to_h[:message]}|<img src=\"#{results[1].to_h[:image]}\">|**#{results[1].to_h[:title]}**<br/>#{results[1].to_h[:message]}|\n"
83
83
  }.inject(&:+)
84
- warning_cells = warnings.map {|result|
85
- "|<img src=\"#{result[:image]}\">|**#{result[:title]}**<br/>#{result[:message]}|\n"
84
+ warning_cells = warnings.each_slice(2).map {|results|
85
+ "|<img src=\"#{results[0].to_h[:image]}\">|**#{results[0].to_h[:title]}**<br/>#{results[0].to_h[:message]}|<img src=\"#{results[1].to_h[:image]}\">|**#{results[1].to_h[:title]}**<br/>#{results[1].to_h[:message]}|\n"
86
86
  }.inject(&:+)
87
87
 
88
88
  message = <<-EOS
89
89
  ## Accessibility Test Result
90
90
  #{summary}
91
91
 
92
- |Screenshot|message|
93
- |-|-|
92
+ |Screenshot|message|Screenshot|message|
93
+ |-|-|-|-|
94
94
  #{error_cells}
95
95
 
96
96
  <details>
97
97
  <summary>#{warnings.length} warnings. Click here to see details.</summary>
98
98
 
99
- |Screenshot|message|
100
- |-|-|
99
+ |Screenshot|message|Screenshot|message|
100
+ |-|-|-|-|
101
101
  #{warning_cells}
102
102
 
103
103
  </details>
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module AccessibilityTest
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-accessibility_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Tsukamoto