xcov 1.7.0 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xcov/model/target.rb +3 -4
- data/lib/xcov/options.rb +8 -0
- data/lib/xcov/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a95dd7fca658d03af6e66ed91e0892274d21141685ca695c24f9dee3bcfa38
|
4
|
+
data.tar.gz: 8ccfbbb3a937049a2d84c27647ddc176287481498d12e6278132c498b8e36cca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd194fb275c79d1abae0620698c7f22b8e1e8d641df7866cc8c8806ae0008dae9bc411ab0505835ddbc79e8f847d41ef7d8adabb9cc0e77f8d299edf103b3303
|
7
|
+
data.tar.gz: 9cf2182f5603b65e9b42c65e909c15a88c41ed8f2c35f10c3b8363466094dfa986f6474085c7993220594b75ec3d9d22dba6fe6cc663855152b5bbf576b34f25
|
data/lib/xcov/model/target.rb
CHANGED
@@ -7,10 +7,10 @@ module Xcov
|
|
7
7
|
attr_accessor :files
|
8
8
|
attr_accessor :file_templates
|
9
9
|
|
10
|
-
def initialize(name,
|
10
|
+
def initialize(name, files)
|
11
11
|
@name = CGI::escapeHTML(name)
|
12
12
|
@files = files
|
13
|
-
@coverage = coverage
|
13
|
+
@coverage = files.count == 0 ? 0.0 : files.reduce(0) { |acc, file| acc + file.coverage.to_f } / files.count
|
14
14
|
@displayable_coverage = self.create_displayable_coverage
|
15
15
|
@coverage_color = self.create_coverage_color
|
16
16
|
@id = Target.create_id(name)
|
@@ -53,12 +53,11 @@ module Xcov
|
|
53
53
|
|
54
54
|
def self.map(dictionary)
|
55
55
|
name = dictionary["name"]
|
56
|
-
coverage = dictionary["coverage"]
|
57
56
|
files = dictionary["files"].map { |file| Source.map(file)}
|
58
57
|
files = files.sort &by_coverage_with_ignored_at_the_end
|
59
58
|
non_ignored_files = Target.select_non_ignored_files(files)
|
60
59
|
|
61
|
-
Target.new(name,
|
60
|
+
Target.new(name, non_ignored_files)
|
62
61
|
end
|
63
62
|
|
64
63
|
def self.by_coverage_with_ignored_at_the_end
|
data/lib/xcov/options.rb
CHANGED
@@ -93,6 +93,14 @@ module Xcov
|
|
93
93
|
default_value: File.join(containing, "xcov_report"),
|
94
94
|
default_value_dynamic: true
|
95
95
|
),
|
96
|
+
FastlaneCore::ConfigItem.new(
|
97
|
+
key: :cloned_source_packages_path,
|
98
|
+
short_option: "-C",
|
99
|
+
env_name: "XCOV_CLONED_SOURCE_PACKAGES_PATH",
|
100
|
+
description: "Sets a custom path for Swift Package Manager dependencies",
|
101
|
+
type: String,
|
102
|
+
optional: true
|
103
|
+
),
|
96
104
|
|
97
105
|
# Report options
|
98
106
|
FastlaneCore::ConfigItem.new(
|
data/lib/xcov/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcov
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Vidal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fastlane
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.141.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 3.0.0
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
29
|
+
version: 2.141.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 3.0.0
|
@@ -209,8 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
- !ruby/object:Gem::Version
|
210
210
|
version: '0'
|
211
211
|
requirements: []
|
212
|
-
|
213
|
-
rubygems_version: 2.7.6
|
212
|
+
rubygems_version: 3.0.6
|
214
213
|
signing_key:
|
215
214
|
specification_version: 4
|
216
215
|
summary: xcov is a friendly visualizer for Xcode's code coverage files
|