simple_cov-formatter-terminal 1.7.1 → 1.8.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/CHANGELOG.md +6 -0
- data/Gemfile.lock +19 -19
- data/README.md +26 -0
- data/lib/simple_cov/formatter/terminal/version.rb +1 -1
- data/lib/simple_cov/formatter/terminal.rb +12 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 150831993c9b6bab0b5fe3f7ed4e389676213ed7cdfe6508151e27889df56cb0
|
4
|
+
data.tar.gz: b3dd029a4bd7f675f542446c126b13b6e0f80942aedf5d1773f97c8e49d64e09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8cfbd730dc378587af157949bd5f2e172dc5ece2d05c1e55ece025248d6232540a079dead6d47dab5540017df5435804b8dae4b53a4ff6631e3df02ccfc9d8f
|
7
|
+
data.tar.gz: 48474a5097ae23ef6f329bd392ec0f5d0dc5736b3bb481ecc20070d92f58698e22acfbd39c74c0e287735871f41fe5d2a668fb62c0ac606ccdb0ea9bddfc8ced
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
GIT
|
2
2
|
remote: https://github.com/davidrunger/pry-byebug
|
3
|
-
revision:
|
3
|
+
revision: 4ef3e66233451fcbeff3a5f7a616380214379272
|
4
4
|
specs:
|
5
5
|
pry-byebug (3.10.1)
|
6
6
|
pry (>= 0.13)
|
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
simple_cov-formatter-terminal (1.
|
12
|
+
simple_cov-formatter-terminal (1.8.0)
|
13
13
|
activesupport (>= 7.0.4)
|
14
14
|
memo_wise (>= 1.7.0)
|
15
15
|
rouge (>= 4.0.0)
|
@@ -20,7 +20,7 @@ PATH
|
|
20
20
|
GEM
|
21
21
|
remote: https://rubygems.org/
|
22
22
|
specs:
|
23
|
-
activesupport (8.0.
|
23
|
+
activesupport (8.0.2)
|
24
24
|
base64
|
25
25
|
benchmark (>= 0.3)
|
26
26
|
bigdecimal
|
@@ -52,11 +52,11 @@ GEM
|
|
52
52
|
pp (>= 0.6.0)
|
53
53
|
rdoc (>= 4.0.0)
|
54
54
|
reline (>= 0.4.2)
|
55
|
-
json (2.10.
|
55
|
+
json (2.10.2)
|
56
56
|
language_server-protocol (3.17.0.4)
|
57
57
|
lint_roller (1.1.0)
|
58
58
|
logger (1.6.6)
|
59
|
-
memo_wise (1.
|
59
|
+
memo_wise (1.11.0)
|
60
60
|
method_source (1.1.0)
|
61
61
|
minitest (5.25.4)
|
62
62
|
parallel (1.26.3)
|
@@ -96,7 +96,7 @@ GEM
|
|
96
96
|
diff-lcs (>= 1.2.0, < 2.0)
|
97
97
|
rspec-support (~> 3.13.0)
|
98
98
|
rspec-support (3.13.2)
|
99
|
-
rubocop (1.
|
99
|
+
rubocop (1.73.2)
|
100
100
|
json (~> 2.3)
|
101
101
|
language_server-protocol (~> 3.17.0.2)
|
102
102
|
lint_roller (~> 1.1.0)
|
@@ -107,7 +107,7 @@ GEM
|
|
107
107
|
rubocop-ast (>= 1.38.0, < 2.0)
|
108
108
|
ruby-progressbar (~> 1.7)
|
109
109
|
unicode-display_width (>= 2.4.0, < 4.0)
|
110
|
-
rubocop-ast (1.38.
|
110
|
+
rubocop-ast (1.38.1)
|
111
111
|
parser (>= 3.3.1.0)
|
112
112
|
rubocop-performance (1.24.0)
|
113
113
|
lint_roller (~> 1.1)
|
@@ -127,7 +127,7 @@ GEM
|
|
127
127
|
memo_wise (>= 1.7)
|
128
128
|
rainbow (>= 3.0)
|
129
129
|
slop (~> 4.8)
|
130
|
-
runger_style (5.
|
130
|
+
runger_style (5.7.0)
|
131
131
|
prism (>= 0.24.0)
|
132
132
|
rubocop (>= 1.72.0)
|
133
133
|
securerandom (0.4.1)
|
@@ -141,13 +141,13 @@ GEM
|
|
141
141
|
simplecov-html (0.13.1)
|
142
142
|
simplecov_json_formatter (0.1.4)
|
143
143
|
slop (4.10.1)
|
144
|
-
stringio (3.1.
|
144
|
+
stringio (3.1.5)
|
145
145
|
tzinfo (2.0.6)
|
146
146
|
concurrent-ruby (~> 1.0)
|
147
147
|
unicode-display_width (3.1.4)
|
148
148
|
unicode-emoji (~> 4.0, >= 4.0.4)
|
149
149
|
unicode-emoji (4.0.4)
|
150
|
-
uri (1.0.
|
150
|
+
uri (1.0.3)
|
151
151
|
|
152
152
|
PLATFORMS
|
153
153
|
ruby
|
@@ -169,7 +169,7 @@ DEPENDENCIES
|
|
169
169
|
simplecov-cobertura
|
170
170
|
|
171
171
|
CHECKSUMS
|
172
|
-
activesupport (8.0.
|
172
|
+
activesupport (8.0.2) sha256=8565cddba31b900cdc17682fd66ecd020441e3eef320a9930285394e8c07a45e
|
173
173
|
ast (2.4.2) sha256=1e280232e6a33754cde542bc5ef85520b74db2aac73ec14acef453784447cc12
|
174
174
|
base64 (0.2.0) sha256=0f25e9b21a02a0cc0cea8ef92b2041035d39350946e8789c562b2d1a3da01507
|
175
175
|
benchmark (0.4.0) sha256=0f12f8c495545e3710c3e4f0480f63f06b4c842cc94cec7f33a956f5180e874a
|
@@ -185,11 +185,11 @@ CHECKSUMS
|
|
185
185
|
i18n (1.14.7) sha256=ceba573f8138ff2c0915427f1fc5bdf4aa3ab8ae88c8ce255eb3ecf0a11a5d0f
|
186
186
|
io-console (0.8.0) sha256=cd6a9facbc69871d69b2cb8b926fc6ea7ef06f06e505e81a64f14a470fddefa2
|
187
187
|
irb (1.15.1) sha256=d9bca745ac4207a8b728a52b98b766ca909b86ff1a504bcde3d6f8c84faae890
|
188
|
-
json (2.10.
|
188
|
+
json (2.10.2) sha256=34e0eada93022b2a0a3345bb0b5efddb6e9ff5be7c48e409cfb54ff8a36a8b06
|
189
189
|
language_server-protocol (3.17.0.4) sha256=c484626478664fd13482d8180947c50a8590484b1258b99b7aedb3b69df89669
|
190
190
|
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
191
191
|
logger (1.6.6) sha256=dd618d24e637715472732e7eed02e33cfbdf56deaad225edd0f1f89d38024017
|
192
|
-
memo_wise (1.
|
192
|
+
memo_wise (1.11.0) sha256=06ef23a1edb6b8ee4f37d950bba04836b437b4d1036e45d24c2fd2f25b5490c3
|
193
193
|
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
194
194
|
minitest (5.25.4) sha256=9cf2cae25ac4dfc90c988ebc3b917f53c054978b673273da1bd20bcb0778f947
|
195
195
|
parallel (1.26.3) sha256=d86babb7a2b814be9f4b81587bf0b6ce2da7d45969fab24d8ae4bf2bb4d4c7ef
|
@@ -213,27 +213,27 @@ CHECKSUMS
|
|
213
213
|
rspec-expectations (3.13.3) sha256=0e6b5af59b900147698ea0ff80456c4f2e69cac4394fbd392fbd1ca561f66c58
|
214
214
|
rspec-mocks (3.13.2) sha256=2327335def0e1665325a9b617e3af9ae20272741d80ac550336309a7c59abdef
|
215
215
|
rspec-support (3.13.2) sha256=cea3a2463fd9b84b9dcc9685efd80ea701aa8f7b3decb3b3ce795ed67737dbec
|
216
|
-
rubocop (1.
|
217
|
-
rubocop-ast (1.38.
|
216
|
+
rubocop (1.73.2) sha256=35cd1b1365ba97234323fe771abcecd09c9b77098464cd726c76aa7d9bc12b5d
|
217
|
+
rubocop-ast (1.38.1) sha256=80ecbe2ac9bb26693cab9405bf72b41b85a1f909f20f021b983c32c2e7d857fe
|
218
218
|
rubocop-performance (1.24.0) sha256=e5bd39ff3e368395b9af886927cc37f5892f43db4bd6c8526594352d5b4440b5
|
219
219
|
rubocop-rspec (3.5.0) sha256=710c942fe1af884ba8eea75cbb8bdbb051929a2208880a6fc2e2dce1eed5304c
|
220
220
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
221
221
|
runger_byebug (11.4.0) sha256=569e22ba2215f57e7f69e145fcb63be401e29fcd312f7936d813e12d0c7bbee6
|
222
222
|
runger_config (5.2.0) sha256=9b76d767a2daa63f6f8f2c52a8183f3f09a877cd35bcaee692d25377f4dd4558
|
223
223
|
runger_release_assistant (2.0.0) sha256=f4f5708291eaeef1b881208f87a494877fe768739d6e96b7293fc335b28a3865
|
224
|
-
runger_style (5.
|
224
|
+
runger_style (5.7.0) sha256=200790f3998e0b924df17efc9d440ddec99508bae983ba2a63f42b80624762f0
|
225
225
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
226
|
-
simple_cov-formatter-terminal (1.
|
226
|
+
simple_cov-formatter-terminal (1.8.0)
|
227
227
|
simplecov (0.22.0) sha256=fe2622c7834ff23b98066bb0a854284b2729a569ac659f82621fc22ef36213a5
|
228
228
|
simplecov-cobertura (2.1.0) sha256=2c6532e34df2e38a379d72cef9a05c3b16c64ce90566beebc6887801c4ad3f02
|
229
229
|
simplecov-html (0.13.1) sha256=5dab0b7ee612e60e9887ad57693832fdf4695b4c0c859eaea5f95c18791ef10b
|
230
230
|
simplecov_json_formatter (0.1.4) sha256=529418fbe8de1713ac2b2d612aa3daa56d316975d307244399fa4838c601b428
|
231
231
|
slop (4.10.1) sha256=844322b5ffcf17ed4815fdb173b04a20dd82b4fd93e3744c88c8fafea696d9c7
|
232
|
-
stringio (3.1.
|
232
|
+
stringio (3.1.5) sha256=bca92461515a131535743bc81d5559fa1de7d80cff9a654d6c0af6f9f27e35c8
|
233
233
|
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
234
234
|
unicode-display_width (3.1.4) sha256=8caf2af1c0f2f07ec89ef9e18c7d88c2790e217c482bfc78aaa65eadd5415ac1
|
235
235
|
unicode-emoji (4.0.4) sha256=2c2c4ef7f353e5809497126285a50b23056cc6e61b64433764a35eff6c36532a
|
236
|
-
uri (1.0.
|
236
|
+
uri (1.0.3) sha256=e9f2244608eea2f7bc357d954c65c910ce0399ca5e18a7a29207ac22d8767011
|
237
237
|
|
238
238
|
RUBY VERSION
|
239
239
|
ruby 3.4.2p28
|
data/README.md
CHANGED
@@ -2,6 +2,26 @@
|
|
2
2
|
|
3
3
|

|
4
4
|
|
5
|
+
<!--ts-->
|
6
|
+
* [SimpleCov::Formatter::Terminal](#simplecovformatterterminal)
|
7
|
+
* [Installation](#installation)
|
8
|
+
* [Usage](#usage)
|
9
|
+
* [Which lines to print](#which-lines-to-print)
|
10
|
+
* [Modifying the spec_to_app_file_map](#modifying-the-spec_to_app_file_map)
|
11
|
+
* [Manually specifying file for which to show coverage](#manually-specifying-file-for-which-to-show-coverage)
|
12
|
+
* [Branch coverage](#branch-coverage)
|
13
|
+
* [Terminal hyperlinks](#terminal-hyperlinks)
|
14
|
+
* [Disabling](#disabling)
|
15
|
+
* [Via env var](#via-env-var)
|
16
|
+
* [Development](#development)
|
17
|
+
* [Contributing](#contributing)
|
18
|
+
* [License](#license)
|
19
|
+
|
20
|
+
<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
|
21
|
+
<!-- Added by: david, at: Wed Mar 12 02:48:00 PM CDT 2025 -->
|
22
|
+
|
23
|
+
<!--te-->
|
24
|
+
|
5
25
|
## Installation
|
6
26
|
|
7
27
|
*Note:* This gem depends upon RSpec. If you aren't using RSpec to run your tests, it won't work!
|
@@ -134,6 +154,12 @@ For example, this pattern will work to make the line numbers clickable links tha
|
|
134
154
|
SIMPLECOV_TERMINAL_HYPERLINK_PATTERN="vscode://file/%f:%l"
|
135
155
|
```
|
136
156
|
|
157
|
+
## Disabling
|
158
|
+
|
159
|
+
### Via env var
|
160
|
+
|
161
|
+
You can disable SimpleCov::Formatter::Terminal by setting a `DISABLE_SIMPLECOV_TERMINAL` environment variable to any value.
|
162
|
+
|
137
163
|
## Development
|
138
164
|
|
139
165
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/rspec` to run
|
@@ -46,16 +46,18 @@ class SimpleCov::Formatter::Terminal
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def format(result)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
49
|
+
unless ENV.key?('DISABLE_SIMPLECOV_TERMINAL')
|
50
|
+
if executed_spec_files.nil?
|
51
|
+
print_info_for_no_executed_specs
|
52
|
+
elsif unmappable_spec_file? && targeted_application_file.nil?
|
53
|
+
print_info_for_undeterminable_application_target
|
54
|
+
elsif targeted_application_file.nil?
|
55
|
+
print_info_for_undetermined_application_target
|
56
|
+
elsif File.exist?(targeted_application_file)
|
57
|
+
print_coverage_info(result)
|
58
|
+
else
|
59
|
+
print_info_for_nonexistent_application_target
|
60
|
+
end
|
59
61
|
end
|
60
62
|
end
|
61
63
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Runger
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-03-12 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activesupport
|