kettle-test 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: cbe1eaa80cb9dd058c0a15bc97eea4001724c2394f0de93861b91cdc84418db7
4
- data.tar.gz: d28455bcee4ebf4d7cd9ab938486fc25a9da69c77951e7c5fd46aa5702c95375
3
+ metadata.gz: 29bb20818a80f275c15b25bef0078baca3d702d7a37e192c58ef9b5cf6363f07
4
+ data.tar.gz: 9c57bdc7c6fe26a0c2f2889c07c1575042cfeb1eb4bf378669551d84d01c453f
5
5
  SHA512:
6
- metadata.gz: 3656368bcccf8c36c9471c91e76c4efeb53cd6fdc730f1f29b41ad2459a234da79994d83e214b22c25b76876e4666df75d37ee739135c0f2a74ef43a55501813
7
- data.tar.gz: 74e563353e366a54a7963487f30e2fc7ff63f0361ac301c7cca8e3846988e8fc4debe464225df8297f5a8e651d658284ffc497e3c9f9fbb9eba865ac3ad9ccf3
6
+ metadata.gz: 82aa8c0ce12527b49efc55f43ee3d6354ef14b0839b0bc234ef20779c6a6cb780ad536793fbc86229940f44671d288d43bdc902dcb64d336530bd54d7a6f20ba
7
+ data.tar.gz: de92fabfcfc30947573b6b68ce1818794256d565a06149e2b69d57e7b7327b9f45b474c039c2f0228641cebb5ebb755887178a7b06ebc3fc7062b94b3982b941
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -22,9 +22,6 @@ Please file a bug if you notice a violation of semantic versioning.
22
22
 
23
23
  ### Changed
24
24
 
25
- - Dropped support for Ruby 2.3 because `turbo_tests2` is now a runtime
26
- dependency and requires Ruby 2.4 or newer.
27
-
28
25
  ### Deprecated
29
26
 
30
27
  ### Removed
@@ -33,6 +30,31 @@ Please file a bug if you notice a violation of semantic versioning.
33
30
 
34
31
  ### Security
35
32
 
33
+ ## [2.0.1] - 2026-05-25
34
+
35
+ - TAG: [v2.0.1][2.0.1t]
36
+ - COVERAGE: 100.00% -- 91/91 lines in 15 files
37
+ - BRANCH COVERAGE: 100.00% -- 2/2 branches in 15 files
38
+ - 90.00% documented
39
+
40
+ ### Changed
41
+
42
+ - Refreshed generated project templates and CI workflows.
43
+ - Refreshed project templating and generated documentation after the 2.0.0
44
+ release.
45
+ - Pruned generated binstubs to the current curated kettle-jem set.
46
+ - Updated local modular Gemfile sibling wiring for coverage, documentation, and templating.
47
+ - Updated the coverage bundle to require `kettle-soup-cover` 1.1.3 or newer.
48
+
49
+ ### Fixed
50
+
51
+ - `kettle-test` now invokes `kettle-soup-cover`'s turbo coverage setup and
52
+ cleanup APIs directly around the default `turbo_tests2` runner, so collated
53
+ coverage artifacts are published even when the host Rakefile does not load the
54
+ optional turbo coverage rake tasks.
55
+ - `kettle-test --help` now prints usage and exits without creating
56
+ `tmp/kettle-test` logs or invoking the configured test runner.
57
+
36
58
  ## [2.0.0] - 2026-05-23
37
59
 
38
60
  - TAG: [v2.0.0][2.0.0t]
@@ -61,6 +83,8 @@ Please file a bug if you notice a violation of semantic versioning.
61
83
  current kettle-jem full template.
62
84
  - Changed the project license metadata and generated license files to
63
85
  `AGPL-3.0-only`.
86
+ - Dropped support for Ruby 2.3 because `turbo_tests2` is now a runtime
87
+ dependency and requires Ruby 2.4 or newer.
64
88
 
65
89
  ## [1.0.10] - 2026-02-06
66
90
 
@@ -232,7 +256,9 @@ Please file a bug if you notice a violation of semantic versioning.
232
256
  - silent_stream
233
257
  - timecop-rspec
234
258
 
235
- [Unreleased]: https://github.com/kettle-rb/kettle-test/compare/v2.0.0...HEAD
259
+ [Unreleased]: https://github.com/kettle-rb/kettle-test/compare/v2.0.1...HEAD
260
+ [2.0.1]: https://github.com/kettle-rb/kettle-test/compare/v2.0.0...v2.0.1
261
+ [2.0.1t]: https://github.com/kettle-rb/kettle-test/releases/tag/v2.0.1
236
262
  [2.0.0]: https://github.com/kettle-rb/kettle-test/compare/v1.0.10...v2.0.0
237
263
  [2.0.0t]: https://github.com/kettle-rb/kettle-test/releases/tag/v2.0.0
238
264
  [1.0.10]: https://github.com/kettle-rb/kettle-test/compare/v1.0.9...v1.0.10
data/CONTRIBUTING.md CHANGED
@@ -50,6 +50,22 @@ There are many Rake tasks available as well. You can see them by running:
50
50
  bin/rake -T
51
51
  ```
52
52
 
53
+ ## Code quality checks
54
+
55
+ Run the Reek task when you want a smell check that fails on current findings:
56
+
57
+ ```shell
58
+ bin/rake reek
59
+ ```
60
+
61
+ Refresh the checked-in `REEK` backlog through the rake task, not by redirecting
62
+ the raw `reek` executable output. The rake task uses the project bundle and
63
+ avoids stale generated binstubs shadowing the Reek gem executable:
64
+
65
+ ```shell
66
+ bin/rake reek:update
67
+ ```
68
+
53
69
  ## Environment Variables for Local Development
54
70
 
55
71
  Below are the primary environment variables recognized by stone_checksums (and its integrated tools). Unless otherwise noted, set boolean values to the string "true" to enable.
data/README.md CHANGED
@@ -548,7 +548,7 @@ For most applications, prefer the [Pessimistic Version Constraint][๐Ÿ“Œpvc] with
548
548
  For example:
549
549
 
550
550
  ```ruby
551
- spec.add_dependency("kettle-test", "~> 0.0")
551
+ spec.add_dependency("kettle-test", "~> 2.0")
552
552
  ```
553
553
 
554
554
  <details markdown="1">
@@ -773,7 +773,7 @@ Thanks for RTFM. โ˜บ๏ธ
773
773
  [๐Ÿคcb-pulls]: https://codeberg.org/kettle-rb/kettle-test/pulls
774
774
  [๐Ÿคcb-donate]: https://donate.codeberg.org/
775
775
  [๐Ÿคcontributing]: https://github.com/kettle-rb/kettle-test/blob/main/CONTRIBUTING.md
776
- [๐Ÿ€codecov-g]: https://codecov.io/gh/kettle-rb/kettle-test/graphs/tree.svg
776
+ [๐Ÿ€codecov-g]: https://codecov.io/gh/kettle-rb/kettle-test/graph/badge.svg
777
777
  [๐Ÿ–contrib-rocks]: https://contrib.rocks
778
778
  [๐Ÿ–contributors]: https://github.com/kettle-rb/kettle-test/graphs/contributors
779
779
  [๐Ÿ–contributors-img]: https://contrib.rocks/image?repo=kettle-rb/kettle-test
@@ -791,7 +791,7 @@ Thanks for RTFM. โ˜บ๏ธ
791
791
  [๐Ÿ“Œgitmoji]: https://gitmoji.dev
792
792
  [๐Ÿ“Œgitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
793
793
  [๐Ÿงฎkloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
794
- [๐Ÿงฎkloc-img]: https://img.shields.io/badge/KLOC-5.053-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
794
+ [๐Ÿงฎkloc-img]: https://img.shields.io/badge/KLOC-0.091-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
795
795
  [๐Ÿ”security]: https://github.com/kettle-rb/kettle-test/blob/main/SECURITY.md
796
796
  [๐Ÿ”security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
797
797
  [๐Ÿ“„copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -818,7 +818,7 @@ Thanks for RTFM. โ˜บ๏ธ
818
818
  | Package | kettle-test |
819
819
  | Description | ๐Ÿฒ Kettle::Test is a meta tool from kettle-rb to streamline testing. Acts as a shim dependency, pulling in many other dependencies, to give you OOTB productivity with a RubyGem, or Ruby app project. Configures RSpec w/ syntactic sugar to make writing tests, and testing more scenarios, easier.Configures each dependency library for proper use in the test suite, so they arrive ready to go. Fund overlooked open source projects - bottom of stack, dev/test dependencies: floss-funding.dev |
820
820
  | Homepage | https://github.com/kettle-rb/kettle-test |
821
- | Source | https://github.com/kettle-rb/kettle-test |
821
+ | Source | https://github.com/kettle-rb/kettle-test/tree/v2.0.1 |
822
822
  | License | `AGPL-3.0-only` OR `PolyForm-Small-Business-1.0.0` |
823
823
  | Funding | https://github.com/sponsors/pboling, https://issuehunt.io/u/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/kettle-rb, https://patreon.com/galtzo, https://polar.sh/pboling, https://thanks.dev/u/gh/pboling, https://tidelift.com/funding/github/rubygems/kettle-test, https://www.buymeacoffee.com/pboling |
824
824
  <!-- kettle-jem:metadata:end -->
data/exe/kettle-test.sh CHANGED
@@ -31,6 +31,43 @@
31
31
  #
32
32
  set -euo pipefail
33
33
 
34
+ # โ”€โ”€ Help โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
35
+
36
+ for arg in "$@"; do
37
+ case "$arg" in
38
+ -h|--help)
39
+ cat <<'HELP'
40
+ Usage:
41
+ bundle exec kettle-test [SPEC_ARGS...]
42
+
43
+ Runs RSpec through the configured runner and prints a compact summary.
44
+
45
+ By default this uses:
46
+ bundle exec turbo_tests2
47
+
48
+ Set KETTLE_TEST_RUNNER=rspec to force direct RSpec execution.
49
+
50
+ Options:
51
+ -h, --help Show this help and exit without running specs.
52
+
53
+ Environment:
54
+ KETTLE_TEST_RUNNER turbo_tests2, turbo, or rspec
55
+ KETTLE_TEST_TURBO_PROCESSES Passed to turbo_tests2 -n
56
+ KETTLE_TEST_TURBO_RUNTIME_LOG Passed to turbo_tests2 --runtime-log
57
+ KETTLE_TEST_TURBO_NICE Set true to pass turbo_tests2 --nice
58
+ K_SOUP_COV_DO Set true to enable coverage
59
+ K_SOUP_COV_MIN_HARD Set true to hard-fail on coverage thresholds
60
+
61
+ Examples:
62
+ bundle exec kettle-test
63
+ bundle exec kettle-test spec/my_spec.rb
64
+ K_SOUP_COV_DO=true bundle exec kettle-test
65
+ HELP
66
+ exit 0
67
+ ;;
68
+ esac
69
+ done
70
+
34
71
  # โ”€โ”€ Helpers โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
35
72
 
36
73
  RED='\033[0;31m'
@@ -58,6 +95,16 @@ TIMESTAMP="$(date -u +%Y%m%d-%H%M%S)"
58
95
  RUNNER="${KETTLE_TEST_RUNNER:-turbo_tests2}"
59
96
  LOG_FILE="$LOG_DIR/${RUNNER}-${TIMESTAMP}-$$.log"
60
97
 
98
+ run_kettle_soup_cover_hook() {
99
+ local hook="$1"
100
+
101
+ if [ "${K_SOUP_COV_DO:-false}" != "true" ]; then
102
+ return 0
103
+ fi
104
+
105
+ bundle exec ruby -e "begin; require 'kettle/soup/cover'; Kettle::Soup::Cover.${hook} if Kettle::Soup::Cover.turbo_tests_coverage?; rescue LoadError; end"
106
+ }
107
+
61
108
  # โ”€โ”€ Run specs โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
62
109
  # Run via Bundler so the project's own Gemfile is always used.
63
110
  # We tee to the log so the full output is preserved even if the user interrupts.
@@ -68,6 +115,7 @@ cd "$PROJECT_ROOT"
68
115
  case "$RUNNER" in
69
116
  turbo|turbo_tests2)
70
117
  export PARALLEL_TEST_FIRST_IS_1="${PARALLEL_TEST_FIRST_IS_1:-true}"
118
+ run_kettle_soup_cover_hook "clear_turbo_tests_coverage_dir!"
71
119
  command=(bundle exec turbo_tests2)
72
120
  if [ -n "${KETTLE_TEST_TURBO_PROCESSES:-}" ]; then
73
121
  command+=(-n "$KETTLE_TEST_TURBO_PROCESSES")
@@ -92,6 +140,12 @@ esac
92
140
 
93
141
  "${command[@]}" 2>&1 | tee "$LOG_FILE" || rspec_exit=$?
94
142
 
143
+ case "$RUNNER" in
144
+ turbo|turbo_tests2)
145
+ run_kettle_soup_cover_hook "collate_turbo_tests_coverage!" 2>&1 | tee -a "$LOG_FILE" || rspec_exit=$?
146
+ ;;
147
+ esac
148
+
95
149
  # โ”€โ”€ Parse output โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
96
150
 
97
151
  LOG="$LOG_FILE"
@@ -3,7 +3,7 @@
3
3
  module Kettle
4
4
  module Test
5
5
  module Version
6
- VERSION = "2.0.0"
6
+ VERSION = "2.0.1"
7
7
  end
8
8
  VERSION = Version::VERSION # Traditional Constant Location
9
9
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kettle-test
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
  - Peter H. Boling
@@ -428,10 +428,10 @@ licenses:
428
428
  - PolyForm-Small-Business-1.0.0
429
429
  metadata:
430
430
  homepage_uri: https://kettle-test.galtzo.com
431
- source_code_uri: https://github.com/kettle-rb/kettle-test/tree/v2.0.0
432
- changelog_uri: https://github.com/kettle-rb/kettle-test/blob/v2.0.0/CHANGELOG.md
431
+ source_code_uri: https://github.com/kettle-rb/kettle-test/tree/v2.0.1
432
+ changelog_uri: https://github.com/kettle-rb/kettle-test/blob/v2.0.1/CHANGELOG.md
433
433
  bug_tracker_uri: https://github.com/kettle-rb/kettle-test/issues
434
- documentation_uri: https://www.rubydoc.info/gems/kettle-test/2.0.0
434
+ documentation_uri: https://www.rubydoc.info/gems/kettle-test/2.0.1
435
435
  funding_uri: https://github.com/sponsors/pboling
436
436
  wiki_uri: https://github.com/kettle-rb/kettle-test/wiki
437
437
  news_uri: https://www.railsbling.com/tags/kettle-test
@@ -460,7 +460,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
460
460
  - !ruby/object:Gem::Version
461
461
  version: '0'
462
462
  requirements: []
463
- rubygems_version: 4.0.11
463
+ rubygems_version: 4.0.10
464
464
  specification_version: 4
465
465
  summary: "\U0001F372 A kettle-rb meta tool to streamline testing"
466
466
  test_files: []
metadata.gz.sig CHANGED
Binary file