kettle-soup-cover 0.1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +36 -1
- data/CONTRIBUTING.md +1 -1
- data/README.md +96 -4
- data/lib/kettle/soup/cover/config.rb +3 -3
- data/lib/kettle/soup/cover/filters/gt_line_filter.rb +11 -3
- data/lib/kettle/soup/cover/filters/lt_line_filter.rb +11 -3
- data/lib/kettle/soup/cover/tasks.rb +5 -0
- data/lib/kettle/soup/cover/version.rb +1 -1
- data/lib/kettle/soup/cover.rb +78 -39
- data/lib/kettle-soup-cover.rb +10 -1
- data/sig/kettle/soup/cover.rbs +26 -10
- data.tar.gz.sig +0 -0
- metadata +11 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 90aae9c284737e43128a57a6f7e0e7bba47d0211c9dd23c881ac61201e0fe025
|
4
|
+
data.tar.gz: cc3828fa05bf9f7eee48fc99b36d28132b3a5c265a9006655b9cdb49cd41580d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a31b6d5451fbb5831958f98c20f7606ec465b11f4dda7dcdbf2df1e971594f3a159074e684ee6cda73b8a7e2191312b1c40d678f4b3386db953e9246287d0ca3
|
7
|
+
data.tar.gz: 2aa562ffca4a16d795d838b44577f64e884aeeda765e874a218fde77eb0b7336a2dd09b4ddffb55a9f8b8597286083d314bd06ae46864f6cafe62cbed25d55f9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,41 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
11
11
|
### Fixed
|
12
12
|
### Removed
|
13
13
|
|
14
|
-
## [
|
14
|
+
## [1.0.1] - 2023-10-19
|
15
|
+
### Fixed
|
16
|
+
- Include new `coverage` rake task in the built gem
|
17
|
+
|
18
|
+
## [1.0.0] - 2023-10-19
|
19
|
+
### Added
|
20
|
+
- ✨ `Regexp.escape` the `FILTER_DIRS` to allow for paths to be excluded from coverage
|
21
|
+
- paths must always start at the root of the project, but no leading or trailing slash
|
22
|
+
- ✨ Rake task `coverage` will run spec suite, and open results in a browser.
|
23
|
+
- ✨ `Kettle::Soup::Cover::PREFIX` allows configuration of a custom ENV variable name prefix
|
24
|
+
- Set `export K_SOUP_COV_DEBUG="K_SOUP_COV_"` (default shown)
|
25
|
+
- ✨ `Kettle::Soup::Cover::USE_MERGING`
|
26
|
+
- Set `export K_SOUP_COV_USE_MERGING=true`
|
27
|
+
- ✨ `Kettle::Soup::Cover::MERGE_TIMEOUT`
|
28
|
+
- Set `export K_SOUP_COV_MERGE_TIMEOUT=3600`
|
29
|
+
- ✨ `Kettle::Soup::Cover::DEBUG` - similar to `VERBOSE`, only moreso!
|
30
|
+
- Set `export K_SOUP_COV_DEBUG=true`
|
31
|
+
- NOTE: This gem actually has zero output statements.
|
32
|
+
- The utility of `DEBUG` and `VERBOSE` being a part of this library is
|
33
|
+
to normalize handling of this common logical need in other libraries.
|
34
|
+
- ✨ `Kettle::Soup::Cover.load_filters`
|
35
|
+
- `Kettle::Soup::Cover::Filters::GtLineFilter`
|
36
|
+
- `Kettle::Soup::Cover::Filters::LtLineFilter`
|
37
|
+
- More and better documentation
|
38
|
+
### Changed
|
39
|
+
- This gem no longer does `require "simplecov"`
|
40
|
+
- Instead you can `require "simplecov" if Kettle::Soup::Cover::COV_DO` wherever you deem fit
|
41
|
+
### Fixed
|
42
|
+
- All ENV vars now begin with a uniform prefix for this gem:
|
43
|
+
- `K_SOUP_COV_*`
|
44
|
+
|
15
45
|
## [0.1.0] - 2023-10-17
|
16
46
|
- Initial release
|
47
|
+
|
48
|
+
[Unreleased]: https://github.com/pboling/pretty_feed/compare/v1.0.1...HEAD
|
49
|
+
[1.0.1]: https://github.com/pboling/pretty_feed/compare/v1.0.0...v1.0.1
|
50
|
+
[1.0.0]: https://github.com/pboling/pretty_feed/compare/v0.1.0...v1.0.0
|
51
|
+
[0.1.0]: https://github.com/pboling/pretty_feed/compare/97ddbbca309b87c7f6eed0137b08cad74ec81235...v0.1.0
|
data/CONTRIBUTING.md
CHANGED
@@ -16,7 +16,7 @@ To release a new version:
|
|
16
16
|
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
17
17
|
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
18
18
|
a. NOTE: Remember to [check the build][🧪build]!
|
19
|
-
5. Run `rake build`
|
19
|
+
5. Run `bundle exec rake build`
|
20
20
|
6. Run [`bin/checksums`](https://github.com/rubygems/guides/pull/325) to create SHA-256 and SHA-512 checksums
|
21
21
|
a. Checksums will be committed automatically by the script
|
22
22
|
7. Run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
|
data/README.md
CHANGED
@@ -13,6 +13,42 @@ where this library is considered a package of [SOUP](https://en.wikipedia.org/wi
|
|
13
13
|
|
14
14
|
It provides a one-line-configured, curated, opinionated, set of dependencies for Test Coverage.
|
15
15
|
|
16
|
+
## Support My Open Source Development
|
17
|
+
|
18
|
+
<div id="badges">
|
19
|
+
|
20
|
+
[![Liberapay Patrons][⛳liberapay-img]][⛳liberapay]
|
21
|
+
<span class="badge-buymeacoffee">
|
22
|
+
[![Sponsor Me][🖇sponsor-img]][🖇sponsor]
|
23
|
+
<a href="https://ko-fi.com/O5O86SNP4" target='_blank' title="Donate to my FLOSS or refugee efforts at ko-fi.com"><img src="https://img.shields.io/badge/buy%20me%20coffee-donate-yellow.svg" alt="Buy Me Coffee donation button" /></a>
|
24
|
+
</span>
|
25
|
+
<span class="badge-patreon">
|
26
|
+
<a href="https://patreon.com/galtzo" title="Donate to my FLOSS or refugee efforts using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a>
|
27
|
+
</span>
|
28
|
+
|
29
|
+
---
|
30
|
+
|
31
|
+
<a rel="me" alt="Follow me on Ruby.social" href="https://ruby.social/@galtzo"><img src="https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=social&label=Follow%20%40galtzo%20on%20Ruby.social"></a>
|
32
|
+
[![Follow Me on X][🐦twitter-img]][🐦twitter]
|
33
|
+
[![Follow Me on LinkedIn][🖇linkedin-img]][🖇linkedin]
|
34
|
+
[![Subscribe to my Rubygems updates][💎rubygems-img]][💎rubygems]
|
35
|
+
[![My Blog][🚎blog-img]][🚎blog]
|
36
|
+
|
37
|
+
</div>
|
38
|
+
|
39
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay
|
40
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
41
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
42
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
43
|
+
[🖇linkedin]: http://www.linkedin.com/in/peterboling
|
44
|
+
[🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-blue?style=plastic&logo=linkedin
|
45
|
+
[🐦twitter]: http://x.com/intent/user?screen_name=galtzo
|
46
|
+
[🐦twitter-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow%20@galtzo
|
47
|
+
[💎rubygems]: https://rubygems.org/profiles/pboling
|
48
|
+
[💎rubygems-img]: https://img.shields.io/gem/u/pboling.svg
|
49
|
+
[🚎blog]: http://www.railsbling.com/tags/oauth2/
|
50
|
+
[🚎blog-img]: https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat
|
51
|
+
|
16
52
|
## Installation
|
17
53
|
|
18
54
|
Install the gem and add to the application's Gemfile by executing:
|
@@ -28,14 +64,19 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
28
64
|
In your `spec/spec_helper.rb`, just prior to loading the library under test:
|
29
65
|
|
30
66
|
```ruby
|
31
|
-
|
67
|
+
# This does not require "simplecov",
|
68
|
+
# because that has a side-effect of running `.simplecov`
|
69
|
+
require "kettle-soup-cover"
|
70
|
+
|
71
|
+
# Later in your spec setup, do this;
|
72
|
+
require "simplecov" if Kettle::Soup::Cover::COV_DO
|
32
73
|
```
|
33
74
|
|
34
75
|
In your `.simplecov` file:
|
35
76
|
|
36
77
|
```ruby
|
37
78
|
require "kettle/soup/cover/config"
|
38
|
-
SimpleCov.start
|
79
|
+
SimpleCov.start # you could do this somewhere else, up to you, but you do have to do it
|
39
80
|
```
|
40
81
|
|
41
82
|
See [Advanced Usage](#advanced-usage) below for more info,
|
@@ -48,10 +89,61 @@ CI=true bundle exec rake test # or whatever command you run for tests.
|
|
48
89
|
|
49
90
|
That's it!
|
50
91
|
|
92
|
+
### Rakefile
|
93
|
+
|
94
|
+
You'll need to have your `test` task defined.
|
95
|
+
If you use `spec` instead, you can alias `test` to `spec` as follows:
|
96
|
+
|
97
|
+
```ruby
|
98
|
+
desc "alias test task to spec"
|
99
|
+
task test: :spec
|
100
|
+
```
|
101
|
+
|
102
|
+
This gem provides a `coverage` task.
|
103
|
+
It runs the `test` task (see just above about that),
|
104
|
+
and opens the coverage results in a browser.
|
105
|
+
|
106
|
+
```ruby
|
107
|
+
require "kettle-soup-cover"
|
108
|
+
Kettle::Soup::Cover.install_tasks
|
109
|
+
```
|
110
|
+
|
111
|
+
### Filters
|
112
|
+
|
113
|
+
There are two built-in SimpleCov filters which can be loaded via `Kettle::Soup::Cover.load_filters`.
|
114
|
+
|
115
|
+
You could use them like this:
|
116
|
+
```ruby
|
117
|
+
SimpleCov.add_group("Too Long", Kettle::Soup::Cover::Filters::GtLineFilter.new(1000))
|
118
|
+
```
|
119
|
+
|
51
120
|
### Advanced Usage
|
52
121
|
|
53
122
|
There are a number of ENV variables that control things within this gem.
|
54
|
-
All of them can be found in [lib/kettle/soup/cover.rb][env-constants].
|
123
|
+
All of them can be found, along with their default values, in [lib/kettle/soup/cover.rb][env-constants].
|
124
|
+
|
125
|
+
#### Handy List of ENV Variables
|
126
|
+
|
127
|
+
Most are self explanatory.
|
128
|
+
I tried to follow POLS, the principle of least surprise, so they mostly _DWTFYT_.
|
129
|
+
Want to help improve this documentation? PRs are easy!
|
130
|
+
|
131
|
+
```shell
|
132
|
+
K_SOUP_COV_COMMAND_NAME
|
133
|
+
K_SOUP_COV_DEBUG
|
134
|
+
K_SOUP_COV_DIR
|
135
|
+
K_SOUP_COV_DO
|
136
|
+
K_SOUP_COV_FILTER_DIRS
|
137
|
+
K_SOUP_COV_FORMATTERS
|
138
|
+
K_SOUP_COV_MERGE_TIMEOUT
|
139
|
+
K_SOUP_COV_MIN_HARD
|
140
|
+
K_SOUP_COV_MIN_BRANCH
|
141
|
+
K_SOUP_COV_MIN_LINE
|
142
|
+
K_SOUP_COV_MULTI_FORMATTERS
|
143
|
+
K_SOUP_COV_PREFIX
|
144
|
+
K_SOUP_COV_USE_MERGING
|
145
|
+
K_SOUP_COV_VERBOSE
|
146
|
+
```
|
55
147
|
|
56
148
|
Additionally some of the included gems, like [`simplecov-console`][simplecov-console],
|
57
149
|
have their own complete suite of ENV variables you can configure.
|
@@ -86,7 +178,7 @@ the [Pessimistic Version Constraint][pvc] with two digits of precision.
|
|
86
178
|
For example:
|
87
179
|
|
88
180
|
```ruby
|
89
|
-
spec.add_dependency("kettle-soup-cover", "~> 0
|
181
|
+
spec.add_dependency("kettle-soup-cover", "~> 1.0")
|
90
182
|
```
|
91
183
|
|
92
184
|
## License
|
@@ -4,7 +4,7 @@
|
|
4
4
|
# In your `spec/spec_helper.rb`,
|
5
5
|
# just prior to loading the library under test:
|
6
6
|
#
|
7
|
-
# require "kettle
|
7
|
+
# require "kettle-soup-cover"
|
8
8
|
#
|
9
9
|
# In your `.simplecov` file:
|
10
10
|
#
|
@@ -35,8 +35,8 @@ SimpleCov.configure do
|
|
35
35
|
end
|
36
36
|
|
37
37
|
# Use Merging (merges RSpec + Cucumber Test Results)
|
38
|
-
use_merging(
|
39
|
-
merge_timeout(
|
38
|
+
use_merging(Kettle::Soup::Cover::USE_MERGING) unless Kettle::Soup::Cover::USE_MERGING.nil?
|
39
|
+
merge_timeout(Kettle::Soup::Cover::MERGE_TIMEOUT) if Kettle::Soup::Cover::MERGE_TIMEOUT
|
40
40
|
|
41
41
|
# Fail build when missed coverage targets
|
42
42
|
# NOTE: Checking SpecTracker.instance.full_suite? here would be awesome, but won't work
|
@@ -1,7 +1,15 @@
|
|
1
1
|
# See: https://github.com/simplecov-ruby/simplecov#custom-filter-class
|
2
2
|
# See: https://github.com/simplecov-ruby/simplecov#groups
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
module Kettle
|
4
|
+
module Soup
|
5
|
+
module Cover
|
6
|
+
module Filters
|
7
|
+
class GtLineFilter < SimpleCov::Filter
|
8
|
+
def matches?(source_file)
|
9
|
+
source_file.lines.count > filter_argument
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
6
14
|
end
|
7
15
|
end
|
@@ -1,7 +1,15 @@
|
|
1
1
|
# See: https://github.com/simplecov-ruby/simplecov#custom-filter-class
|
2
2
|
# See: https://github.com/simplecov-ruby/simplecov#groups
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
module Kettle
|
4
|
+
module Soup
|
5
|
+
module Cover
|
6
|
+
module Filters
|
7
|
+
class LtLineFilter < SimpleCov::Filter
|
8
|
+
def matches?(source_file)
|
9
|
+
source_file.lines.count < filter_argument
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
6
14
|
end
|
7
15
|
end
|
data/lib/kettle/soup/cover.rb
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# External gems
|
4
|
-
require "version_gem"
|
5
|
-
|
6
|
-
require_relative "cover/version"
|
7
|
-
|
8
3
|
# USAGE:
|
9
4
|
# In your `spec/spec_helper.rb`,
|
10
5
|
# just prior to loading the library under test:
|
11
6
|
#
|
12
|
-
# require "kettle
|
7
|
+
# require "kettle-soup-cover"
|
8
|
+
# # ... other setup code
|
9
|
+
# require "simplecov" if Kettle::Soup::Cover::COV_DO
|
13
10
|
#
|
14
11
|
# In your `.simplecov` file:
|
15
12
|
#
|
@@ -22,8 +19,33 @@ module Kettle
|
|
22
19
|
module Cover
|
23
20
|
class Error < StandardError; end
|
24
21
|
|
22
|
+
CONSTANTS = %w[
|
23
|
+
CI
|
24
|
+
COMMAND_NAME
|
25
|
+
COVERAGE_DIR
|
26
|
+
DEBUG
|
27
|
+
DO_COV
|
28
|
+
ENV_GET
|
29
|
+
FALSE
|
30
|
+
FILTER_DIRS
|
31
|
+
FORMATTER_PLUGINS
|
32
|
+
FORMATTERS
|
33
|
+
IS_CI
|
34
|
+
MERGE_TIMEOUT
|
35
|
+
MIN_COVERAGE_BRANCH
|
36
|
+
MIN_COVERAGE_LINE
|
37
|
+
MIN_COVERAGE_HARD
|
38
|
+
MULTI_FORMATTERS_DEFAULT
|
39
|
+
MULTI_FORMATTERS
|
40
|
+
PREFIX
|
41
|
+
TRUE
|
42
|
+
USE_MERGING
|
43
|
+
VERBOSE
|
44
|
+
]
|
25
45
|
FALSE = "false"
|
26
46
|
TRUE = "true"
|
47
|
+
PREFIX = ENV.fetch("K_SOUP_COV_PREFIX", "K_SOUP_COV_")
|
48
|
+
ENV_GET = ->(suffix, default) { ENV.fetch("#{PREFIX}#{suffix}", default) }
|
27
49
|
FORMATTER_PLUGINS = {
|
28
50
|
# HTML for Humans
|
29
51
|
html: {
|
@@ -64,35 +86,39 @@ module Kettle
|
|
64
86
|
}
|
65
87
|
|
66
88
|
CI = ENV.fetch("CI", FALSE)
|
67
|
-
COMMAND_NAME = ENV.fetch("K_SOUP_COMMAND_NAME", "RSpec (COVERAGE)")
|
68
|
-
COVERAGE_DIR = ENV.fetch("K_SOUP_COV_DIR", "coverage")
|
69
89
|
IS_CI = CI.casecmp?(TRUE)
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
90
|
+
COMMAND_NAME = ENV_GET.call("COMMAND_NAME", "RSpec (COVERAGE)")
|
91
|
+
COVERAGE_DIR = ENV_GET.call("DIR", "coverage")
|
92
|
+
DEBUG = ENV_GET.call("DEBUG", FALSE).casecmp?(TRUE)
|
93
|
+
DO_COV = ENV_GET.call("DO", CI).casecmp?(TRUE)
|
94
|
+
FILTER_DIRS = ENV_GET.call(
|
95
|
+
"FILTER_DIRS",
|
96
|
+
"bin,certs,checksums,config,coverage,docs,features,gemfiles,pkg,results,sig,spec,src,test,test-results,vendor",
|
74
97
|
)
|
75
98
|
.split(",")
|
76
|
-
.map { |dir_name| %r{^/#{dir_name}/} }
|
77
|
-
FORMATTERS =
|
78
|
-
"
|
79
|
-
IS_CI ? "html,xml,rcov,lcov,json,tty" : "",
|
99
|
+
.map { |dir_name| %r{^/#{Regexp.escape(dir_name)}/} }
|
100
|
+
FORMATTERS = ENV_GET.call(
|
101
|
+
"FORMATTERS",
|
102
|
+
IS_CI ? "html,xml,rcov,lcov,json,tty" : "html,tty",
|
80
103
|
)
|
81
104
|
.split(",")
|
82
105
|
.map { |fmt_name| FORMATTER_PLUGINS[fmt_name.to_sym] }
|
83
|
-
MIN_COVERAGE_HARD =
|
84
|
-
MIN_COVERAGE_BRANCH =
|
85
|
-
MIN_COVERAGE_LINE =
|
106
|
+
MIN_COVERAGE_HARD = ENV_GET.call("MIN_HARD", CI).casecmp?(TRUE)
|
107
|
+
MIN_COVERAGE_BRANCH = ENV_GET.call("MIN_BRANCH", "80").to_i
|
108
|
+
MIN_COVERAGE_LINE = ENV_GET.call("MIN_LINE", "80").to_i
|
86
109
|
MULTI_FORMATTERS_DEFAULT = if IS_CI
|
87
110
|
CI
|
88
111
|
else
|
89
112
|
FORMATTERS.any? ? TRUE : FALSE
|
90
113
|
end
|
91
|
-
MULTI_FORMATTERS =
|
92
|
-
USE_MERGING =
|
93
|
-
|
114
|
+
MULTI_FORMATTERS = ENV_GET.call("MULTI_FORMATTERS", MULTI_FORMATTERS_DEFAULT).casecmp?(TRUE)
|
115
|
+
USE_MERGING = ENV_GET.call("USE_MERGING", nil)&.casecmp?(TRUE)
|
116
|
+
MERGE_TIMEOUT = ENV_GET.call("MERGE_TIMEOUT", nil)&.to_i
|
117
|
+
VERBOSE = ENV_GET.call("VERBOSE", FALSE).casecmp?(TRUE)
|
94
118
|
|
95
|
-
module_function
|
119
|
+
module_function
|
120
|
+
|
121
|
+
def load_formatters
|
96
122
|
SimpleCov.formatters = FORMATTERS
|
97
123
|
.each_with_object([]) do |fmt_data, formatters|
|
98
124
|
require fmt_data[:lib].to_s
|
@@ -109,22 +135,35 @@ module Kettle
|
|
109
135
|
formatters << klass
|
110
136
|
end
|
111
137
|
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
115
138
|
|
116
|
-
|
117
|
-
|
118
|
-
|
139
|
+
def load_filters
|
140
|
+
require "kettle/soup/cover/filters/gt_line_filter"
|
141
|
+
require "kettle/soup/cover/filters/lt_line_filter"
|
142
|
+
end
|
119
143
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
144
|
+
def install_tasks
|
145
|
+
load("kettle/soup/cover/tasks.rb")
|
146
|
+
end
|
147
|
+
|
148
|
+
# Const manipulation is to help with testing this gem
|
149
|
+
def reset_const(&_)
|
150
|
+
delete_const do
|
151
|
+
yield if block_given?
|
152
|
+
# Loading myself... Woah.
|
153
|
+
load("kettle/soup/cover.rb")
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# Const manipulation is to help with testing this gem
|
158
|
+
def delete_const(&_)
|
159
|
+
CONSTANTS.each do |var|
|
160
|
+
remove_const(var)
|
161
|
+
end
|
162
|
+
remove_const(:CONSTANTS)
|
163
|
+
yield if block_given?
|
164
|
+
|
165
|
+
nil
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
130
169
|
end
|
data/lib/kettle-soup-cover.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# In your `spec/spec_helper.rb`,
|
3
3
|
# just prior to loading the library under test:
|
4
4
|
#
|
5
|
-
# require "kettle
|
5
|
+
# require "kettle-soup-cover"
|
6
6
|
#
|
7
7
|
# In your `.simplecov` file:
|
8
8
|
#
|
@@ -10,4 +10,13 @@
|
|
10
10
|
# SimpleCov.start
|
11
11
|
#
|
12
12
|
|
13
|
+
# External gems
|
14
|
+
require "version_gem"
|
15
|
+
|
16
|
+
require_relative "kettle/soup/cover/version"
|
17
|
+
|
13
18
|
require "kettle/soup/cover"
|
19
|
+
|
20
|
+
Kettle::Soup::Cover::Version.class_eval do
|
21
|
+
extend VersionGem::Basic
|
22
|
+
end
|
data/sig/kettle/soup/cover.rbs
CHANGED
@@ -1,24 +1,40 @@
|
|
1
|
+
# See the writing guide of rbs: https://github.com/ruby/rbs#guides
|
1
2
|
module Kettle
|
2
3
|
module Soup
|
3
4
|
module Cover
|
4
|
-
CI:
|
5
|
-
COMMAND_NAME:
|
6
|
-
|
5
|
+
CI: String
|
6
|
+
COMMAND_NAME: String
|
7
|
+
CONSTANTS: Array[String]
|
8
|
+
COVERAGE_DIR: String
|
9
|
+
DEBUG: bool
|
7
10
|
DO_COV: bool
|
8
|
-
|
11
|
+
ENV_GET: Proc
|
12
|
+
FALSE: String
|
9
13
|
FILTER_DIRS: Array[Regexp]
|
10
|
-
FORMATTERS: Array[Hash[Symbol, Hash[Symbol,
|
14
|
+
FORMATTERS: Array[Hash[Symbol, Hash[Symbol, String | Symbol]]]
|
15
|
+
FORMATTER_PLUGINS: Hash[Symbol, Hash[Symbol, String | Symbol]]
|
11
16
|
IS_CI: bool
|
12
|
-
|
17
|
+
MERGE_TIMEOUT: Integer?
|
18
|
+
MIN_COVERAGE_BRANCH: Integer
|
13
19
|
MIN_COVERAGE_HARD: bool
|
14
|
-
MIN_COVERAGE_LINE:
|
20
|
+
MIN_COVERAGE_LINE: Integer
|
15
21
|
MULTI_FORMATTERS: bool
|
16
|
-
MULTI_FORMATTERS_DEFAULT:
|
17
|
-
|
22
|
+
MULTI_FORMATTERS_DEFAULT: String
|
23
|
+
PREFIX: String
|
24
|
+
TRUE: String
|
25
|
+
USE_MERGING: bool?
|
18
26
|
VERBOSE: bool
|
19
27
|
VERSION: String
|
20
|
-
|
28
|
+
|
29
|
+
def delete_const: -> void
|
30
|
+
|
31
|
+
def install_tasks: -> void
|
32
|
+
|
33
|
+
def load_filters: -> void
|
34
|
+
|
21
35
|
def load_formatters: -> void
|
36
|
+
|
37
|
+
def reset_const: -> void
|
22
38
|
end
|
23
39
|
end
|
24
40
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kettle-soup-cover
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
@@ -36,7 +36,7 @@ cert_chain:
|
|
36
36
|
KuxrfYrN+9HvMdm+nZ6TypmKftHY3Gj+/uu+g8Icm/zrvTWAEE0mcJOkfrIoNPJb
|
37
37
|
pF8dMA==
|
38
38
|
-----END CERTIFICATE-----
|
39
|
-
date: 2023-10-
|
39
|
+
date: 2023-10-19 00:00:00.000000000 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: version_gem
|
@@ -189,33 +189,19 @@ dependencies:
|
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: 0.3.3
|
191
191
|
- !ruby/object:Gem::Dependency
|
192
|
-
name:
|
192
|
+
name: kramdown
|
193
193
|
requirement: !ruby/object:Gem::Requirement
|
194
194
|
requirements:
|
195
195
|
- - "~>"
|
196
196
|
- !ruby/object:Gem::Version
|
197
|
-
version: '
|
197
|
+
version: '2.4'
|
198
198
|
type: :development
|
199
199
|
prerelease: false
|
200
200
|
version_requirements: !ruby/object:Gem::Requirement
|
201
201
|
requirements:
|
202
202
|
- - "~>"
|
203
203
|
- !ruby/object:Gem::Version
|
204
|
-
version: '
|
205
|
-
- !ruby/object:Gem::Dependency
|
206
|
-
name: redcarpet
|
207
|
-
requirement: !ruby/object:Gem::Requirement
|
208
|
-
requirements:
|
209
|
-
- - "~>"
|
210
|
-
- !ruby/object:Gem::Version
|
211
|
-
version: '3.6'
|
212
|
-
type: :development
|
213
|
-
prerelease: false
|
214
|
-
version_requirements: !ruby/object:Gem::Requirement
|
215
|
-
requirements:
|
216
|
-
- - "~>"
|
217
|
-
- !ruby/object:Gem::Version
|
218
|
-
version: '3.6'
|
204
|
+
version: '2.4'
|
219
205
|
- !ruby/object:Gem::Dependency
|
220
206
|
name: yard
|
221
207
|
requirement: !ruby/object:Gem::Requirement
|
@@ -373,8 +359,8 @@ dependencies:
|
|
373
359
|
- !ruby/object:Gem::Version
|
374
360
|
version: 1.0.1
|
375
361
|
description: |
|
376
|
-
A Covered Kettle of SOUP (Software of Unknown Provenance)
|
377
|
-
|
362
|
+
A Covered Kettle of Test Coverage SOUP (Software of Unknown Provenance)
|
363
|
+
Four-line SimpleCov config, w/ curated, opinionated, pre-configured, dependencies
|
378
364
|
email:
|
379
365
|
- peter.boling@gmail.com
|
380
366
|
executables: []
|
@@ -392,6 +378,7 @@ files:
|
|
392
378
|
- lib/kettle/soup/cover/config.rb
|
393
379
|
- lib/kettle/soup/cover/filters/gt_line_filter.rb
|
394
380
|
- lib/kettle/soup/cover/filters/lt_line_filter.rb
|
381
|
+
- lib/kettle/soup/cover/tasks.rb
|
395
382
|
- lib/kettle/soup/cover/version.rb
|
396
383
|
- sig/kettle/soup/cover.rbs
|
397
384
|
- sig/kettle/soup/cover/version.rbs
|
@@ -400,10 +387,10 @@ licenses:
|
|
400
387
|
- MIT
|
401
388
|
metadata:
|
402
389
|
homepage_uri: https://kettle-soup-cover.gitlab.io/
|
403
|
-
source_code_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/tree/
|
404
|
-
changelog_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/blob/
|
390
|
+
source_code_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/tree/v1.0.1
|
391
|
+
changelog_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/blob/v1.0.1/CHANGELOG.md
|
405
392
|
bug_tracker_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/issues
|
406
|
-
documentation_uri: https://www.rubydoc.info/gems/kettle-soup-cover/0.1
|
393
|
+
documentation_uri: https://www.rubydoc.info/gems/kettle-soup-cover/1.0.1
|
407
394
|
wiki_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/wiki
|
408
395
|
funding_uri: https://liberapay.com/pboling
|
409
396
|
rubygems_mfa_required: 'true'
|
metadata.gz.sig
CHANGED
Binary file
|