fastlane-plugin-xcov_report 1.1.0 → 1.1.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e84bb024eccbabc989f8e0fef168341e4a76dcb0
|
4
|
+
data.tar.gz: b097189d30a9a2c71f50177d26cd6c144b6b5f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b66445b88272397caa3614e1111cfb324edb05e7545cd0641bfb9587dac36c6cffcce4c8f1d64d53f2cee5e54ffc6b5318297ff286dd4af92dfcbf400684ddd6
|
7
|
+
data.tar.gz: 44c00eaec598b5a381cc6dad2c168a5142f941f244403b7b37f60b0ace807251707a1a0b9f321fec9547ea193c1a0f3350d5780b50e9b636e7b95d42c8bd90f2
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# xcov_report plugin
|
2
2
|
|
3
|
-
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-xcov_report)
|
3
|
+
[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-xcov_report) [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-xcov_report.svg)](https://badge.fury.io/rb/fastlane-plugin-xcov_report)
|
4
4
|
|
5
5
|
## Getting Started
|
6
6
|
|
@@ -10,75 +10,71 @@ module Fastlane
|
|
10
10
|
data = JSON.parse(file)
|
11
11
|
@coverage = data['coverage']
|
12
12
|
@targets = data['targets']
|
13
|
-
template = '
|
13
|
+
template = '---
|
14
|
+
layout: coverage
|
15
|
+
---
|
16
|
+
<div class="coverage">
|
14
17
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
18
|
+
<div class="row">
|
19
|
+
<div class="col-md-20">
|
20
|
+
<h2>Coverage</h2>
|
21
|
+
</div>
|
22
|
+
<div class="col-md-4 text-right">
|
23
|
+
<h2 class="text-right"><%= (@coverage * 100).round(2) %>%</h2>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<% cont = 0 %>
|
27
|
+
<% @targets.each do |value| %>
|
28
|
+
<div class="row targets">
|
29
|
+
<div class="col-md-20">
|
30
|
+
<h4><%= value["name"] %></h4>
|
31
|
+
</div>
|
32
|
+
<div class="col-md-4 text-right">
|
33
|
+
<h4><%= (value["coverage"] * 100).round(2) %>%</h4>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<% value["files"].each do |file| %>
|
38
|
+
<% cont = cont + 1 %>
|
39
|
+
<ol class="list-items">
|
40
|
+
<li class="list-items-row">
|
41
|
+
<div data-toggle="collapse" aria-expanded="false" data-target="#list-item-line-<%= cont %>">
|
42
|
+
<div class="row">
|
43
|
+
<div class="col-md-2 col-md-offset-2">
|
44
|
+
<i class="glyph glyph-add"></i>
|
45
|
+
<i class="glyph glyph-remove"></i>
|
46
|
+
</div>
|
47
|
+
<div class="col-md-8">
|
48
|
+
<a><%= file["name"] %></a>
|
49
|
+
</div>
|
50
|
+
<div class="col-md-6">
|
51
|
+
<%= file["type"] %>
|
52
|
+
</div>
|
53
|
+
<div class="col-md-6 text-right">
|
54
|
+
<%= (file["coverage"] * 100).round(2) %>%
|
55
|
+
</div>
|
56
|
+
</div>
|
33
57
|
</div>
|
34
|
-
|
35
|
-
|
58
|
+
|
59
|
+
<div class="collapse" id="list-item-line-<%= cont %>">
|
60
|
+
<% file["functions"].each do |function| %>
|
61
|
+
<div class="row functions">
|
62
|
+
<div class="col-md-18 col-md-offset-2">
|
63
|
+
<%= function["name"] %>
|
64
|
+
</div>
|
65
|
+
<div class="col-md-4 text-right">
|
66
|
+
<%= (function["coverage"] * 100).round(2) %>%
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
<% end %>
|
36
70
|
</div>
|
37
|
-
</
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
<li class="list-items-row">
|
43
|
-
<div data-toggle="collapse" aria-expanded="false" data-target="#list-item-line-<%= cont %>">
|
44
|
-
<div class="row">
|
45
|
-
<div class="col-md-2 col-md-offset-2">
|
46
|
-
<i class="glyph glyph-add"></i>
|
47
|
-
<i class="glyph glyph-remove"></i>
|
48
|
-
</div>
|
49
|
-
<div class="col-md-8">
|
50
|
-
<a><%= file["name"] %></a>
|
51
|
-
</div>
|
52
|
-
<div class="col-md-6">
|
53
|
-
<%= file["type"] %>
|
54
|
-
</div>
|
55
|
-
<div class="col-md-6 text-right">
|
56
|
-
<%= (file["coverage"] * 100).round(2) %>%
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
|
61
|
-
<div class="collapse" id="list-item-line-<%= cont %>">
|
62
|
-
<% file["functions"].each do |function| %>
|
63
|
-
<div class="row functions">
|
64
|
-
<div class="col-md-18 col-md-offset-2">
|
65
|
-
<%= function["name"] %>
|
66
|
-
</div>
|
67
|
-
<div class="col-md-4 text-right">
|
68
|
-
<%= (function["coverage"] * 100).round(2) %>%
|
69
|
-
</div>
|
70
|
-
</div>
|
71
|
-
<% end %>
|
72
|
-
</div>
|
73
|
-
</li>
|
74
|
-
</ol>
|
75
|
-
<% end %>
|
76
|
-
<% end %>
|
77
|
-
</div>
|
78
|
-
|
71
|
+
</li>
|
72
|
+
</ol>
|
73
|
+
<% end %>
|
74
|
+
<% end %>
|
75
|
+
</div>
|
79
76
|
'
|
80
|
-
|
81
|
-
|
77
|
+
|
82
78
|
renderer = ERB.new(template)
|
83
79
|
result = renderer.result(binding())
|
84
80
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-xcov_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gianfranco Manganiello
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|