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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f35432a5fa155b21702ea533b8ab875a14bf520881e8a40e348aa15d597cdd66
4
- data.tar.gz: 34deaac536651232ed05a606af80b07ebdba9ef945e4fc454efd4aecf0631251
3
+ metadata.gz: d8da9af0f700059b43950208cbb3504bcf3e09a2dc250a3702a3c695f3560f5d
4
+ data.tar.gz: 4955b0c63e53befcb09f48a73495f3c7774c3195978b26484e2c6607837b2f3b
5
5
  SHA512:
6
- metadata.gz: 9adcc5e0b9f70ac5f6e9501194aa891fa93756e91513c470a11028072f7a7a260e36d25d0337a4bade9889dfc7f1a9d28d429148320560697b1ac465335bb820
7
- data.tar.gz: '095a9e06c5b45d635d03e84aeb35a39ecbe49ff2b5fef4cbac27913794e822a7d28b3997d68e047f67ea4215500c2fe8931978c81440cdafbc0d28d6830899a8'
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
- list Show files coverage (default: table, or use --format)
43
- summary <path> Show covered/total/% for a file
44
- raw <path> Show the SimpleCov 'lines' array
45
- uncovered <path> Show uncovered lines and a summary
46
- detailed <path> Show per-line rows with hits/covered
47
- totals Show aggregated line totals and average %
48
- validate <file> Evaluate coverage policy from file (exit 0=pass, 1=fail, 2=error)
49
- validate -e <code> Evaluate coverage policy from code string
50
- version Show version information
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleCovMcp
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplecov-mcp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Keith R. Bennett