simple_cov-formatter-terminal 1.5.0 → 1.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57dcdb462f586d9dfa9b15f94f124083f8359158332e94046d3f1e8beed45e48
|
4
|
+
data.tar.gz: 31f4ee23689e5c40c71908383987ff1e5c5800ff26648cac58e047affbc58857
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e68fe09fda88e96459a438ff7442b3b5407b507cb3b9f90d11713adcf580793e6960236b409815654492d939448e6056ef5fa4185b76b90765334c5cfa7c49d
|
7
|
+
data.tar.gz: 681b536538dbbf5139622ee63849e23ac75b7581778c28decbe2e0ec3732d28f79b0640ba269f96396195f770cf51c343e88270bdf8fa7aa0071ba1d435e0fcb
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## v1.6.0 (2024-07-30)
|
2
|
+
- Make terminal hyperlink pattern an ENV var (`SIMPLECOV_TERMINAL_HYPERLINK_PATTERN`) rather than a Ruby setting
|
3
|
+
|
1
4
|
## v1.5.0 (2024-07-28)
|
2
5
|
- Print line numbers as terminal hyperlinks if a `SimpleCov::Formatter::Terminal.config.terminal_hyperlink_target_pattern` is provided
|
3
6
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
simple_cov-formatter-terminal (1.
|
4
|
+
simple_cov-formatter-terminal (1.6.0)
|
5
5
|
activesupport (>= 7.0.4, < 8)
|
6
6
|
memo_wise (>= 1.7.0, < 2)
|
7
7
|
rouge (>= 4.0.0, < 5)
|
@@ -52,7 +52,7 @@ GEM
|
|
52
52
|
pry-byebug (3.10.1)
|
53
53
|
byebug (~> 11.0)
|
54
54
|
pry (>= 0.13, < 0.15)
|
55
|
-
racc (1.8.
|
55
|
+
racc (1.8.1)
|
56
56
|
rainbow (3.1.1)
|
57
57
|
rake (13.2.1)
|
58
58
|
regexp_parser (2.9.2)
|
@@ -93,7 +93,7 @@ GEM
|
|
93
93
|
ruby-progressbar (1.13.0)
|
94
94
|
runger_config (5.2.0)
|
95
95
|
activesupport (>= 7.1.2)
|
96
|
-
runger_release_assistant (0.
|
96
|
+
runger_release_assistant (0.12.0)
|
97
97
|
activesupport (>= 6, < 8)
|
98
98
|
memo_wise (>= 1.7, < 2)
|
99
99
|
rainbow (>= 3.0, < 4)
|
data/README.md
CHANGED
@@ -117,17 +117,17 @@ branch is not covered on line 18).
|
|
117
117
|
|
118
118
|
## Terminal hyperlinks
|
119
119
|
|
120
|
-
If you
|
120
|
+
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
121
|
|
122
|
-
The pattern can include these interpolation markers:
|
122
|
+
The pattern can/should include these interpolation markers:
|
123
123
|
|
124
124
|
- `%f` - This will be replaced with the absolute path of the application file.
|
125
125
|
- `%l` - This will be replaced with the line number.
|
126
126
|
|
127
127
|
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
128
|
|
129
|
-
```
|
130
|
-
|
129
|
+
```sh
|
130
|
+
SIMPLECOV_TERMINAL_HYPERLINK_PATTERN="vscode://file/%f:%l"
|
131
131
|
```
|
132
132
|
|
133
133
|
## 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
|
|
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.6.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-07-
|
11
|
+
date: 2024-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|