simple_cov-formatter-terminal 0.2.2 → 0.2.3
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 +4 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +40 -43
- data/lib/simple_cov/formatter/terminal/branch_coverage.rb +2 -2
- data/lib/simple_cov/formatter/terminal/config.rb +3 -3
- data/lib/simple_cov/formatter/terminal/file_determiner.rb +6 -6
- data/lib/simple_cov/formatter/terminal/line_printer.rb +2 -2
- data/lib/simple_cov/formatter/terminal/result_printer.rb +3 -3
- data/lib/simple_cov/formatter/terminal/version.rb +1 -1
- data/lib/simple_cov/formatter/terminal.rb +5 -5
- data/simple_cov-formatter-terminal.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8561fc1579895d250ef8007962b544cd4bc973a9f0ec529063e437bb6c3538cc
|
|
4
|
+
data.tar.gz: 3cc83af4064c50be32f0d4107fd6815ea95d6ddda1ff1621ebcac3a8507f7bea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9829440df20a7d12a5dc48938377435845fe73e9d1a77c92642590f475dc1260b03cf0c1f1da869a1a4d0d26dd871206f70d3f27b41df065ecec5da55cf305bc
|
|
7
|
+
data.tar.gz: d984d994d4134260487c5a861cd131a91634688efba9b7a835c2cc86ede7dd300c5b1120bf54df4a8377db6dc6d56950d6eec744d02ec1e33a38481cbd03471f
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
|
@@ -16,17 +16,17 @@ group :development, :test do
|
|
|
16
16
|
gem 'rubocop', require: false
|
|
17
17
|
gem 'rubocop-performance', require: false
|
|
18
18
|
gem 'rubocop-rspec', require: false
|
|
19
|
-
gem 'runger_style',
|
|
19
|
+
gem 'runger_style', require: false
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
group :test do
|
|
23
23
|
gem 'climate_control', require: false
|
|
24
|
-
gem 'codecov', require: false
|
|
25
24
|
gem 'rspec', require: false
|
|
26
25
|
gem 'simplecov', require: false
|
|
26
|
+
gem 'simplecov-cobertura', require: false
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
group :development do
|
|
30
30
|
gem 'rake', require: false
|
|
31
|
-
gem '
|
|
31
|
+
gem 'runger_release_assistant', require: false
|
|
32
32
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
GIT
|
|
2
|
-
remote: https://github.com/davidrunger/release_assistant
|
|
3
|
-
revision: 969b3a90264da6ce73275a7240cc7e54ff5a6370
|
|
4
|
-
specs:
|
|
5
|
-
release_assistant (0.3.3.alpha)
|
|
6
|
-
activesupport (>= 6, < 8)
|
|
7
|
-
colorize (~> 0.8)
|
|
8
|
-
memoist (~> 0.16)
|
|
9
|
-
slop (~> 4.8)
|
|
10
|
-
|
|
11
|
-
GIT
|
|
12
|
-
remote: https://github.com/davidrunger/runger_style
|
|
13
|
-
revision: 4a68671e36d5734cb50331f904fb5a1a7ab9b429
|
|
14
|
-
specs:
|
|
15
|
-
runger_style (0.2.22.alpha)
|
|
16
|
-
rubocop (>= 1.38.0, < 2)
|
|
17
|
-
|
|
18
1
|
PATH
|
|
19
2
|
remote: .
|
|
20
3
|
specs:
|
|
21
|
-
simple_cov-formatter-terminal (0.2.
|
|
4
|
+
simple_cov-formatter-terminal (0.2.3)
|
|
22
5
|
activesupport (>= 7.0.4, < 8)
|
|
23
|
-
|
|
6
|
+
memo_wise (>= 1.7.0, < 2)
|
|
24
7
|
rouge (>= 4.0.0, < 5)
|
|
25
8
|
rspec-core (>= 3.11.0, < 4)
|
|
26
9
|
simplecov (>= 0.21.2, < 1)
|
|
@@ -28,7 +11,7 @@ PATH
|
|
|
28
11
|
GEM
|
|
29
12
|
remote: https://rubygems.org/
|
|
30
13
|
specs:
|
|
31
|
-
activesupport (7.0.
|
|
14
|
+
activesupport (7.0.5)
|
|
32
15
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
33
16
|
i18n (>= 1.6, < 2)
|
|
34
17
|
minitest (>= 5.1)
|
|
@@ -36,9 +19,6 @@ GEM
|
|
|
36
19
|
ast (2.4.2)
|
|
37
20
|
byebug (11.1.3)
|
|
38
21
|
climate_control (1.2.0)
|
|
39
|
-
codecov (0.2.12)
|
|
40
|
-
json
|
|
41
|
-
simplecov
|
|
42
22
|
coderay (1.1.3)
|
|
43
23
|
colorize (0.8.1)
|
|
44
24
|
concurrent-ruby (1.2.2)
|
|
@@ -47,13 +27,14 @@ GEM
|
|
|
47
27
|
i18n (1.13.0)
|
|
48
28
|
concurrent-ruby (~> 1.0)
|
|
49
29
|
json (2.6.3)
|
|
30
|
+
memo_wise (1.7.0)
|
|
50
31
|
memoist (0.16.2)
|
|
51
32
|
method_source (1.0.0)
|
|
52
33
|
minitest (5.18.0)
|
|
53
34
|
parallel (1.23.0)
|
|
54
35
|
parser (3.2.2.1)
|
|
55
36
|
ast (~> 2.4.1)
|
|
56
|
-
pry (0.14.
|
|
37
|
+
pry (0.14.2)
|
|
57
38
|
coderay (~> 1.1)
|
|
58
39
|
method_source (~> 1.0)
|
|
59
40
|
pry-byebug (3.10.1)
|
|
@@ -63,21 +44,21 @@ GEM
|
|
|
63
44
|
rake (13.0.6)
|
|
64
45
|
regexp_parser (2.8.0)
|
|
65
46
|
rexml (3.2.5)
|
|
66
|
-
rouge (4.
|
|
67
|
-
rspec (3.
|
|
68
|
-
rspec-core (~> 3.
|
|
69
|
-
rspec-expectations (~> 3.
|
|
70
|
-
rspec-mocks (~> 3.
|
|
71
|
-
rspec-core (3.
|
|
72
|
-
rspec-support (~> 3.
|
|
73
|
-
rspec-expectations (3.
|
|
47
|
+
rouge (4.1.1)
|
|
48
|
+
rspec (3.12.0)
|
|
49
|
+
rspec-core (~> 3.12.0)
|
|
50
|
+
rspec-expectations (~> 3.12.0)
|
|
51
|
+
rspec-mocks (~> 3.12.0)
|
|
52
|
+
rspec-core (3.12.2)
|
|
53
|
+
rspec-support (~> 3.12.0)
|
|
54
|
+
rspec-expectations (3.12.3)
|
|
74
55
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
75
|
-
rspec-support (~> 3.
|
|
76
|
-
rspec-mocks (3.
|
|
56
|
+
rspec-support (~> 3.12.0)
|
|
57
|
+
rspec-mocks (3.12.5)
|
|
77
58
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
78
|
-
rspec-support (~> 3.
|
|
79
|
-
rspec-support (3.
|
|
80
|
-
rubocop (1.
|
|
59
|
+
rspec-support (~> 3.12.0)
|
|
60
|
+
rspec-support (3.12.0)
|
|
61
|
+
rubocop (1.51.0)
|
|
81
62
|
json (~> 2.3)
|
|
82
63
|
parallel (~> 1.10)
|
|
83
64
|
parser (>= 3.2.0.0)
|
|
@@ -89,16 +70,32 @@ GEM
|
|
|
89
70
|
unicode-display_width (>= 2.4.0, < 3.0)
|
|
90
71
|
rubocop-ast (1.28.1)
|
|
91
72
|
parser (>= 3.2.1.0)
|
|
92
|
-
rubocop-
|
|
73
|
+
rubocop-capybara (2.18.0)
|
|
74
|
+
rubocop (~> 1.41)
|
|
75
|
+
rubocop-factory_bot (2.22.0)
|
|
76
|
+
rubocop (~> 1.33)
|
|
77
|
+
rubocop-performance (1.18.0)
|
|
93
78
|
rubocop (>= 1.7.0, < 2.0)
|
|
94
79
|
rubocop-ast (>= 0.4.0)
|
|
95
|
-
rubocop-rspec (2.
|
|
80
|
+
rubocop-rspec (2.22.0)
|
|
96
81
|
rubocop (~> 1.33)
|
|
82
|
+
rubocop-capybara (~> 2.17)
|
|
83
|
+
rubocop-factory_bot (~> 2.22)
|
|
97
84
|
ruby-progressbar (1.13.0)
|
|
85
|
+
runger_release_assistant (0.4.0)
|
|
86
|
+
activesupport (>= 6, < 8)
|
|
87
|
+
colorize (~> 0.8)
|
|
88
|
+
memoist (~> 0.16)
|
|
89
|
+
slop (~> 4.8)
|
|
90
|
+
runger_style (0.3.0)
|
|
91
|
+
rubocop (>= 1.38.0, < 2)
|
|
98
92
|
simplecov (0.22.0)
|
|
99
93
|
docile (~> 1.1)
|
|
100
94
|
simplecov-html (~> 0.11)
|
|
101
95
|
simplecov_json_formatter (~> 0.1)
|
|
96
|
+
simplecov-cobertura (2.1.0)
|
|
97
|
+
rexml
|
|
98
|
+
simplecov (~> 0.19)
|
|
102
99
|
simplecov-html (0.12.3)
|
|
103
100
|
simplecov_json_formatter (0.1.4)
|
|
104
101
|
slop (4.10.1)
|
|
@@ -112,21 +109,21 @@ PLATFORMS
|
|
|
112
109
|
DEPENDENCIES
|
|
113
110
|
bundler
|
|
114
111
|
climate_control
|
|
115
|
-
codecov
|
|
116
112
|
pry
|
|
117
113
|
pry-byebug
|
|
118
114
|
rake
|
|
119
|
-
release_assistant!
|
|
120
115
|
rspec
|
|
121
116
|
rubocop
|
|
122
117
|
rubocop-performance
|
|
123
118
|
rubocop-rspec
|
|
124
|
-
|
|
119
|
+
runger_release_assistant
|
|
120
|
+
runger_style
|
|
125
121
|
simple_cov-formatter-terminal!
|
|
126
122
|
simplecov
|
|
123
|
+
simplecov-cobertura
|
|
127
124
|
|
|
128
125
|
RUBY VERSION
|
|
129
126
|
ruby 3.2.2p53
|
|
130
127
|
|
|
131
128
|
BUNDLED WITH
|
|
132
|
-
2.4.
|
|
129
|
+
2.4.13
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative './spec_to_app_mapping'
|
|
4
|
-
require '
|
|
4
|
+
require 'memo_wise'
|
|
5
5
|
|
|
6
6
|
class SimpleCov::Formatter::Terminal::Config
|
|
7
|
-
|
|
7
|
+
prepend MemoWise
|
|
8
8
|
include SimpleCov::Formatter::Terminal::SpecToAppMapping
|
|
9
9
|
|
|
10
10
|
attr_accessor :spec_to_app_file_map, :unmappable_spec_regexes
|
|
@@ -16,7 +16,7 @@ class SimpleCov::Formatter::Terminal::Config
|
|
|
16
16
|
SimpleCov::Formatter::Terminal::SpecToAppMapping::DEFAULT_UNMAPPABLE_SPEC_REGEXES
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
memo_wise \
|
|
20
20
|
def write_target_info_file?
|
|
21
21
|
ENV.fetch('SIMPLECOV_WRITE_TARGET_TO_FILE', nil) == '1'
|
|
22
22
|
end
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
require 'memoist'
|
|
4
4
|
|
|
5
5
|
class SimpleCov::Formatter::Terminal::FileDeterminer
|
|
6
|
-
|
|
6
|
+
prepend MemoWise
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
memo_wise \
|
|
9
9
|
def executed_spec_file
|
|
10
10
|
if executed_spec_files.size == 1
|
|
11
11
|
executed_spec_files.first
|
|
@@ -17,7 +17,7 @@ class SimpleCov::Formatter::Terminal::FileDeterminer
|
|
|
17
17
|
end
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
memo_wise \
|
|
21
21
|
def targeted_application_file
|
|
22
22
|
env_variable_file = ENV.fetch('SIMPLECOV_TARGET_FILE', nil)
|
|
23
23
|
if !env_variable_file.nil?
|
|
@@ -35,18 +35,18 @@ class SimpleCov::Formatter::Terminal::FileDeterminer
|
|
|
35
35
|
raise("Could not map executed spec file #{executed_spec_file} to application file!")
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
memo_wise \
|
|
39
39
|
def executed_spec_files
|
|
40
40
|
SimpleCov::Formatter::Terminal::RSpecIntegration.executed_spec_files
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
memo_wise \
|
|
44
44
|
def spec_to_app_file_map
|
|
45
45
|
SimpleCov::Formatter::Terminal.config.spec_to_app_file_map ||
|
|
46
46
|
SimpleCov::Formatter::Terminal::SpecToAppMapping.default_spec_to_app_map
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
memo_wise \
|
|
50
50
|
def unmappable_spec_regexes
|
|
51
51
|
SimpleCov::Formatter::Terminal.config.unmappable_spec_regexes
|
|
52
52
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
require 'memoist'
|
|
4
4
|
|
|
5
5
|
class SimpleCov::Formatter::Terminal::LinePrinter
|
|
6
|
-
|
|
6
|
+
prepend MemoWise
|
|
7
7
|
include SimpleCov::Formatter::Terminal::BranchCoverage
|
|
8
8
|
include SimpleCov::Formatter::Terminal::ColorPrinting
|
|
9
9
|
|
|
@@ -59,7 +59,7 @@ class SimpleCov::Formatter::Terminal::LinePrinter
|
|
|
59
59
|
end
|
|
60
60
|
# rubocop:enable Style/StringConcatenation
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
memo_wise \
|
|
63
63
|
def syntax_highlighted_source_lines
|
|
64
64
|
source = File.read(@targeted_application_file)
|
|
65
65
|
formatter = Rouge::Formatters::Terminal256.new(Rouge::Themes::Base16.mode(:dark).new)
|
|
@@ -7,7 +7,7 @@ require_relative './target_file_writer'
|
|
|
7
7
|
|
|
8
8
|
class SimpleCov::Formatter::Terminal::ResultPrinter
|
|
9
9
|
extend Forwardable
|
|
10
|
-
|
|
10
|
+
prepend MemoWise
|
|
11
11
|
include SimpleCov::Formatter::Terminal::BranchCoverage
|
|
12
12
|
include SimpleCov::Formatter::Terminal::ColorPrinting
|
|
13
13
|
|
|
@@ -99,7 +99,7 @@ class SimpleCov::Formatter::Terminal::ResultPrinter
|
|
|
99
99
|
SimpleCov::Formatter::Terminal::RSpecIntegration.failure_occurred?
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
memo_wise \
|
|
103
103
|
def target_file_writer
|
|
104
104
|
SimpleCov::Formatter::Terminal::TargetFileWriter.new(targeted_application_file)
|
|
105
105
|
end
|
|
@@ -120,7 +120,7 @@ class SimpleCov::Formatter::Terminal::ResultPrinter
|
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
memo_wise \
|
|
124
124
|
def line_printer
|
|
125
125
|
SimpleCov::Formatter::Terminal::LinePrinter.new(targeted_application_file)
|
|
126
126
|
end
|
|
@@ -16,7 +16,7 @@ require 'simplecov'
|
|
|
16
16
|
|
|
17
17
|
class SimpleCov::Formatter::Terminal
|
|
18
18
|
extend Forwardable
|
|
19
|
-
|
|
19
|
+
prepend MemoWise
|
|
20
20
|
|
|
21
21
|
def_delegators(
|
|
22
22
|
:file_determiner,
|
|
@@ -33,9 +33,9 @@ class SimpleCov::Formatter::Terminal
|
|
|
33
33
|
)
|
|
34
34
|
|
|
35
35
|
class << self
|
|
36
|
-
|
|
36
|
+
prepend MemoWise
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
memo_wise \
|
|
39
39
|
def config
|
|
40
40
|
Config.new
|
|
41
41
|
end
|
|
@@ -55,12 +55,12 @@ class SimpleCov::Formatter::Terminal
|
|
|
55
55
|
|
|
56
56
|
private
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
memo_wise \
|
|
59
59
|
def file_determiner
|
|
60
60
|
SimpleCov::Formatter::Terminal::FileDeterminer.new
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
memo_wise \
|
|
64
64
|
def result_printer
|
|
65
65
|
SimpleCov::Formatter::Terminal::ResultPrinter.new(file_determiner)
|
|
66
66
|
end
|
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
|
33
33
|
|
|
34
34
|
# Uncomment to register a new dependency of your gem
|
|
35
35
|
spec.add_dependency('activesupport', '>= 7.0.4', '< 8')
|
|
36
|
-
spec.add_dependency('
|
|
36
|
+
spec.add_dependency('memo_wise', '>= 1.7.0', '< 2')
|
|
37
37
|
spec.add_dependency('rouge', '>= 4.0.0', '< 5')
|
|
38
38
|
spec.add_dependency('rspec-core', '>= 3.11.0', '< 4')
|
|
39
39
|
spec.add_dependency('simplecov', '>= 0.21.2', '< 1')
|
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: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Runger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-05-
|
|
11
|
+
date: 2023-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -31,25 +31,25 @@ dependencies:
|
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: '8'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
|
-
name:
|
|
34
|
+
name: memo_wise
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
39
|
+
version: 1.7.0
|
|
40
40
|
- - "<"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '
|
|
42
|
+
version: '2'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
47
|
- - ">="
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version:
|
|
49
|
+
version: 1.7.0
|
|
50
50
|
- - "<"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '
|
|
52
|
+
version: '2'
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
54
|
name: rouge
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
162
162
|
- !ruby/object:Gem::Version
|
|
163
163
|
version: '0'
|
|
164
164
|
requirements: []
|
|
165
|
-
rubygems_version: 3.4.
|
|
165
|
+
rubygems_version: 3.4.13
|
|
166
166
|
signing_key:
|
|
167
167
|
specification_version: 4
|
|
168
168
|
summary: Print detailed code coverage info to the terminal
|