kettle-soup-cover 3.0.0.rc1 → 3.0.0.rc2

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: 48e04926c6d11f1c5a5a31f1ca95fc5d0b2835fd0901acdbfb7d76180c059a16
4
- data.tar.gz: b553da9b99a625aba292b7e9e9cc3fc895108d185eee8c1eed452363a787e42f
3
+ metadata.gz: 340615d7a1e6c81ef8954d44bfb692965d026abe79417b7f6ab6f7f43224c7dd
4
+ data.tar.gz: 5ad13cfa412842ec4cd2bee15ea4805d14b73ab4bc6762e81249a1ec7242bdb0
5
5
  SHA512:
6
- metadata.gz: 2bf347ce8490f9760cd1fdc1c75d205f9c7d77fff69fff4da9c3695226b5a4ab73dad3aedb01030015c52f2abbfbbdf70d66b1b35f2369c60dbe5bced639c0b8
7
- data.tar.gz: a6967e92680e7b77a7831dd099c050d61015c6df89bcc246e5b8e4065d73ea24a477fe4af39ea16ae2fa816f7cbf0165b150940d25d6b77d9248a1e4d36d1a1a
6
+ metadata.gz: 3a8721fdfbeec82d7789030117ebcf65be1d244ade54d060c18ce1b24887bcff82e37b7652bd7a6e1ae12c7a48a8fe97bd4924f3e00b1aacff7e6a7f66ec8a11
7
+ data.tar.gz: 1dfba8fd2c5e3ba87f275580c6eef8556cc54e00108c78d948b95ec9c15eab3dc84225b1c3049fba7603e7710e5aaea661a63f309ca1e75a2baf242a46b7a449
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -28,11 +28,30 @@ Please file a bug if you notice a violation of semantic versioning.
28
28
 
29
29
  ### Fixed
30
30
 
31
+ ### Security
32
+
33
+ ## [3.0.0.rc2] - 2026-06-20
34
+
35
+ - TAG: [v3.0.0.rc2][3.0.0.rc2t]
36
+ - COVERAGE: 100.00% -- 258/258 lines in 12 files
37
+ - BRANCH COVERAGE: 100.00% -- 72/72 branches in 12 files
38
+ - 16.44% documented
39
+
40
+ ### Added
41
+
42
+ - Added support for JRuby 10.1 and TruffleRuby 34.0.
43
+
44
+ ### Changed
45
+
46
+ - Retemplated project metadata and CI/development automation with `kettle-jem` v7.0.0.
47
+ - Updated SimpleCov configuration to use the v1 `cover`, `skip`, and `merging`
48
+ APIs and to start coverage from the test helper instead of `.simplecov`.
49
+
50
+ ### Fixed
51
+
31
52
  - Fixed GitHub Actions release validation on `next` by allowing workflow push
32
53
  triggers to run on the release branch.
33
54
 
34
- ### Security
35
-
36
55
  ## [3.0.0.rc1] - 2026-06-19
37
56
 
38
57
  - TAG: [v3.0.0.rc1][3.0.0.rc1t]
@@ -429,7 +448,7 @@ Please file a bug if you notice a violation of semantic versioning.
429
448
 
430
449
  - Initial release
431
450
 
432
- [Unreleased]: https://github.com/kettle-dev/kettle-soup-cover/compare/v3.0.0.rc1...HEAD
451
+ [Unreleased]: https://github.com/kettle-dev/kettle-soup-cover/compare/v3.0.0.rc2...HEAD
433
452
  [2.0.2]: https://github.com/kettle-dev/kettle-soup-cover/compare/v2.0.1...v2.0.2
434
453
  [2.0.2t]: https://github.com/kettle-dev/kettle-soup-cover/releases/tag/v2.0.2
435
454
  [2.0.1]: https://github.com/kettle-rb/kettle-soup-cover/compare/v2.0.0...v2.0.1
data/README.md CHANGED
@@ -285,9 +285,12 @@ add two lines of code:
285
285
 
286
286
  ```ruby
287
287
  require "kettle-soup-cover"
288
- require "simplecov" if Kettle::Soup::Cover::DO_COV # `.simplecov` is run here!
289
- # IMPORTANT: If you are using MiniTest instead of RSpec, also do this (and not in .simplecov):
290
- # SimpleCov.external_at_exit = true
288
+ if Kettle::Soup::Cover::DO_COV
289
+ require "simplecov"
290
+ SimpleCov.start
291
+ # IMPORTANT: If you are using MiniTest instead of RSpec, also do this (and not in .simplecov):
292
+ # SimpleCov.external_at_exit = true
293
+ end
291
294
  ```
292
295
 
293
296
  #### Example: Rails & RSpec
@@ -304,7 +307,10 @@ require "spec_helper"
304
307
  ENV["RAILS_ENV"] ||= "test"
305
308
 
306
309
  # Last thing before loading the app-under-test is code coverage.
307
- require "simplecov" if Kettle::Soup::Cover::DO_COV # `.simplecov` is run here!
310
+ if Kettle::Soup::Cover::DO_COV
311
+ require "simplecov"
312
+ SimpleCov.start
313
+ end
308
314
  require File.expand_path("../config/environment", __dir__)
309
315
  ```
310
316
 
@@ -326,7 +332,8 @@ begin
326
332
  require "kettle-soup-cover"
327
333
 
328
334
  if Kettle::Soup::Cover::DO_COV
329
- require "simplecov" # `.simplecov` is run here!
335
+ require "simplecov"
336
+ SimpleCov.start
330
337
 
331
338
  # IMPORTANT: If you are using MiniTest instead of RSpec, also do this (and not in .simplecov):
332
339
  # SimpleCov.external_at_exit = true
@@ -339,12 +346,10 @@ end
339
346
 
340
347
  ### All projects
341
348
 
342
- In your `.simplecov` file, add 2 lines of code:
349
+ In your `.simplecov` file, load the shared configuration:
343
350
 
344
351
  ```ruby
345
352
  require "kettle/soup/cover/config" # 12-factor, ENV-based configuration, with good defaults!
346
- # you could do this somewhere else, up to you, but you do have to do it somewhere
347
- SimpleCov.start
348
353
  ```
349
354
 
350
355
  See [Advanced Usage](#advanced-usage) below for more info,
@@ -654,7 +659,7 @@ For most applications, prefer the [Pessimistic Version Constraint][📌pvc] with
654
659
  For example:
655
660
 
656
661
  ```ruby
657
- spec.add_dependency("kettle-soup-cover", "~> 2.0")
662
+ spec.add_dependency("kettle-soup-cover", "~> 3.0")
658
663
  ```
659
664
 
660
665
  <details markdown="1">
@@ -877,7 +882,7 @@ Thanks for RTFM. ☺️
877
882
  [📌gitmoji]: https://gitmoji.dev
878
883
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
879
884
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
880
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.247-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
885
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.258-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
881
886
  [🔐security]: https://github.com/kettle-dev/kettle-soup-cover/blob/main/SECURITY.md
882
887
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
883
888
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
data/SECURITY.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Version | Supported |
6
6
  |----------|-----------|
7
- | 2.0.latest | ✅ |
7
+ | 3.0.latest | ✅ |
8
8
 
9
9
  ## Security contact information
10
10
 
@@ -9,6 +9,10 @@
9
9
  # In your `.simplecov` file:
10
10
  #
11
11
  # require "kettle/soup/cover/config"
12
+ #
13
+ # In your `spec/spec_helper.rb`,
14
+ # after requiring SimpleCov:
15
+ #
12
16
  # SimpleCov.start
13
17
  #
14
18
 
@@ -17,7 +21,7 @@ require_relative "loaders" unless defined?(Kettle::Soup::Cover::Loaders)
17
21
  require_relative "formatters" unless defined?(Kettle::Soup::Cover) && Kettle::Soup::Cover.respond_to?(:configure_formatters!)
18
22
 
19
23
  SimpleCov.configure do
20
- track_files("lib/**/*.rb")
24
+ cover("lib/**/*.rb")
21
25
 
22
26
  command_name Kettle::Soup::Cover::Constants::COMMAND_NAME
23
27
 
@@ -25,7 +29,7 @@ SimpleCov.configure do
25
29
  primary_coverage :branch
26
30
 
27
31
  # Filters (skip these paths for coverage tracking)
28
- add_filter Kettle::Soup::Cover::Constants::FILTER_DIRS
32
+ skip Kettle::Soup::Cover::Constants::FILTER_DIRS
29
33
 
30
34
  # Setup Coverage Dir
31
35
  coverage_dir(Kettle::Soup::Cover::Constants::COVERAGE_DIR)
@@ -36,7 +40,7 @@ SimpleCov.configure do
36
40
  # Use Merging (merges coverage from multiple test runs, e.g., RSpec + Cucumber Test Results)
37
41
  # This is essential for projects that split tests into multiple rake tasks
38
42
  # (e.g., FFI specs, integration specs, unit specs run separately)
39
- use_merging(Kettle::Soup::Cover::Constants::USE_MERGING) unless Kettle::Soup::Cover::Constants::USE_MERGING.nil?
43
+ merging(Kettle::Soup::Cover::Constants::USE_MERGING) unless Kettle::Soup::Cover::Constants::USE_MERGING.nil?
40
44
  merge_timeout(Kettle::Soup::Cover::Constants::MERGE_TIMEOUT) if Kettle::Soup::Cover::Constants::MERGE_TIMEOUT.nonzero?
41
45
 
42
46
  # Fail build when missed coverage targets
@@ -4,7 +4,7 @@ module Kettle
4
4
  module Soup
5
5
  module Cover
6
6
  module Version
7
- VERSION = "3.0.0.rc1"
7
+ VERSION = "3.0.0.rc2"
8
8
  end
9
9
  VERSION = Version::VERSION # Traditional Constant Location
10
10
  end
@@ -11,6 +11,10 @@
11
11
  # In your `.simplecov` file:
12
12
  #
13
13
  # require "kettle/soup/cover/config"
14
+ #
15
+ # In your `spec/spec_helper.rb`,
16
+ # after requiring SimpleCov:
17
+ #
14
18
  # SimpleCov.start
15
19
  #
16
20
 
@@ -101,7 +105,7 @@ module Kettle
101
105
  command_name("#{Constants::COMMAND_NAME} (turbo_tests2)")
102
106
  enable_coverage(:branch)
103
107
  primary_coverage(:branch)
104
- add_filter(Constants::FILTER_DIRS)
108
+ skip(Constants::FILTER_DIRS)
105
109
  coverage_dir(File.expand_path(coverage_dir, project_root))
106
110
 
107
111
  Kettle::Soup::Cover.configure_formatters!
@@ -8,6 +8,10 @@
8
8
  # In your `.simplecov` file:
9
9
  #
10
10
  # require "kettle/soup/cover/config"
11
+ #
12
+ # In your `spec/spec_helper.rb`,
13
+ # after requiring SimpleCov:
14
+ #
11
15
  # SimpleCov.start
12
16
  #
13
17
 
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: 3.0.0.rc1
4
+ version: 3.0.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter H. Boling
@@ -404,10 +404,10 @@ licenses:
404
404
  - AGPL-3.0-only
405
405
  metadata:
406
406
  homepage_uri: https://kettle-soup-cover.galtzo.com/
407
- source_code_uri: https://github.com/kettle-dev/kettle-soup-cover/tree/v3.0.0.rc1
408
- changelog_uri: https://github.com/kettle-dev/kettle-soup-cover/blob/v3.0.0.rc1/CHANGELOG.md
407
+ source_code_uri: https://github.com/kettle-dev/kettle-soup-cover/tree/v3.0.0.rc2
408
+ changelog_uri: https://github.com/kettle-dev/kettle-soup-cover/blob/v3.0.0.rc2/CHANGELOG.md
409
409
  bug_tracker_uri: https://github.com/kettle-dev/kettle-soup-cover/issues
410
- documentation_uri: https://www.rubydoc.info/gems/kettle-soup-cover/3.0.0.rc1
410
+ documentation_uri: https://www.rubydoc.info/gems/kettle-soup-cover/3.0.0.rc2
411
411
  funding_uri: https://github.com/sponsors/pboling
412
412
  wiki_uri: https://github.com/kettle-dev/kettle-soup-cover/wiki
413
413
  news_uri: https://www.railsbling.com/tags/kettle-soup-cover
metadata.gz.sig CHANGED
Binary file