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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 937028f9dff47048a0270872868b5d450adb9d2c3d59b5b8804f113943e68a5f
4
- data.tar.gz: f80a16c1a213906bb40789b8927ed7e205bb17851b8eabd5aeb62425dffdea95
3
+ metadata.gz: 150831993c9b6bab0b5fe3f7ed4e389676213ed7cdfe6508151e27889df56cb0
4
+ data.tar.gz: b3dd029a4bd7f675f542446c126b13b6e0f80942aedf5d1773f97c8e49d64e09
5
5
  SHA512:
6
- metadata.gz: 8061a5e8a7bc3d484a838310317b98b90af8be8329c126374d57f347b7f0981d2624b937d454edab0fb00f199a6f1b415eeb59ed5063f8c87d2b04e249b31749
7
- data.tar.gz: 6d228251a453b86e3ace2440a9a4c5c59343a40e09c16f630a81a065005e50f13f15b6a2ca61c03a3495d800c98cb44a2b82b9d809913492d6a6a0246acd667c
6
+ metadata.gz: d8cfbd730dc378587af157949bd5f2e172dc5ece2d05c1e55ece025248d6232540a079dead6d47dab5540017df5435804b8dae4b53a4ff6631e3df02ccfc9d8f
7
+ data.tar.gz: 48474a5097ae23ef6f329bd392ec0f5d0dc5736b3bb481ecc20070d92f58698e22acfbd39c74c0e287735871f41fe5d2a668fb62c0ac606ccdb0ea9bddfc8ced
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v1.8.0 (2025-03-12)
2
+ - Support disabling via `DISABLE_SIMPLECOV_TERMINAL` environment variable.
3
+
4
+ ### Docs
5
+ - Add table of contents to README.
6
+
1
7
  ## v1.7.1 (2025-02-17)
2
8
  - Respect `SIMPLECOV_TARGET_FILE` env var for otherwise unmappable spec files.
3
9
 
data/Gemfile.lock CHANGED
@@ -1,6 +1,6 @@
1
1
  GIT
2
2
  remote: https://github.com/davidrunger/pry-byebug
3
- revision: 3ac27ef70a1b16a461db9f7572d3fe1a205effd4
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.7.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.1)
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.1)
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.10.0)
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.72.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.0)
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.3.1)
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.3)
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.2)
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.1) sha256=fd5bc74641c24ac3541055c2879789198ff42adee3e39c2933289ba008912e37
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.1) sha256=ddc88ad91a1baf3f0038c174f253af3b086d30dc74db17ca4259bbde982f94dc
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.10.0) sha256=ae40ff8e7799697ff5d59d739b8766f76be22eba69c7c8468edb42ab83c94c3f
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.72.1) sha256=4306ae64c6e7e1026d2a90ed755a113c7b9bf0ac21037b8046fbc826a87daaa5
217
- rubocop-ast (1.38.0) sha256=4fdf6792fe443a9a18acb12dbc8225d0d64cd1654e41fedb30e79c18edbb26ae
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.3.1) sha256=418a1e1f8e840a95c0c955f500cd623df1a0353330fdaad07396139b65fdd311
224
+ runger_style (5.7.0) sha256=200790f3998e0b924df17efc9d440ddec99508bae983ba2a63f42b80624762f0
225
225
  securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
226
- simple_cov-formatter-terminal (1.7.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.3) sha256=1eedb8369ee99a9a0edfdacea95c72d647feb8ce844427c150bd641e1797abc8
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.2) sha256=b303504ceb7e5905771fa7fa14b649652fa949df18b5880d69cfb12494791e27
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
  ![image](https://user-images.githubusercontent.com/8197963/195740768-e2cbb99d-7cf2-42bf-a178-2f78eb653dd3.png)
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
@@ -5,6 +5,6 @@ module SimpleCov::Formatter; end
5
5
 
6
6
  # rubocop:disable Style/StaticClass
7
7
  class SimpleCov::Formatter::Terminal
8
- VERSION = '1.7.1'
8
+ VERSION = '1.8.0'
9
9
  end
10
10
  # rubocop:enable Style/StaticClass
@@ -46,16 +46,18 @@ class SimpleCov::Formatter::Terminal
46
46
  end
47
47
 
48
48
  def format(result)
49
- if executed_spec_files.nil?
50
- print_info_for_no_executed_specs
51
- elsif unmappable_spec_file? && targeted_application_file.nil?
52
- print_info_for_undeterminable_application_target
53
- elsif targeted_application_file.nil?
54
- print_info_for_undetermined_application_target
55
- elsif File.exist?(targeted_application_file)
56
- print_coverage_info(result)
57
- else
58
- print_info_for_nonexistent_application_target
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.7.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-02-18 00:00:00.000000000 Z
10
+ date: 2025-03-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport