kettle-soup-cover 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 65ba72bb1b3d6ef7945cdf6325a24319c157df5023cf0b48912a42927fcbd991
4
- data.tar.gz: 1d045a6d4eba3915c681313883b75a18d44e3b2ff3462ea22977b3673428dd7b
3
+ metadata.gz: 3c98f3cee5c167ee77f4bf466ce068584afa9a6bef11010868ecde1fb6297825
4
+ data.tar.gz: 5d3f998c56eeedff2f589074351c9442988ec21693049fd8d067b2edab1511e7
5
5
  SHA512:
6
- metadata.gz: 9b7453ebb529d2b0bbbb53af19b6e4293f26ff50442792a8695f648d1fe32febecefa1aecc007516a6a5a27cb3ef86615af52e782de5d62ac523e6c3cb67d647
7
- data.tar.gz: 2a607af70eafe218fc42cf2d9b3198aed2e382d0840e5ca9543ce7931e8106c9a4f836542b42c15c27d8dabbd6fed6269c69163e114661f8845e9ecded8294fd
6
+ metadata.gz: c38a50966f371fd09080bb4b1e2eb937d17f7b02e363c3ccdb54629009526bf642fb92be3080bcfb14343b0ddca4b724f50a0d1452ed448acacd1486b3674da6
7
+ data.tar.gz: c15f006f570347de26392f84be7497b53dc49cfac86ed10ae5dffc6ef532c22b450fe08b5b6ec15836bd1b6ad30ed99f8c00fddcb392a0f62c9b7e6847a363fb
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -11,6 +11,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
  ### Fixed
12
12
  ### Removed
13
13
 
14
- ## [Unreleased]
14
+ ## [1.0.0] - 2023-10-19
15
+ ### Added
16
+ - ✨ `Regexp.escape` the `FILTER_DIRS` to allow for paths to be excluded from coverage
17
+ - paths must always start at the root of the project, but no leading or trailing slash
18
+ - ✨ Rake task `coverage` will run spec suite, and open results in a browser.
19
+ - ✨ `Kettle::Soup::Cover::PREFIX` allows configuration of a custom ENV variable name prefix
20
+ - Set `export K_SOUP_COV_DEBUG="K_SOUP_COV_"` (default shown)
21
+ - ✨ `Kettle::Soup::Cover::USE_MERGING`
22
+ - Set `export K_SOUP_COV_USE_MERGING=true`
23
+ - ✨ `Kettle::Soup::Cover::MERGE_TIMEOUT`
24
+ - Set `export K_SOUP_COV_MERGE_TIMEOUT=3600`
25
+ - ✨ `Kettle::Soup::Cover::DEBUG` - similar to `VERBOSE`, only moreso!
26
+ - Set `export K_SOUP_COV_DEBUG=true`
27
+ - NOTE: This gem actually has zero output statements.
28
+ - The utility of `DEBUG` and `VERBOSE` being a part of this library is
29
+ to normalize handling of this common logical need in other libraries.
30
+ - ✨ `Kettle::Soup::Cover.load_filters`
31
+ - `Kettle::Soup::Cover::Filters::GtLineFilter`
32
+ - `Kettle::Soup::Cover::Filters::LtLineFilter`
33
+ - More and better documentation
34
+ ### Changed
35
+ - This gem no longer does `require "simplecov"`
36
+ - Instead you can `require "simplecov" if Kettle::Soup::Cover::COV_DO` wherever you deem fit
37
+ ### Fixed
38
+ - All ENV vars now begin with a uniform prefix for this gem:
39
+ - `K_SOUP_COV_*`
40
+
15
41
  ## [0.1.0] - 2023-10-17
16
42
  - Initial release
43
+
44
+ [Unreleased]: https://github.com/pboling/pretty_feed/compare/v1.0.0...HEAD
45
+ [1.0.0]: https://github.com/pboling/pretty_feed/compare/v0.1.0...v1.0.0
46
+ [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
- require "kettle/soup/cover" # or require "kettle-soup-cover"
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.1")
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/soup/cover" # or require "kettle-soup-cover"
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(true)
39
- merge_timeout(3600)
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
- class GtLineFilter < SimpleCov::Filter
4
- def matches?(source_file)
5
- source_file.lines.count > filter_argument
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
- class LtLineFilter < SimpleCov::Filter
4
- def matches?(source_file)
5
- source_file.lines.count < filter_argument
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
@@ -0,0 +1,5 @@
1
+ # Load from a "rakelib" directory is automatic!
2
+ # Adding a custom directory of tasks as a "rakelib" directory makes them available.
3
+ abs_path = File.expand_path(__dir__)
4
+ rakelib = "#{abs_path}/rakelib"
5
+ Rake.add_rakelib(rakelib)
@@ -4,7 +4,7 @@ module Kettle
4
4
  module Soup
5
5
  module Cover
6
6
  module Version
7
- VERSION = "0.1.0"
7
+ VERSION = "1.0.0"
8
8
  end
9
9
  end
10
10
  end
@@ -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/soup/cover" # or require "kettle-soup-cover"
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
- DO_COV = ENV.fetch("K_SOUP_DO_COV", CI).casecmp?(TRUE)
71
- FILTER_DIRS = ENV.fetch(
72
- "K_SOUP_FILTER_DIRS",
73
- "bin,certs,checksums,config,docs,features,gemfiles,pkg,results,sig,spec,src,test,test-results,vendor",
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 = ENV.fetch(
78
- "K_SOUP_FORMATTERS",
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 = ENV.fetch("K_SOUP_COV_MIN_HARD", FALSE).casecmp?(TRUE)
84
- MIN_COVERAGE_BRANCH = ENV.fetch("K_SOUP_COV_MIN_BRANCH", "80").to_i
85
- MIN_COVERAGE_LINE = ENV.fetch("K_SOUP_COV_MIN_LINE", "80").to_i
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 = ENV.fetch("K_SOUP_COV_MULTI_FORMATTERS", MULTI_FORMATTERS_DEFAULT).casecmp?(TRUE)
92
- USE_MERGING = ENV.fetch("K_SOUP_USE_MERGING", FALSE)
93
- VERBOSE = ENV.fetch("K_SOUP_VERBOSE", FALSE).casecmp?(TRUE)
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 def load_formatters
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
- Kettle::Soup::Cover::Version.class_eval do
117
- extend VersionGem::Basic
118
- end
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
- if Kettle::Soup::Cover::DO_COV
121
- # When simplecov library loads here, the .simplecov library will be run immediately
122
- # It is expected that inside .simplecov users of this gem will add:
123
- #
124
- # require "kettle/soup/cover/config" # Runs SimpleCov.configure, but not SimpleCov.start
125
- # SimpleCov.start # actually run start!
126
- #
127
- require "simplecov"
128
- elsif Kettle::Soup::Cover::VERBOSE
129
- puts "[Kettle::Soup::Cover] Not running coverage on #{RUBY_ENGINE} #{RUBY_VERSION}"
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
@@ -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/soup/cover" # or require "kettle-soup-cover"
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
@@ -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: string
5
- COMMAND_NAME: string
6
- COVERAGE_DIR: string
5
+ CI: String
6
+ COMMAND_NAME: String
7
+ CONSTANTS: Array[String]
8
+ COVERAGE_DIR: String
9
+ DEBUG: bool
7
10
  DO_COV: bool
8
- FALSE: string
11
+ ENV_GET: Proc
12
+ FALSE: String
9
13
  FILTER_DIRS: Array[Regexp]
10
- FORMATTERS: Array[Hash[Symbol, Hash[Symbol, [string, 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
- MIN_COVERAGE_BRANCH: int
17
+ MERGE_TIMEOUT: Integer?
18
+ MIN_COVERAGE_BRANCH: Integer
13
19
  MIN_COVERAGE_HARD: bool
14
- MIN_COVERAGE_LINE: int
20
+ MIN_COVERAGE_LINE: Integer
15
21
  MULTI_FORMATTERS: bool
16
- MULTI_FORMATTERS_DEFAULT: string
17
- TRUE: string
22
+ MULTI_FORMATTERS_DEFAULT: String
23
+ PREFIX: String
24
+ TRUE: String
25
+ USE_MERGING: bool?
18
26
  VERBOSE: bool
19
27
  VERSION: String
20
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
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.0
4
+ version: 1.0.0
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-17 00:00:00.000000000 Z
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: rbs
192
+ name: kramdown
193
193
  requirement: !ruby/object:Gem::Requirement
194
194
  requirements:
195
195
  - - "~>"
196
196
  - !ruby/object:Gem::Version
197
- version: '3.1'
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: '3.1'
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
- One-Liner, curated, opinionated, pre-configured, dependencies for Test Coverage
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/v0.1.0
404
- changelog_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/blob/v0.1.0/CHANGELOG.md
390
+ source_code_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/tree/v1.0.0
391
+ changelog_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/blob/v1.0.0/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.0
393
+ documentation_uri: https://www.rubydoc.info/gems/kettle-soup-cover/1.0.0
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