simplecov-mcp 2.0.0 → 2.0.1
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/lib/simplecov_mcp/option_parser_builder.rb +17 -21
- data/lib/simplecov_mcp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8da9af0f700059b43950208cbb3504bcf3e09a2dc250a3702a3c695f3560f5d
|
|
4
|
+
data.tar.gz: 4955b0c63e53befcb09f48a73495f3c7774c3195978b26484e2c6607837b2f3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78761ecb114f2e6203f208c7e191a5c95cac0166d196c1e6d56234c977e575f7f8f190aa34e09e7bd337feaf05d767cc2ae5d58165006811a0de86382e9352de
|
|
7
|
+
data.tar.gz: 1a0f3d882244cd56ff17df1f9eaa16bc99c3553bf202533788c42b486fc128bcbae4a87647586b703c7306ff7cdf82ea74b8a48060c8b455719cda3d0980b72b
|
|
@@ -21,14 +21,13 @@ module SimpleCovMcp
|
|
|
21
21
|
define_subcommands_help(parser)
|
|
22
22
|
define_options(parser)
|
|
23
23
|
define_examples(parser)
|
|
24
|
-
add_help_handler(parser)
|
|
25
24
|
end
|
|
26
25
|
end
|
|
27
26
|
|
|
28
27
|
private def configure_banner(parser)
|
|
29
28
|
parser.banner = <<~BANNER
|
|
30
29
|
#{HORIZONTAL_RULE}
|
|
31
|
-
Usage: simplecov-mcp [options] [subcommand] [args]
|
|
30
|
+
Usage: simplecov-mcp [options] [subcommand] [args] (default subcommand: list)
|
|
32
31
|
Repository: https://github.com/keithrbennett/simplecov-mcp
|
|
33
32
|
Version: #{SimpleCovMcp::VERSION}
|
|
34
33
|
#{HORIZONTAL_RULE}
|
|
@@ -39,15 +38,15 @@ module SimpleCovMcp
|
|
|
39
38
|
private def define_subcommands_help(parser)
|
|
40
39
|
parser.separator <<~SUBCOMMANDS
|
|
41
40
|
Subcommands:
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
raw <path>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
validate <file>
|
|
49
|
-
validate -e <code>
|
|
50
|
-
version
|
|
41
|
+
detailed <path> Show per-line rows with hits/covered
|
|
42
|
+
list Show files coverage (default: table, or use --format)
|
|
43
|
+
raw <path> Show the SimpleCov 'lines' array
|
|
44
|
+
summary <path> Show covered/total/% for a file
|
|
45
|
+
totals Show aggregated line totals and average %
|
|
46
|
+
uncovered <path> Show uncovered lines and a summary
|
|
47
|
+
validate <file> Evaluate coverage policy from file (exit 0=pass, 1=fail, 2=error)
|
|
48
|
+
validate -e <code> Evaluate coverage policy from code string
|
|
49
|
+
version Show version information
|
|
51
50
|
|
|
52
51
|
SUBCOMMANDS
|
|
53
52
|
end
|
|
@@ -90,6 +89,13 @@ module SimpleCovMcp
|
|
|
90
89
|
'Globs for filtering files (list/totals subcommands)') do |value|
|
|
91
90
|
config.tracked_globs = value
|
|
92
91
|
end
|
|
92
|
+
parser.on('-h', '--help', 'Show help') do
|
|
93
|
+
puts parser
|
|
94
|
+
gem_root = File.expand_path('../..', __dir__)
|
|
95
|
+
puts "\nFor more detailed help, consult README.md and docs/user/**/*.md"
|
|
96
|
+
puts "in the installed gem at: #{gem_root}"
|
|
97
|
+
exit 0
|
|
98
|
+
end
|
|
93
99
|
parser.on('-l', '--log-file PATH', String,
|
|
94
100
|
'Log file path (default ./simplecov_mcp.log, use stdout/stderr for streams)') do |value|
|
|
95
101
|
config.log_file = value
|
|
@@ -118,16 +124,6 @@ module SimpleCovMcp
|
|
|
118
124
|
EXAMPLES
|
|
119
125
|
end
|
|
120
126
|
|
|
121
|
-
private def add_help_handler(parser)
|
|
122
|
-
parser.on('-h', '--help', 'Show help') do
|
|
123
|
-
puts parser
|
|
124
|
-
gem_root = File.expand_path('../..', __dir__)
|
|
125
|
-
puts "\nFor more detailed help, consult README.md and docs/user/**/*.md"
|
|
126
|
-
puts "in the installed gem at: #{gem_root}"
|
|
127
|
-
exit 0
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
|
|
131
127
|
private def normalize_sort_order(value)
|
|
132
128
|
OptionNormalizers.normalize_sort_order(value, strict: true)
|
|
133
129
|
end
|