kettle-soup-cover 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 65ba72bb1b3d6ef7945cdf6325a24319c157df5023cf0b48912a42927fcbd991
4
+ data.tar.gz: 1d045a6d4eba3915c681313883b75a18d44e3b2ff3462ea22977b3673428dd7b
5
+ SHA512:
6
+ metadata.gz: 9b7453ebb529d2b0bbbb53af19b6e4293f26ff50442792a8695f648d1fe32febecefa1aecc007516a6a5a27cb3ef86615af52e782de5d62ac523e6c3cb67d647
7
+ data.tar.gz: 2a607af70eafe218fc42cf2d9b3198aed2e382d0840e5ca9543ce7931e8106c9a4f836542b42c15c27d8dabbd6fed6269c69163e114661f8845e9ecded8294fd
checksums.yaml.gz.sig ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+ ### Added
10
+ ### Changed
11
+ ### Fixed
12
+ ### Removed
13
+
14
+ ## [Unreleased]
15
+ ## [0.1.0] - 2023-10-17
16
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/CONTRIBUTING.md ADDED
@@ -0,0 +1,38 @@
1
+ ## Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitLab at [https://gitlab.com/kettle-rb/kettle-soup-cover][🚎src-main]
4
+ . This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
5
+ the [code of conduct][🤝conduct].
6
+
7
+ To submit a patch, please fork the project and create a patch with tests. Once you're happy with it send a pull request
8
+ and post a message to the [gitter chat][🏘chat].
9
+
10
+ ## Release
11
+
12
+ To release a new version:
13
+
14
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
15
+ 2. Update the version number in `version.rb`
16
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
17
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
18
+ a. NOTE: Remember to [check the build][🧪build]!
19
+ 5. Run `rake build`
20
+ 6. Run [`bin/checksums`](https://github.com/rubygems/guides/pull/325) to create SHA-256 and SHA-512 checksums
21
+ a. Checksums will be committed automatically by the script
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]
23
+
24
+ NOTE: You will need to have a public key in `certs/`, and list your cert in the
25
+ `gemspec`, in order to sign the new release.
26
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
27
+
28
+ ## Contributors
29
+
30
+ See: [https://gitlab.com/kettle-rb/kettle-soup-cover/-/graphs/main][🖐contributors]
31
+
32
+ [🤝conduct]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/blob/main/CODE_OF_CONDUCT.md
33
+ [🧪build]: https://github.com/pboling/require_bench/actions
34
+ [🖐contributors]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/graphs/main
35
+ [🚎src-main]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/tree/main
36
+ [🏘chat]: https://matrix.to/#/#kettle-rb:gitter.im
37
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
38
+ [💎rubygems]: https://rubygems.org
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 Peter Boling
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,106 @@
1
+ <p align="center">
2
+ <a href="https://kettle-rb.gitlab.io/" target="_blank" rel="noopener">
3
+ <img height="120px" src="https://kettle-rb.gitlab.io/assets/img/logos/logo-name-optimized.png" alt="kettle-rb logo, Copyright (c) 2023 Peter Boling, CC BY-SA 4.0, see https://kettle-rb.gitlab.io/logos">
4
+ </a>
5
+ </p>
6
+
7
+ # Kettle::Soup::Cover
8
+
9
+ A Covered Kettle of SOUP (Software of Unknown Provenance)
10
+
11
+ The name is derived in part from the medical devices field,
12
+ where this library is considered a package of [SOUP](https://en.wikipedia.org/wiki/Software_of_unknown_pedigree).
13
+
14
+ It provides a one-line-configured, curated, opinionated, set of dependencies for Test Coverage.
15
+
16
+ ## Installation
17
+
18
+ Install the gem and add to the application's Gemfile by executing:
19
+
20
+ $ bundle add kettle-soup-cover
21
+
22
+ If bundler is not being used to manage dependencies, install the gem by executing:
23
+
24
+ $ gem install kettle-soup-cover
25
+
26
+ ## Usage
27
+
28
+ In your `spec/spec_helper.rb`, just prior to loading the library under test:
29
+
30
+ ```ruby
31
+ require "kettle/soup/cover" # or require "kettle-soup-cover"
32
+ ```
33
+
34
+ In your `.simplecov` file:
35
+
36
+ ```ruby
37
+ require "kettle/soup/cover/config"
38
+ SimpleCov.start
39
+ ```
40
+
41
+ See [Advanced Usage](#advanced-usage) below for more info,
42
+ but the simplest thing is to run all the coverage things,
43
+ which is configured by default on CI. To replicate that locally you could:
44
+
45
+ ```shell
46
+ CI=true bundle exec rake test # or whatever command you run for tests.
47
+ ```
48
+
49
+ That's it!
50
+
51
+ ### Advanced Usage
52
+
53
+ 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].
55
+
56
+ Additionally some of the included gems, like [`simplecov-console`][simplecov-console],
57
+ have their own complete suite of ENV variables you can configure.
58
+
59
+ [env-constants]: /lib/kettle/soup/cover.rb
60
+ [simplecov-console]: https://github.com/chetan/simplecov-console#options
61
+
62
+ ## Development
63
+
64
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
65
+
66
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
67
+
68
+ ## Code of Conduct
69
+
70
+ Everyone interacting in this project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).
71
+
72
+ ## Contributing
73
+
74
+ See [CONTRIBUTING.md](CONTRIBUTING.md).
75
+
76
+ ## Versioning
77
+
78
+ This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations of this scheme should be reported as
79
+ bugs. Specifically, if a minor or patch version is released that breaks backward compatibility, a new version should be
80
+ immediately released that restores compatibility. Breaking changes to the public API will only be introduced with new
81
+ major versions.
82
+
83
+ As a result of this policy, you can (and should) specify a dependency on this gem using
84
+ the [Pessimistic Version Constraint][pvc] with two digits of precision.
85
+
86
+ For example:
87
+
88
+ ```ruby
89
+ spec.add_dependency("kettle-soup-cover", "~> 0.1")
90
+ ```
91
+
92
+ ## License
93
+
94
+ The gem is available as open source under the terms of
95
+ the [MIT License][license] [![License: MIT][license-img]][license-ref].
96
+ See [LICENSE][license] for the official [Copyright Notice][copyright-notice-explainer].
97
+
98
+ * Copyright (c) 2023 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
99
+
100
+ [copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
101
+ [license]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/blob/main/LICENSE.txt
102
+ [license-img]: https://img.shields.io/badge/License-MIT-green.svg
103
+ [license-ref]: https://opensource.org/licenses/MIT
104
+ [pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
105
+ [railsbling]: http://www.railsbling.com
106
+ [semver]: http://semver.org/
data/SECURITY.md ADDED
@@ -0,0 +1,13 @@
1
+ # Security Policy
2
+
3
+ ## Supported Versions
4
+
5
+ | Version | Supported |
6
+ |-----------|-----------|
7
+ | 1.latest | ✅ |
8
+
9
+ ## Reporting a Vulnerability
10
+
11
+ Peter Boling is the primary maintainer of this gem. Please find a way
12
+ to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
13
+ possible.
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # USAGE:
4
+ # In your `spec/spec_helper.rb`,
5
+ # just prior to loading the library under test:
6
+ #
7
+ # require "kettle/soup/cover" # or require "kettle-soup-cover"
8
+ #
9
+ # In your `.simplecov` file:
10
+ #
11
+ # require "kettle/soup/cover/config"
12
+ # SimpleCov.start
13
+ #
14
+
15
+ SimpleCov.configure do
16
+ track_files("lib/**/*.rb")
17
+
18
+ command_name Kettle::Soup::Cover::COMMAND_NAME
19
+
20
+ enable_coverage :branch
21
+ primary_coverage :branch
22
+
23
+ # Filters (skip these paths for coverage tracking)
24
+ add_filter Kettle::Soup::Cover::FILTER_DIRS
25
+
26
+ # Setup Coverage Dir
27
+ coverage_dir(Kettle::Soup::Cover::COVERAGE_DIR)
28
+
29
+ # Formatters
30
+ if Kettle::Soup::Cover::MULTI_FORMATTERS
31
+ Kettle::Soup::Cover.load_formatters
32
+ else
33
+ require "simplecov-html"
34
+ formatter SimpleCov::Formatter::HTMLFormatter
35
+ end
36
+
37
+ # Use Merging (merges RSpec + Cucumber Test Results)
38
+ use_merging(true)
39
+ merge_timeout(3600)
40
+
41
+ # Fail build when missed coverage targets
42
+ # NOTE: Checking SpecTracker.instance.full_suite? here would be awesome, but won't work
43
+ # SpecTracker must wait for instantiation until it has
44
+ # RSpec's config.world.all_examples,
45
+ # and that doesn't happen until the before(:suite) hook
46
+ if Kettle::Soup::Cover::IS_CI || Kettle::Soup::Cover::MIN_COVERAGE_HARD
47
+ minimum_coverage(
48
+ branch: Kettle::Soup::Cover::MIN_COVERAGE_BRANCH,
49
+ line: Kettle::Soup::Cover::MIN_COVERAGE_LINE,
50
+ )
51
+ end
52
+ end
@@ -0,0 +1,7 @@
1
+ # See: https://github.com/simplecov-ruby/simplecov#custom-filter-class
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
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # See: https://github.com/simplecov-ruby/simplecov#custom-filter-class
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
6
+ end
7
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Kettle
4
+ module Soup
5
+ module Cover
6
+ module Version
7
+ VERSION = "0.1.0"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,130 @@
1
+ # frozen_string_literal: true
2
+
3
+ # External gems
4
+ require "version_gem"
5
+
6
+ require_relative "cover/version"
7
+
8
+ # USAGE:
9
+ # In your `spec/spec_helper.rb`,
10
+ # just prior to loading the library under test:
11
+ #
12
+ # require "kettle/soup/cover" # or require "kettle-soup-cover"
13
+ #
14
+ # In your `.simplecov` file:
15
+ #
16
+ # require "kettle/soup/cover/config"
17
+ # SimpleCov.start
18
+ #
19
+
20
+ module Kettle
21
+ module Soup
22
+ module Cover
23
+ class Error < StandardError; end
24
+
25
+ FALSE = "false"
26
+ TRUE = "true"
27
+ FORMATTER_PLUGINS = {
28
+ # HTML for Humans
29
+ html: {
30
+ type: :html,
31
+ klass: "HTMLFormatter",
32
+ lib: "simplecov-html",
33
+ },
34
+ # XML for Jenkins
35
+ xml: {
36
+ type: :xml,
37
+ klass: "CoberturaFormatter",
38
+ lib: "simplecov-cobertura",
39
+ },
40
+ # RCOV for Hudson
41
+ rcov: {
42
+ type: :rcov,
43
+ klass: "RcovFormatter",
44
+ lib: "simplecov-rcov",
45
+ },
46
+ # LCOV for GCOV
47
+ lcov: {
48
+ type: :lcov,
49
+ klass: "LcovFormatter",
50
+ lib: "simplecov-lcov",
51
+ },
52
+ # JSON for CodeClimate
53
+ json: {
54
+ type: :json,
55
+ klass: "JSONFormatter",
56
+ lib: "simplecov_json_formatter",
57
+ },
58
+ # TTY / Console output
59
+ tty: {
60
+ type: :tty,
61
+ klass: "Console",
62
+ lib: "simplecov-console",
63
+ },
64
+ }
65
+
66
+ 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
+ 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",
74
+ )
75
+ .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" : "",
80
+ )
81
+ .split(",")
82
+ .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
86
+ MULTI_FORMATTERS_DEFAULT = if IS_CI
87
+ CI
88
+ else
89
+ FORMATTERS.any? ? TRUE : FALSE
90
+ 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)
94
+
95
+ module_function def load_formatters
96
+ SimpleCov.formatters = FORMATTERS
97
+ .each_with_object([]) do |fmt_data, formatters|
98
+ require fmt_data[:lib].to_s
99
+
100
+ klass = SimpleCov::Formatter.const_get(fmt_data[:klass])
101
+
102
+ if fmt_data[:type] == :lcov
103
+ klass.config do |c|
104
+ c.report_with_single_file = true
105
+ c.single_report_path = "#{Kettle::Soup::Cover::COVERAGE_DIR}/lcov.info"
106
+ end
107
+ end
108
+
109
+ formatters << klass
110
+ end
111
+ end
112
+ end
113
+ end
114
+ end
115
+
116
+ Kettle::Soup::Cover::Version.class_eval do
117
+ extend VersionGem::Basic
118
+ end
119
+
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}"
130
+ end
@@ -0,0 +1,13 @@
1
+ # USAGE:
2
+ # In your `spec/spec_helper.rb`,
3
+ # just prior to loading the library under test:
4
+ #
5
+ # require "kettle/soup/cover" # or require "kettle-soup-cover"
6
+ #
7
+ # In your `.simplecov` file:
8
+ #
9
+ # require "kettle/soup/cover/config"
10
+ # SimpleCov.start
11
+ #
12
+
13
+ require "kettle/soup/cover"
@@ -0,0 +1,9 @@
1
+ module Kettle
2
+ module Soup
3
+ module Cover
4
+ module Version
5
+ VERSION: string
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,24 @@
1
+ module Kettle
2
+ module Soup
3
+ module Cover
4
+ CI: string
5
+ COMMAND_NAME: string
6
+ COVERAGE_DIR: string
7
+ DO_COV: bool
8
+ FALSE: string
9
+ FILTER_DIRS: Array[Regexp]
10
+ FORMATTERS: Array[Hash[Symbol, Hash[Symbol, [string, Symbol]]]]
11
+ IS_CI: bool
12
+ MIN_COVERAGE_BRANCH: int
13
+ MIN_COVERAGE_HARD: bool
14
+ MIN_COVERAGE_LINE: int
15
+ MULTI_FORMATTERS: bool
16
+ MULTI_FORMATTERS_DEFAULT: string
17
+ TRUE: string
18
+ VERBOSE: bool
19
+ VERSION: String
20
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
21
+ def load_formatters: -> void
22
+ end
23
+ end
24
+ end
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,429 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kettle-soup-cover
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Peter Boling
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
14
+ ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
15
+ A2NvbTAeFw0yMzA5MjAxNzMwMjhaFw0yNDA5MTkxNzMwMjhaMEMxFTATBgNVBAMM
16
+ DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
17
+ LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEA+a9UvHo3
18
+ 84k96WgU5Kk5HB+cLZs/modjorsTfqY67MJF5nNvAoqcKTUBW4uG+Zpfnm3jaDO5
19
+ GxhJEIZWfndYzycHT2KMVQ1uTP82ba8ZaKrPlPIafkbui3mdds47qsmqHiblKERg
20
+ U532lkwfqHDlJwE7OBZQ59EwWWLynlT/yAUHpOBbqIuHKUxdpmBI+sIjrZcD1e05
21
+ WmjkO6fwIdC5oM757aoPxIgXD587VOViH11Vkm2doskj4T8yONtwVHlcrrhJ9Bzd
22
+ /zdp6vEn7GZQrABvpOlqwWxQ72ZnFhJe/RJZf6CXOPOh69Ai0QKYl2a1sYuCJKS3
23
+ nsBnxXJINEEznjR7rZjNUmYD+CZqfjzgPqedRxTlASe7iA4w7xZOqMDzcuhNwcUQ
24
+ tMEH6BTktxKP3jXZPXRfHCf6s+HRVb6vezAonTBVyydf5Xp5VwWkd6cwm+2BzHl5
25
+ 7kc/3lLxKMcsyEUprAsk8LdHohwZdC267l+RS++AP6Cz6x+nB3oGob19AgMBAAGj
26
+ fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBQCSSas60GqqMjt
27
+ xR7LoY1gucEvtzAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
28
+ A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
29
+ ggGBAMl9ifcw5p+PdvB7dCPoNKoVdp/2LbC9ztETHuYL2gUMJB6UoS3o9c/piSuR
30
+ V3ZMQaijmNu6ms1bWAtJ66LjmYrVflJtf9yp31Kierr9LpisMSUx2qbMOHGa8d2Z
31
+ vCUWPF8E9Cg0mP3GAyZ6qql8jDh/anUKeksPXqJvNxNPDu2DVYsa/IWdl96whzS4
32
+ Bl7SwB1E7agps40UcshCSKaVDOU0M+XN6SrnJMElnBic+KSAkBkVFbzS0BE4ODZM
33
+ BgE6nYzQ05qhuvbE+oGdACTlemNtDDWCh0uw+7x0q2PocGIDU5zsPn/WNTkCXPmB
34
+ CHGvqDNWq4M7ncTKAaS2XExgyb7uPdq9fKiOW8nmH+zCiGzJXzBWwZlKf7L4Ht9E
35
+ a3f0e5C+zvee9Z5Ng9ciyfav9/fcXgYt5MjoBv27THr5XfBhgOCIHSYW2tqJmWKi
36
+ KuxrfYrN+9HvMdm+nZ6TypmKftHY3Gj+/uu+g8Icm/zrvTWAEE0mcJOkfrIoNPJb
37
+ pF8dMA==
38
+ -----END CERTIFICATE-----
39
+ date: 2023-10-17 00:00:00.000000000 Z
40
+ dependencies:
41
+ - !ruby/object:Gem::Dependency
42
+ name: version_gem
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.1'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 1.1.3
51
+ type: :runtime
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '1.1'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 1.1.3
61
+ - !ruby/object:Gem::Dependency
62
+ name: rake
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '13.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '13.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: simplecov
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.22'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.22'
89
+ - !ruby/object:Gem::Dependency
90
+ name: simplecov-cobertura
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '2.1'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '2.1'
103
+ - !ruby/object:Gem::Dependency
104
+ name: simplecov-console
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '0.9'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 0.9.1
113
+ type: :runtime
114
+ prerelease: false
115
+ version_requirements: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - "~>"
118
+ - !ruby/object:Gem::Version
119
+ version: '0.9'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 0.9.1
123
+ - !ruby/object:Gem::Dependency
124
+ name: simplecov-html
125
+ requirement: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - "~>"
128
+ - !ruby/object:Gem::Version
129
+ version: '0.12'
130
+ type: :runtime
131
+ prerelease: false
132
+ version_requirements: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - "~>"
135
+ - !ruby/object:Gem::Version
136
+ version: '0.12'
137
+ - !ruby/object:Gem::Dependency
138
+ name: simplecov_json_formatter
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: '0.1'
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 0.1.4
147
+ type: :runtime
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - "~>"
152
+ - !ruby/object:Gem::Version
153
+ version: '0.1'
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: 0.1.4
157
+ - !ruby/object:Gem::Dependency
158
+ name: simplecov-lcov
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - "~>"
162
+ - !ruby/object:Gem::Version
163
+ version: '0.8'
164
+ type: :runtime
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - "~>"
169
+ - !ruby/object:Gem::Version
170
+ version: '0.8'
171
+ - !ruby/object:Gem::Dependency
172
+ name: simplecov-rcov
173
+ requirement: !ruby/object:Gem::Requirement
174
+ requirements:
175
+ - - "~>"
176
+ - !ruby/object:Gem::Version
177
+ version: '0.3'
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 0.3.3
181
+ type: :runtime
182
+ prerelease: false
183
+ version_requirements: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: '0.3'
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: 0.3.3
191
+ - !ruby/object:Gem::Dependency
192
+ name: rbs
193
+ requirement: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '3.1'
198
+ type: :development
199
+ prerelease: false
200
+ version_requirements: !ruby/object:Gem::Requirement
201
+ requirements:
202
+ - - "~>"
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'
219
+ - !ruby/object:Gem::Dependency
220
+ name: yard
221
+ requirement: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - "~>"
224
+ - !ruby/object:Gem::Version
225
+ version: '0.9'
226
+ - - ">="
227
+ - !ruby/object:Gem::Version
228
+ version: 0.9.34
229
+ type: :development
230
+ prerelease: false
231
+ version_requirements: !ruby/object:Gem::Requirement
232
+ requirements:
233
+ - - "~>"
234
+ - !ruby/object:Gem::Version
235
+ version: '0.9'
236
+ - - ">="
237
+ - !ruby/object:Gem::Version
238
+ version: 0.9.34
239
+ - !ruby/object:Gem::Dependency
240
+ name: yard-junk
241
+ requirement: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - "~>"
244
+ - !ruby/object:Gem::Version
245
+ version: '0.0'
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - "~>"
251
+ - !ruby/object:Gem::Version
252
+ version: '0.0'
253
+ - !ruby/object:Gem::Dependency
254
+ name: rubocop-lts
255
+ requirement: !ruby/object:Gem::Requirement
256
+ requirements:
257
+ - - "~>"
258
+ - !ruby/object:Gem::Version
259
+ version: '18.1'
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: 18.2.1
263
+ type: :development
264
+ prerelease: false
265
+ version_requirements: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - "~>"
268
+ - !ruby/object:Gem::Version
269
+ version: '18.1'
270
+ - - ">="
271
+ - !ruby/object:Gem::Version
272
+ version: 18.2.1
273
+ - !ruby/object:Gem::Dependency
274
+ name: rubocop-packaging
275
+ requirement: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - "~>"
278
+ - !ruby/object:Gem::Version
279
+ version: '0.5'
280
+ - - ">="
281
+ - !ruby/object:Gem::Version
282
+ version: 0.5.2
283
+ type: :development
284
+ prerelease: false
285
+ version_requirements: !ruby/object:Gem::Requirement
286
+ requirements:
287
+ - - "~>"
288
+ - !ruby/object:Gem::Version
289
+ version: '0.5'
290
+ - - ">="
291
+ - !ruby/object:Gem::Version
292
+ version: 0.5.2
293
+ - !ruby/object:Gem::Dependency
294
+ name: rubocop-rspec
295
+ requirement: !ruby/object:Gem::Requirement
296
+ requirements:
297
+ - - "~>"
298
+ - !ruby/object:Gem::Version
299
+ version: '2.24'
300
+ type: :development
301
+ prerelease: false
302
+ version_requirements: !ruby/object:Gem::Requirement
303
+ requirements:
304
+ - - "~>"
305
+ - !ruby/object:Gem::Version
306
+ version: '2.24'
307
+ - !ruby/object:Gem::Dependency
308
+ name: rspec
309
+ requirement: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - "~>"
312
+ - !ruby/object:Gem::Version
313
+ version: '3.12'
314
+ type: :development
315
+ prerelease: false
316
+ version_requirements: !ruby/object:Gem::Requirement
317
+ requirements:
318
+ - - "~>"
319
+ - !ruby/object:Gem::Version
320
+ version: '3.12'
321
+ - !ruby/object:Gem::Dependency
322
+ name: rspec-block_is_expected
323
+ requirement: !ruby/object:Gem::Requirement
324
+ requirements:
325
+ - - "~>"
326
+ - !ruby/object:Gem::Version
327
+ version: '1.0'
328
+ - - ">="
329
+ - !ruby/object:Gem::Version
330
+ version: 1.0.5
331
+ type: :development
332
+ prerelease: false
333
+ version_requirements: !ruby/object:Gem::Requirement
334
+ requirements:
335
+ - - "~>"
336
+ - !ruby/object:Gem::Version
337
+ version: '1.0'
338
+ - - ">="
339
+ - !ruby/object:Gem::Version
340
+ version: 1.0.5
341
+ - !ruby/object:Gem::Dependency
342
+ name: rspec_junit_formatter
343
+ requirement: !ruby/object:Gem::Requirement
344
+ requirements:
345
+ - - "~>"
346
+ - !ruby/object:Gem::Version
347
+ version: '0.6'
348
+ type: :development
349
+ prerelease: false
350
+ version_requirements: !ruby/object:Gem::Requirement
351
+ requirements:
352
+ - - "~>"
353
+ - !ruby/object:Gem::Version
354
+ version: '0.6'
355
+ - !ruby/object:Gem::Dependency
356
+ name: rspec-stubbed_env
357
+ requirement: !ruby/object:Gem::Requirement
358
+ requirements:
359
+ - - "~>"
360
+ - !ruby/object:Gem::Version
361
+ version: '1.0'
362
+ - - ">="
363
+ - !ruby/object:Gem::Version
364
+ version: 1.0.1
365
+ type: :development
366
+ prerelease: false
367
+ version_requirements: !ruby/object:Gem::Requirement
368
+ requirements:
369
+ - - "~>"
370
+ - !ruby/object:Gem::Version
371
+ version: '1.0'
372
+ - - ">="
373
+ - !ruby/object:Gem::Version
374
+ version: 1.0.1
375
+ description: |
376
+ A Covered Kettle of SOUP (Software of Unknown Provenance)
377
+ One-Liner, curated, opinionated, pre-configured, dependencies for Test Coverage
378
+ email:
379
+ - peter.boling@gmail.com
380
+ executables: []
381
+ extensions: []
382
+ extra_rdoc_files: []
383
+ files:
384
+ - CHANGELOG.md
385
+ - CODE_OF_CONDUCT.md
386
+ - CONTRIBUTING.md
387
+ - LICENSE.txt
388
+ - README.md
389
+ - SECURITY.md
390
+ - lib/kettle-soup-cover.rb
391
+ - lib/kettle/soup/cover.rb
392
+ - lib/kettle/soup/cover/config.rb
393
+ - lib/kettle/soup/cover/filters/gt_line_filter.rb
394
+ - lib/kettle/soup/cover/filters/lt_line_filter.rb
395
+ - lib/kettle/soup/cover/version.rb
396
+ - sig/kettle/soup/cover.rbs
397
+ - sig/kettle/soup/cover/version.rbs
398
+ homepage: https://gitlab.com/rubocop-lts/kettle-soup-cover
399
+ licenses:
400
+ - MIT
401
+ metadata:
402
+ 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
405
+ 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
407
+ wiki_uri: https://gitlab.com/rubocop-lts/kettle-soup-cover/-/wiki
408
+ funding_uri: https://liberapay.com/pboling
409
+ rubygems_mfa_required: 'true'
410
+ post_install_message:
411
+ rdoc_options: []
412
+ require_paths:
413
+ - lib
414
+ required_ruby_version: !ruby/object:Gem::Requirement
415
+ requirements:
416
+ - - ">="
417
+ - !ruby/object:Gem::Version
418
+ version: '2.7'
419
+ required_rubygems_version: !ruby/object:Gem::Requirement
420
+ requirements:
421
+ - - ">="
422
+ - !ruby/object:Gem::Version
423
+ version: '0'
424
+ requirements: []
425
+ rubygems_version: 3.4.21
426
+ signing_key:
427
+ specification_version: 4
428
+ summary: A Covered Kettle of SOUP, A Bundler Plugin
429
+ test_files: []
metadata.gz.sig ADDED
Binary file