covered 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b3b51e8cda089a57c22c3ef8e75f7f0da473883048f2526c343eeaff2b96578
4
- data.tar.gz: a4ae054e1b15e1c4a0398c2bd2aaa4ee2291fab2d4f3315eaf8e0772b6e5921c
3
+ metadata.gz: 9eb5a466deb0bcc3af69c5b71918bfc829e4a4bec785c13da78688c9278c1b4a
4
+ data.tar.gz: 07f5476e36cc7c663fd8cc5fafc23717eb59b20e15a8827c5b862c98c0a0067f
5
5
  SHA512:
6
- metadata.gz: 1e841ed5b73e93b103adae84f250f43e204b75d8acb3de82ef4ec0dc6ef10a2db8c7c28cf00cad3a094678480bf07f7a4425e0f6284ea481f0e70c1ed68f7baa
7
- data.tar.gz: 6e9b2dab1f92cf567126d20ea2ec77dfd7c8959ac397b1f73cfd3793d91fc7672408452ef4cf345962e55425ea13014de79a9b16f0978fbc2156a43ac2a0746d
6
+ metadata.gz: efd5be44ee0f249bccac54b51aebde178fef6e4baa205493f70b76a8236c2bad191adc3056f47aa6256a1682ee2f1ab1049c80eaa28de3860a33d7d9fb6d4e17
7
+ data.tar.gz: 70fadd524983f114bcde544b6ffa9e3d97f52ad4b8004e23b548be4458916248abc45e29a8083e334cce85c76f0cc70b87f7480975f09d6e21051cb57d78f11a
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022-2024, by Samuel Williams.
4
+ # Copyright, 2022-2025, by Samuel Williams.
5
5
 
6
6
  def initialize(context)
7
7
  super
8
8
 
9
- require_relative '../../lib/covered'
9
+ require_relative "../../lib/covered"
10
10
  end
11
11
 
12
12
  # Debug the coverage of a file. Show which lines should be executable.
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2023-2024, by Samuel Williams.
4
+ # Copyright, 2023-2025, by Samuel Williams.
5
5
  # Copyright, 2023, by Michael Adams.
6
6
 
7
7
  def initialize(context)
8
8
  super
9
9
 
10
- require_relative '../../lib/covered/config'
10
+ require_relative "../../lib/covered/config"
11
11
  end
12
12
 
13
13
  # Load the current coverage policy.
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2022-2023, by Samuel Williams.
4
+ # Copyright, 2022-2025, by Samuel Williams.
5
5
 
6
6
  def initialize(context)
7
7
  super
8
8
 
9
- require_relative '../../lib/covered/config'
9
+ require_relative "../../lib/covered/config"
10
10
  end
11
11
 
12
12
  # Validate the coverage of multiple test runs.
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2023, by Samuel Williams.
4
+ # Copyright, 2023-2025, by Samuel Williams.
5
5
 
6
- require_relative 'config'
6
+ require_relative "config"
7
7
 
8
8
  module Coverage
9
9
  module Autostart
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
- require_relative 'wrapper'
6
+ require_relative "wrapper"
7
7
 
8
- require 'coverage'
8
+ require "coverage"
9
9
 
10
10
  module Covered
11
11
  class Capture < Wrapper
@@ -1,16 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2023, by Samuel Williams.
4
+ # Copyright, 2019-2025, by Samuel Williams.
5
5
 
6
- require_relative 'policy'
6
+ require_relative "policy"
7
7
 
8
8
  module Covered
9
9
  class Config
10
10
  PATH = "config/covered.rb"
11
11
 
12
12
  def self.root
13
- ENV['COVERED_ROOT'] || Dir.pwd
13
+ ENV["COVERED_ROOT"] || Dir.pwd
14
14
  end
15
15
 
16
16
  def self.path(root)
@@ -22,7 +22,7 @@ module Covered
22
22
  end
23
23
 
24
24
  def self.reports
25
- ENV['COVERAGE']
25
+ ENV["COVERAGE"]
26
26
  end
27
27
 
28
28
  def self.load(root: self.root, reports: self.reports)
@@ -94,7 +94,7 @@ module Covered
94
94
  # Which paths to ignore when computing coverage for a given project.
95
95
  # @returns [Array(String)] An array of relative paths to ignore.
96
96
  def ignore_paths
97
- ['test/', 'fixtures/', 'spec/', 'vendor/', 'config/']
97
+ ["test/", "fixtures/", "spec/", "vendor/", "config/"]
98
98
  end
99
99
 
100
100
  # Which paths to include when computing coverage for a given project.
@@ -127,23 +127,23 @@ module Covered
127
127
 
128
128
  protected
129
129
 
130
- REQUIRE_COVERED_AUTOSTART = '-rcovered/autostart'
130
+ REQUIRE_COVERED_AUTOSTART = "-rcovered/autostart"
131
131
 
132
132
  def autostart!
133
- if rubyopt = ENV['RUBYOPT'] and !rubyopt.empty?
134
- rubyopt = [rubyopt.strip, REQUIRE_COVERED_AUTOSTART].join(' ')
133
+ if rubyopt = ENV["RUBYOPT"] and !rubyopt.empty?
134
+ rubyopt = [rubyopt.strip, REQUIRE_COVERED_AUTOSTART].join(" ")
135
135
  else
136
136
  rubyopt = REQUIRE_COVERED_AUTOSTART
137
137
  end
138
138
 
139
- ENV['RUBYOPT'] = rubyopt
139
+ ENV["RUBYOPT"] = rubyopt
140
140
 
141
- unless ENV['COVERED_ROOT']
142
- ENV['COVERED_ROOT'] = @root
141
+ unless ENV["COVERED_ROOT"]
142
+ ENV["COVERED_ROOT"] = @root
143
143
  end
144
144
 
145
145
  # Don't report coverage in child processes:
146
- ENV.delete('COVERAGE')
146
+ ENV.delete("COVERAGE")
147
147
  end
148
148
  end
149
149
  end
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
- require_relative 'source'
6
+ require_relative "source"
7
7
 
8
8
  module Covered
9
9
  module Ratio
data/lib/covered/files.rb CHANGED
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
- require_relative 'coverage'
7
- require_relative 'wrapper'
6
+ require_relative "coverage"
7
+ require_relative "wrapper"
8
8
 
9
- require 'set'
9
+ require "set"
10
10
 
11
11
  module Covered
12
12
  class Files < Base
data/lib/covered/forks.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2023, by Samuel Williams.
4
+ # Copyright, 2023-2025, by Samuel Williams.
5
5
 
6
- require_relative 'wrapper'
6
+ require_relative "wrapper"
7
7
 
8
8
  module Covered
9
9
  class Forks < Wrapper
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2021-2023, by Samuel Williams.
4
+ # Copyright, 2021-2025, by Samuel Williams.
5
5
 
6
- require_relative 'statistics'
7
- require_relative 'wrapper'
6
+ require_relative "statistics"
7
+ require_relative "wrapper"
8
8
 
9
- require 'console/output'
9
+ require "console/output"
10
10
 
11
11
  module Covered
12
12
  class MarkdownSummary
@@ -56,7 +56,7 @@ module Covered
56
56
 
57
57
  # A coverage array gives, for each line, the number of line execution by the interpreter. A nil value means coverage is finishd for this line (lines like else and end).
58
58
  def call(wrapper, output = $stdout)
59
- output.puts '# Coverage Report'
59
+ output.puts "# Coverage Report"
60
60
  output.puts
61
61
 
62
62
  ordered = []
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2023, by Samuel Williams.
4
+ # Copyright, 2019-2025, by Samuel Williams.
5
5
  # Copyright, 2022, by Adam Daniels.
6
6
 
7
- require_relative 'config'
7
+ require_relative "config"
8
8
 
9
- require 'minitest'
9
+ require "minitest"
10
10
 
11
11
  $covered = Covered::Config.load
12
12
 
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2023, by Samuel Williams.
4
+ # Copyright, 2019-2025, by Samuel Williams.
5
5
  # Copyright, 2023, by Stephen Ierodiaconou.
6
6
 
7
- require_relative 'wrapper'
7
+ require_relative "wrapper"
8
8
 
9
- require 'msgpack'
10
- require 'time'
9
+ require "msgpack"
10
+ require "time"
11
11
 
12
12
  module Covered
13
13
  class Persist < Wrapper
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
6
  require_relative "summary"
7
7
  require_relative "files"
@@ -93,7 +93,7 @@ module Covered
93
93
  private
94
94
 
95
95
  def snake_case(string)
96
- return string.gsub(/::/, '/').
96
+ return string.gsub(/::/, "/").
97
97
  gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
98
98
  gsub(/([a-z\d])([A-Z])/,'\1_\2').
99
99
  tr("-", "_").
@@ -103,7 +103,7 @@ module Covered
103
103
 
104
104
  def reports!(reports)
105
105
  if reports.is_a?(String)
106
- names = reports.split(',')
106
+ names = reports.split(",")
107
107
 
108
108
  names.each do |name|
109
109
  begin
data/lib/covered/rspec.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
- require_relative 'config'
7
- require 'rspec/core/formatters'
6
+ require_relative "config"
7
+ require "rspec/core/formatters"
8
8
 
9
9
  $covered = Covered::Config.load
10
10
 
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
- require_relative 'wrapper'
7
- require_relative 'coverage'
6
+ require_relative "wrapper"
7
+ require_relative "coverage"
8
8
 
9
9
  module Covered
10
10
  class CoverageError < StandardError
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
- require_relative 'statistics'
7
- require_relative 'wrapper'
6
+ require_relative "statistics"
7
+ require_relative "wrapper"
8
8
 
9
9
  module Covered
10
10
  class Summary
@@ -13,7 +13,7 @@ module Covered
13
13
  end
14
14
 
15
15
  def terminal(output)
16
- require 'console/terminal'
16
+ require "console/terminal"
17
17
 
18
18
  Console::Terminal.for(output).tap do |terminal|
19
19
  terminal[:path] ||= terminal.style(nil, nil, :bold, :underline)
data/lib/covered/sus.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2019-2023, by Samuel Williams.
4
+ # Copyright, 2019-2025, by Samuel Williams.
5
5
 
6
6
  module Covered
7
7
  module Sus
@@ -9,8 +9,8 @@ module Covered
9
9
  super
10
10
 
11
11
  # Defer loading the coverage configuration unless we are actually running with coverage startd to avoid performance cost/overhead.
12
- if ENV['COVERAGE']
13
- require_relative 'config'
12
+ if ENV["COVERAGE"]
13
+ require_relative "config"
14
14
 
15
15
  @covered = Covered::Config.load(root: self.root)
16
16
  if @covered.record?
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2023, by Samuel Williams.
4
+ # Copyright, 2018-2025, by Samuel Williams.
5
5
 
6
6
  module Covered
7
- VERSION = "0.26.0"
7
+ VERSION = "0.27.0"
8
8
  end
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2018-2024, by Samuel Williams.
3
+ Copyright, 2018-2025, by Samuel Williams.
4
4
  Copyright, 2018, by Shannon Skipper.
5
5
  Copyright, 2019, by Cyril Roelandt.
6
6
  Copyright, 2022, by Adam Daniels.
data/readme.md CHANGED
@@ -24,17 +24,25 @@ After this concept prooved useful, [it was integrated directly into Ruby](https:
24
24
 
25
25
  ## Usage
26
26
 
27
- Please see the [project documentation](https://ioquatix.github.io/covered/) for more details.
27
+ Please see the [project documentation](https://socketry.github.io/covered/) for more details.
28
28
 
29
- - [Getting Started](https://ioquatix.github.io/covered/guides/getting-started/index) - This guide explains how to get started with `covered` and integrate it with your test suite.
29
+ - [Getting Started](https://socketry.github.io/covered/guides/getting-started/index) - This guide explains how to get started with `covered` and integrate it with your test suite.
30
30
 
31
- - [Configuration](https://ioquatix.github.io/covered/guides/configuration/index) - This guide will help you to configure covered for your project's specific requirements.
31
+ - [Configuration](https://socketry.github.io/covered/guides/configuration/index) - This guide will help you to configure covered for your project's specific requirements.
32
+
33
+ ## Releases
34
+
35
+ Please see the [project releases](https://socketry.github.io/covered/releases/index) for all releases.
36
+
37
+ ### v0.27.0
38
+
39
+ - Drop development dependeny on `trenni` and add dependeny on `xrb`.
32
40
 
33
41
  ## See Also
34
42
 
35
43
  - [simplecov](https://github.com/colszowka/simplecov) – one of the original coverage implementations for Ruby, uses
36
44
  the built-in `coverage` library.
37
- - [sus](https://github.com/ioquatix/sus) - a test framework which uses `covered` to generate coverage reports.
45
+ - [sus](https://github.com/socketry/sus) - a test framework which uses `covered` to generate coverage reports.
38
46
 
39
47
  ## Contributing
40
48
 
@@ -48,8 +56,8 @@ We welcome contributions to this project.
48
56
 
49
57
  ### Developer Certificate of Origin
50
58
 
51
- This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
59
+ In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
52
60
 
53
- ### Contributor Covenant
61
+ ### Community Guidelines
54
62
 
55
- This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
63
+ This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
data/releases.md ADDED
@@ -0,0 +1,5 @@
1
+ # Releases
2
+
3
+ ## v0.27.0
4
+
5
+ - Drop development dependeny on `trenni` and add dependeny on `xrb`.
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.26.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -11,7 +11,6 @@ authors:
11
11
  - Michael Adams
12
12
  - Shannon Skipper
13
13
  - Stephen Ierodiaconou
14
- autorequire:
15
14
  bindir: bin
16
15
  cert_chain:
17
16
  - |
@@ -43,7 +42,7 @@ cert_chain:
43
42
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
44
43
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
45
44
  -----END CERTIFICATE-----
46
- date: 2024-07-11 00:00:00.000000000 Z
45
+ date: 2025-03-07 00:00:00.000000000 Z
47
46
  dependencies:
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: console
@@ -73,8 +72,6 @@ dependencies:
73
72
  - - "~>"
74
73
  - !ruby/object:Gem::Version
75
74
  version: '1.0'
76
- description:
77
- email:
78
75
  executables: []
79
76
  extensions: []
80
77
  extra_rdoc_files: []
@@ -102,14 +99,14 @@ files:
102
99
  - lib/covered/wrapper.rb
103
100
  - license.md
104
101
  - readme.md
105
- homepage: https://github.com/ioquatix/covered
102
+ - releases.md
103
+ homepage: https://github.com/socketry/covered
106
104
  licenses:
107
105
  - MIT
108
106
  metadata:
109
- documentation_uri: https://ioquatix.github.io/covered/
107
+ documentation_uri: https://socketry.github.io/covered/
110
108
  funding_uri: https://github.com/sponsors/ioquatix/
111
- source_code_uri: https://github.com/ioquatix/covered.git
112
- post_install_message:
109
+ source_code_uri: https://github.com/socketry/covered.git
113
110
  rdoc_options: []
114
111
  require_paths:
115
112
  - lib
@@ -124,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
121
  - !ruby/object:Gem::Version
125
122
  version: '0'
126
123
  requirements: []
127
- rubygems_version: 3.5.11
128
- signing_key:
124
+ rubygems_version: 3.6.2
129
125
  specification_version: 4
130
126
  summary: A modern approach to code coverage.
131
127
  test_files: []
metadata.gz.sig CHANGED
Binary file