covered 0.20.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/bake/covered/validate.rb +3 -3
- data/lib/covered/config.rb +0 -1
- data/lib/covered/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1eaf5277a7fb0e714337382c57b984cac7f85ca1dcf554bad14aa854fa83c5
|
4
|
+
data.tar.gz: 0ffef4a5eca5b677089d094aff7d6ad566a7fa5a6790ca64199a5411a0c08c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 505bac20e09538f38461bf9aecc016ada76557d1f60d1f0cdb4b4279d5505b556f23bdf10d2944f76e410f14cf32a8925e790c6e7ee5756f465169d78184b3f1
|
7
|
+
data.tar.gz: ae1294f4a3833a2394b5a7239c9a044f9bb2208d2e0b96db774cd508413eb092f46b2ab5891418803add487e0e6ee3dd033948c9161201a028f71b42dfe8d910
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/bake/covered/validate.rb
CHANGED
@@ -13,16 +13,16 @@ end
|
|
13
13
|
# @parameter paths [Array(String)] The coverage database paths.
|
14
14
|
# @parameter minimum [Float] The minimum required coverage in order to pass.
|
15
15
|
def validate(paths: nil, minimum: 1.0)
|
16
|
-
|
16
|
+
policy = Covered::Policy.new
|
17
17
|
|
18
18
|
paths&.each do |path|
|
19
19
|
# It would be nice to have a better algorithm here than just ignoring mtime - perhaps using checksums?
|
20
|
-
Covered::Persist.new(
|
20
|
+
Covered::Persist.new(policy.output, path).load!(ignore_mtime: true)
|
21
21
|
end
|
22
22
|
|
23
23
|
statistics = Covered::Statistics.new
|
24
24
|
|
25
|
-
|
25
|
+
policy.each do |coverage|
|
26
26
|
statistics << coverage
|
27
27
|
end
|
28
28
|
|
data/lib/covered/config.rb
CHANGED
data/lib/covered/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: covered
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
- !ruby/object:Gem::Version
|
177
177
|
version: '0'
|
178
178
|
requirements: []
|
179
|
-
rubygems_version: 3.4.
|
179
|
+
rubygems_version: 3.4.1
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: A modern approach to code coverage.
|
metadata.gz.sig
CHANGED
Binary file
|