simple_cov-formatter-terminal 1.5.0 → 1.7.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 +4 -4
- data/.ruby-version +1 -1
- data/.runger-config.yml +1 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +40 -39
- data/README.md +8 -4
- data/lib/simple_cov/formatter/terminal/config.rb +0 -1
- data/lib/simple_cov/formatter/terminal/line_printer.rb +1 -1
- data/lib/simple_cov/formatter/terminal/result_printer.rb +1 -1
- data/lib/simple_cov/formatter/terminal/version.rb +1 -1
- data/simple_cov-formatter-terminal.gemspec +5 -5
- metadata +4 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0168b92f0883e584bac0d7e67e59df9677d267a11859dee931d39880352eef73'
|
4
|
+
data.tar.gz: 34468a9c31cf845c34485c56e556d7705cfcea7015418e7535d392a6d4688107
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c70d84602bcccc147fa829b351e6a284bfdc27048de200df7ccf4cf6ab5a79007a0d1f724dc38783421dada548444c804928069f5760323c51ac05053bb37ad4
|
7
|
+
data.tar.gz: 358d38b701e77fee4ac514a47e9136dab32457274a83cc768c6a9c8d01d21b3c47415338ba0c8b6dc489d5a3e9b7f920a49e46ea9833a686ba8ecfd1c604e2d8
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.
|
1
|
+
3.3.6
|
data/.runger-config.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
expected-num-github-checks: 3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## v1.7.0 (2024-11-08)
|
2
|
+
- Remove upper bounds on versions for all dependencies
|
3
|
+
|
4
|
+
## v1.6.0 (2024-07-30)
|
5
|
+
- Make terminal hyperlink pattern an ENV var (`SIMPLECOV_TERMINAL_HYPERLINK_PATTERN`) rather than a Ruby setting
|
6
|
+
|
1
7
|
## v1.5.0 (2024-07-28)
|
2
8
|
- Print line numbers as terminal hyperlinks if a `SimpleCov::Formatter::Terminal.config.terminal_hyperlink_target_pattern` is provided
|
3
9
|
|
data/Gemfile.lock
CHANGED
@@ -1,106 +1,108 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_cov-formatter-terminal (1.
|
5
|
-
activesupport (>= 7.0.4
|
6
|
-
memo_wise (>= 1.7.0
|
7
|
-
rouge (>= 4.0.0
|
8
|
-
rspec-core (>= 3.11.0
|
4
|
+
simple_cov-formatter-terminal (1.7.0)
|
5
|
+
activesupport (>= 7.0.4)
|
6
|
+
memo_wise (>= 1.7.0)
|
7
|
+
rouge (>= 4.0.0)
|
8
|
+
rspec-core (>= 3.11.0)
|
9
9
|
runger_config (>= 3.0.0)
|
10
|
-
simplecov (>= 0.21.2
|
10
|
+
simplecov (>= 0.21.2)
|
11
11
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activesupport (7.
|
15
|
+
activesupport (7.2.2)
|
16
16
|
base64
|
17
|
+
benchmark (>= 0.3)
|
17
18
|
bigdecimal
|
18
|
-
concurrent-ruby (~> 1.0, >= 1.
|
19
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
19
20
|
connection_pool (>= 2.2.5)
|
20
21
|
drb
|
21
22
|
i18n (>= 1.6, < 2)
|
23
|
+
logger (>= 1.4.2)
|
22
24
|
minitest (>= 5.1)
|
23
|
-
|
24
|
-
tzinfo (~> 2.0)
|
25
|
+
securerandom (>= 0.3)
|
26
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
25
27
|
ast (2.4.2)
|
26
28
|
base64 (0.2.0)
|
29
|
+
benchmark (0.4.0)
|
27
30
|
bigdecimal (3.1.8)
|
28
31
|
byebug (11.1.3)
|
29
32
|
climate_control (1.2.0)
|
30
33
|
coderay (1.1.3)
|
31
|
-
concurrent-ruby (1.3.
|
34
|
+
concurrent-ruby (1.3.4)
|
32
35
|
connection_pool (2.4.1)
|
33
36
|
diff-lcs (1.5.1)
|
34
37
|
docile (1.4.1)
|
35
38
|
drb (2.2.1)
|
36
|
-
i18n (1.14.
|
39
|
+
i18n (1.14.6)
|
37
40
|
concurrent-ruby (~> 1.0)
|
38
|
-
json (2.
|
41
|
+
json (2.8.1)
|
39
42
|
language_server-protocol (3.17.0.3)
|
40
|
-
|
43
|
+
logger (1.6.1)
|
44
|
+
memo_wise (1.10.0)
|
41
45
|
method_source (1.1.0)
|
42
|
-
minitest (5.
|
43
|
-
|
44
|
-
|
45
|
-
parser (3.3.4.0)
|
46
|
+
minitest (5.25.1)
|
47
|
+
parallel (1.26.3)
|
48
|
+
parser (3.3.6.0)
|
46
49
|
ast (~> 2.4.1)
|
47
50
|
racc
|
48
|
-
prism (
|
51
|
+
prism (1.2.0)
|
49
52
|
pry (0.14.2)
|
50
53
|
coderay (~> 1.1)
|
51
54
|
method_source (~> 1.0)
|
52
55
|
pry-byebug (3.10.1)
|
53
56
|
byebug (~> 11.0)
|
54
57
|
pry (>= 0.13, < 0.15)
|
55
|
-
racc (1.8.
|
58
|
+
racc (1.8.1)
|
56
59
|
rainbow (3.1.1)
|
57
60
|
rake (13.2.1)
|
58
61
|
regexp_parser (2.9.2)
|
59
|
-
rexml (3.3.
|
60
|
-
|
61
|
-
rouge (4.3.0)
|
62
|
+
rexml (3.3.9)
|
63
|
+
rouge (4.4.0)
|
62
64
|
rspec (3.13.0)
|
63
65
|
rspec-core (~> 3.13.0)
|
64
66
|
rspec-expectations (~> 3.13.0)
|
65
67
|
rspec-mocks (~> 3.13.0)
|
66
|
-
rspec-core (3.13.
|
68
|
+
rspec-core (3.13.2)
|
67
69
|
rspec-support (~> 3.13.0)
|
68
|
-
rspec-expectations (3.13.
|
70
|
+
rspec-expectations (3.13.3)
|
69
71
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
72
|
rspec-support (~> 3.13.0)
|
71
|
-
rspec-mocks (3.13.
|
73
|
+
rspec-mocks (3.13.2)
|
72
74
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
75
|
rspec-support (~> 3.13.0)
|
74
76
|
rspec-support (3.13.1)
|
75
|
-
rubocop (1.
|
77
|
+
rubocop (1.66.1)
|
76
78
|
json (~> 2.3)
|
77
79
|
language_server-protocol (>= 3.17.0)
|
78
80
|
parallel (~> 1.10)
|
79
81
|
parser (>= 3.3.0.2)
|
80
82
|
rainbow (>= 2.2.2, < 4.0)
|
81
83
|
regexp_parser (>= 2.4, < 3.0)
|
82
|
-
|
83
|
-
rubocop-ast (>= 1.31.1, < 2.0)
|
84
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
84
85
|
ruby-progressbar (~> 1.7)
|
85
86
|
unicode-display_width (>= 2.4.0, < 3.0)
|
86
|
-
rubocop-ast (1.
|
87
|
+
rubocop-ast (1.34.1)
|
87
88
|
parser (>= 3.3.1.0)
|
88
|
-
rubocop-performance (1.
|
89
|
+
rubocop-performance (1.22.1)
|
89
90
|
rubocop (>= 1.48.1, < 2.0)
|
90
91
|
rubocop-ast (>= 1.31.1, < 2.0)
|
91
|
-
rubocop-rspec (3.0
|
92
|
+
rubocop-rspec (3.2.0)
|
92
93
|
rubocop (~> 1.61)
|
93
94
|
ruby-progressbar (1.13.0)
|
94
95
|
runger_config (5.2.0)
|
95
96
|
activesupport (>= 7.1.2)
|
96
|
-
runger_release_assistant (0.
|
97
|
+
runger_release_assistant (0.12.0)
|
97
98
|
activesupport (>= 6, < 8)
|
98
99
|
memo_wise (>= 1.7, < 2)
|
99
100
|
rainbow (>= 3.0, < 4)
|
100
101
|
slop (~> 4.8)
|
101
|
-
runger_style (2.
|
102
|
+
runger_style (2.17.0)
|
102
103
|
prism (>= 0.24.0)
|
103
104
|
rubocop (>= 1.38.0, < 2)
|
105
|
+
securerandom (0.3.1)
|
104
106
|
simplecov (0.22.0)
|
105
107
|
docile (~> 1.1)
|
106
108
|
simplecov-html (~> 0.11)
|
@@ -108,13 +110,12 @@ GEM
|
|
108
110
|
simplecov-cobertura (2.1.0)
|
109
111
|
rexml
|
110
112
|
simplecov (~> 0.19)
|
111
|
-
simplecov-html (0.
|
113
|
+
simplecov-html (0.13.1)
|
112
114
|
simplecov_json_formatter (0.1.4)
|
113
115
|
slop (4.10.1)
|
114
|
-
strscan (3.1.0)
|
115
116
|
tzinfo (2.0.6)
|
116
117
|
concurrent-ruby (~> 1.0)
|
117
|
-
unicode-display_width (2.
|
118
|
+
unicode-display_width (2.6.0)
|
118
119
|
|
119
120
|
PLATFORMS
|
120
121
|
ruby
|
@@ -136,7 +137,7 @@ DEPENDENCIES
|
|
136
137
|
simplecov-cobertura
|
137
138
|
|
138
139
|
RUBY VERSION
|
139
|
-
ruby 3.3.
|
140
|
+
ruby 3.3.6p108
|
140
141
|
|
141
142
|
BUNDLED WITH
|
142
|
-
2.5.
|
143
|
+
2.5.23
|
data/README.md
CHANGED
@@ -104,6 +104,10 @@ SimpleCov::Formatter::Terminal.config.spec_to_app_file_map = {
|
|
104
104
|
}
|
105
105
|
```
|
106
106
|
|
107
|
+
### Manually specifying file for which to show coverage
|
108
|
+
|
109
|
+
An alternative to using the `spec_to_app_file_map` configuration is to set a `SIMPLECOV_TARGET_FILE` environment variable.
|
110
|
+
|
107
111
|
## Branch coverage
|
108
112
|
|
109
113
|
If you enable branch coverage for SimpleCov (via `enable_coverage(:branch)` within your
|
@@ -117,17 +121,17 @@ branch is not covered on line 18).
|
|
117
121
|
|
118
122
|
## Terminal hyperlinks
|
119
123
|
|
120
|
-
If you
|
124
|
+
If you set a `SIMPLECOV_TERMINAL_HYPERLINK_PATTERN`, then SimpleCov::Formatter::Terminal will attempt to print the line numbers in its display as hyperlinks to the relevant line of code.
|
121
125
|
|
122
|
-
The pattern can include these interpolation markers:
|
126
|
+
The pattern can/should include these interpolation markers:
|
123
127
|
|
124
128
|
- `%f` - This will be replaced with the absolute path of the application file.
|
125
129
|
- `%l` - This will be replaced with the line number.
|
126
130
|
|
127
131
|
For example, this pattern will work to make the line numbers clickable links that open the appropriate file at the appropriate line in VS Code:
|
128
132
|
|
129
|
-
```
|
130
|
-
|
133
|
+
```sh
|
134
|
+
SIMPLECOV_TERMINAL_HYPERLINK_PATTERN="vscode://file/%f:%l"
|
131
135
|
```
|
132
136
|
|
133
137
|
## Development
|
@@ -16,7 +16,6 @@ class SimpleCov::Formatter::Terminal::Config < Runger::Config
|
|
16
16
|
lines_to_print: LinesToPrint::UNCOVERED,
|
17
17
|
spec_to_app_file_map:
|
18
18
|
SimpleCov::Formatter::Terminal::SpecToAppMapping.default_spec_to_app_map,
|
19
|
-
terminal_hyperlink_target_pattern: nil,
|
20
19
|
unmappable_spec_regexes:
|
21
20
|
SimpleCov::Formatter::Terminal::SpecToAppMapping::DEFAULT_UNMAPPABLE_SPEC_REGEXES,
|
22
21
|
)
|
@@ -39,7 +39,7 @@ class SimpleCov::Formatter::Terminal::LinePrinter
|
|
39
39
|
else color(' ', :white_on_green)
|
40
40
|
end
|
41
41
|
|
42
|
-
pattern =
|
42
|
+
pattern = ENV['SIMPLECOV_TERMINAL_HYPERLINK_PATTERN'].presence
|
43
43
|
|
44
44
|
link_text = line_number.to_s.rjust(LINE_NUMBER_WIDTH, ' ')
|
45
45
|
|
@@ -32,7 +32,7 @@ class SimpleCov::Formatter::Terminal::ResultPrinter
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def print_coverage_summary(sourcefile, log_addendum = nil)
|
35
|
-
summary =
|
35
|
+
summary = "-- Coverage for #{targeted_application_file} --\n"
|
36
36
|
summary << "Line coverage: #{colorized_coverage(sourcefile.covered_percent)}"
|
37
37
|
if SimpleCov.branch_coverage?
|
38
38
|
summary << ' '
|
@@ -33,12 +33,12 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.require_paths = ['lib']
|
34
34
|
|
35
35
|
# Uncomment to register a new dependency of your gem
|
36
|
-
spec.add_dependency('activesupport', '>= 7.0.4'
|
37
|
-
spec.add_dependency('memo_wise', '>= 1.7.0'
|
38
|
-
spec.add_dependency('rouge', '>= 4.0.0'
|
39
|
-
spec.add_dependency('rspec-core', '>= 3.11.0'
|
36
|
+
spec.add_dependency('activesupport', '>= 7.0.4')
|
37
|
+
spec.add_dependency('memo_wise', '>= 1.7.0')
|
38
|
+
spec.add_dependency('rouge', '>= 4.0.0')
|
39
|
+
spec.add_dependency('rspec-core', '>= 3.11.0')
|
40
40
|
spec.add_dependency('runger_config', '>= 3.0.0')
|
41
|
-
spec.add_dependency('simplecov', '>= 0.21.2'
|
41
|
+
spec.add_dependency('simplecov', '>= 0.21.2')
|
42
42
|
|
43
43
|
# For more information and examples about making a new gem, check out our
|
44
44
|
# guide at: https://bundler.io/guides/creating_gem.html
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_cov-formatter-terminal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 7.0.4
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '8'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: 7.0.4
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '8'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: memo_wise
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -37,9 +31,6 @@ dependencies:
|
|
37
31
|
- - ">="
|
38
32
|
- !ruby/object:Gem::Version
|
39
33
|
version: 1.7.0
|
40
|
-
- - "<"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: '2'
|
43
34
|
type: :runtime
|
44
35
|
prerelease: false
|
45
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -47,9 +38,6 @@ dependencies:
|
|
47
38
|
- - ">="
|
48
39
|
- !ruby/object:Gem::Version
|
49
40
|
version: 1.7.0
|
50
|
-
- - "<"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '2'
|
53
41
|
- !ruby/object:Gem::Dependency
|
54
42
|
name: rouge
|
55
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -57,9 +45,6 @@ dependencies:
|
|
57
45
|
- - ">="
|
58
46
|
- !ruby/object:Gem::Version
|
59
47
|
version: 4.0.0
|
60
|
-
- - "<"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '5'
|
63
48
|
type: :runtime
|
64
49
|
prerelease: false
|
65
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -67,9 +52,6 @@ dependencies:
|
|
67
52
|
- - ">="
|
68
53
|
- !ruby/object:Gem::Version
|
69
54
|
version: 4.0.0
|
70
|
-
- - "<"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '5'
|
73
55
|
- !ruby/object:Gem::Dependency
|
74
56
|
name: rspec-core
|
75
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -77,9 +59,6 @@ dependencies:
|
|
77
59
|
- - ">="
|
78
60
|
- !ruby/object:Gem::Version
|
79
61
|
version: 3.11.0
|
80
|
-
- - "<"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '4'
|
83
62
|
type: :runtime
|
84
63
|
prerelease: false
|
85
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -87,9 +66,6 @@ dependencies:
|
|
87
66
|
- - ">="
|
88
67
|
- !ruby/object:Gem::Version
|
89
68
|
version: 3.11.0
|
90
|
-
- - "<"
|
91
|
-
- !ruby/object:Gem::Version
|
92
|
-
version: '4'
|
93
69
|
- !ruby/object:Gem::Dependency
|
94
70
|
name: runger_config
|
95
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -111,9 +87,6 @@ dependencies:
|
|
111
87
|
- - ">="
|
112
88
|
- !ruby/object:Gem::Version
|
113
89
|
version: 0.21.2
|
114
|
-
- - "<"
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '1'
|
117
90
|
type: :runtime
|
118
91
|
prerelease: false
|
119
92
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -121,9 +94,6 @@ dependencies:
|
|
121
94
|
- - ">="
|
122
95
|
- !ruby/object:Gem::Version
|
123
96
|
version: 0.21.2
|
124
|
-
- - "<"
|
125
|
-
- !ruby/object:Gem::Version
|
126
|
-
version: '1'
|
127
97
|
description: Print detailed code coverage info to the terminal
|
128
98
|
email:
|
129
99
|
- davidjrunger@gmail.com
|
@@ -135,6 +105,7 @@ files:
|
|
135
105
|
- ".rspec"
|
136
106
|
- ".rubocop.yml"
|
137
107
|
- ".ruby-version"
|
108
|
+
- ".runger-config.yml"
|
138
109
|
- CHANGELOG.md
|
139
110
|
- Gemfile
|
140
111
|
- Gemfile.lock
|
@@ -176,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
147
|
- !ruby/object:Gem::Version
|
177
148
|
version: '0'
|
178
149
|
requirements: []
|
179
|
-
rubygems_version: 3.5.
|
150
|
+
rubygems_version: 3.5.23
|
180
151
|
signing_key:
|
181
152
|
specification_version: 4
|
182
153
|
summary: Print detailed code coverage info to the terminal
|