covered 0.18.0 → 0.18.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: f8203a4eb44d2d3313e21789fa0c12d9c3922526908e8a4410dfa74a51f8a50e
4
- data.tar.gz: 7bbf343d12b0cd93f96eb7ff25f192b819e2e55db17ff996b317dc2c7da693b9
3
+ metadata.gz: 016df0cc962d1ae6f41781f31c6e96066b68e7f0b2b6a3740f2e0c4f23e4ea93
4
+ data.tar.gz: d26da5abf8676d28fe87d8560b6a02f9e114639fecdb8a27bb4a69b62d645440
5
5
  SHA512:
6
- metadata.gz: f580db7f466a44626c1d764ee427fa32c926370095843af0b4f09d818cf84024a1543bb3d6f3d6e88818f1d3a7b5a249166ab8a5321266942b3b5ec67fecd444
7
- data.tar.gz: feca325f1e366a9083dfc9cd55d94d5cb3121c0bf8c621b22137be32460fa64587bb53de0b9ce02f7d35e783f9dbcf590a178c4c8f70b8dbb68e44b99cf069db
6
+ metadata.gz: 39d4eeb947f26d7d1c48872a8e6706b123c721a80534eb7c5c4447cbe54b7d96605a20832c2c6d8a7611d429a18d5cbf3572973580b757f58d2b3205f5cb569f
7
+ data.tar.gz: c35ca843c00c9545f8771b9c58622e8076f9af25a188c3c01c3339581e9f87af2f77b0f22ae69301cf2f4f8118269aaf634cbc24d19a4c80329603c9c0a54879
checksums.yaml.gz.sig CHANGED
Binary file
@@ -8,7 +8,6 @@ require_relative 'wrapper'
8
8
  require 'msgpack'
9
9
  require 'time'
10
10
  require 'set'
11
- require 'console'
12
11
 
13
12
  module Covered
14
13
  class Persist < Wrapper
@@ -26,7 +25,7 @@ module Covered
26
25
  return unless path = expand_path(record[:path])
27
26
 
28
27
  unless File.exist?(path)
29
- Console.logger.debug(self) {"Ignoring coverage, path #{path} does not exist!"}
28
+ # Ignore this coverage, the file no longer exists.
30
29
  return
31
30
  end
32
31
 
@@ -35,7 +34,7 @@ module Covered
35
34
 
36
35
  unless ignore_mtime
37
36
  if File.mtime(path).to_f > record[:mtime]
38
- Console.logger.debug(self) {"Ignoring coverage, path #{path} has been updated: #{File.mtime(path).to_f} > #{record[:mtime]}!"}
37
+ # Ignore this coverage, the file has been modified since it was recorded.
39
38
  return
40
39
  end
41
40
  end
@@ -66,8 +65,6 @@ module Covered
66
65
  File.open(@path, "rb") do |file|
67
66
  file.flock(File::LOCK_SH)
68
67
 
69
- Console.logger.debug(self) {"Loading from #{@path} with #{options}..."}
70
-
71
68
  make_unpacker(file).each do |record|
72
69
  self.apply(record, **options)
73
70
  end
@@ -79,8 +76,6 @@ module Covered
79
76
  File.open(@path, "wb") do |file|
80
77
  file.flock(File::LOCK_EX)
81
78
 
82
- Console.logger.debug(self) {"Saving to #{@path}..."}
83
-
84
79
  packer = make_packer(file)
85
80
 
86
81
  self.each do |coverage|
@@ -6,8 +6,6 @@
6
6
  require_relative 'statistics'
7
7
  require_relative 'wrapper'
8
8
 
9
- require 'console/terminal'
10
-
11
9
  module Covered
12
10
  class Summary
13
11
  def initialize(threshold: 1.0)
@@ -15,6 +13,8 @@ module Covered
15
13
  end
16
14
 
17
15
  def terminal(output)
16
+ require 'console/terminal'
17
+
18
18
  Console::Terminal.for(output).tap do |terminal|
19
19
  terminal[:path] ||= terminal.style(nil, nil, :bold, :underline)
20
20
  terminal[:brief_path] ||= terminal.style(:yellow)
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2018-2022, by Samuel Williams.
5
5
 
6
6
  module Covered
7
- VERSION = "0.18.0"
7
+ VERSION = "0.18.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.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -41,7 +41,7 @@ cert_chain:
41
41
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
42
42
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
43
43
  -----END CERTIFICATE-----
44
- date: 2022-09-28 00:00:00.000000000 Z
44
+ date: 2022-10-03 00:00:00.000000000 Z
45
45
  dependencies:
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: async-rest
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  requirements: []
205
- rubygems_version: 3.4.0.dev
205
+ rubygems_version: 3.3.7
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: A modern approach to code coverage.
metadata.gz.sig CHANGED
Binary file