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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e865810f0e3c42f28a7bf1569449240d46f6304a0803b2d34006c3d8ecb4b17a
4
- data.tar.gz: b0da723e52175e6766fae5c9d4e9c61b4619fd19867ee6ce0970008c61bc7330
3
+ metadata.gz: 2a1eaf5277a7fb0e714337382c57b984cac7f85ca1dcf554bad14aa854fa83c5
4
+ data.tar.gz: 0ffef4a5eca5b677089d094aff7d6ad566a7fa5a6790ca64199a5411a0c08c16
5
5
  SHA512:
6
- metadata.gz: 4858522284e9e50cff92558194a7caf5a08604b45602bd83b6137d71e0a6537a3569bae82270efde1f3ee6fefa58015fbcac036c8eba36a72f52f3f41cfc1078
7
- data.tar.gz: ee3779802478b0d9097e8ec00c93a2cc25c6a01e72963c762f0e463759b5284b43820d3213b0927e9402db77c31a639f04ac4fc3beceab5b9f199a3b84028c30
6
+ metadata.gz: 505bac20e09538f38461bf9aecc016ada76557d1f60d1f0cdb4b4279d5505b556f23bdf10d2944f76e410f14cf32a8925e790c6e7ee5756f465169d78184b3f1
7
+ data.tar.gz: ae1294f4a3833a2394b5a7239c9a044f9bb2208d2e0b96db774cd508413eb092f46b2ab5891418803add487e0e6ee3dd033948c9161201a028f71b42dfe8d910
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
- config = Covered::Config.load
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(config.output, path).load!(ignore_mtime: true)
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
- config.each do |coverage|
25
+ policy.each do |coverage|
26
26
  statistics << coverage
27
27
  end
28
28
 
@@ -91,7 +91,6 @@ module Covered
91
91
  ['test/', 'fixtures/', 'spec/', 'vendor/', 'config/']
92
92
  end
93
93
 
94
-
95
94
  # Override this method to implement your own policy.
96
95
  def make_policy(policy)
97
96
  # Only files in the root would be tracked:
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2018-2022, by Samuel Williams.
5
5
 
6
6
  module Covered
7
- VERSION = "0.20.0"
7
+ VERSION = "0.20.1"
8
8
  end
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.0
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.6
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