kettle-dev 1.1.22 → 1.1.24
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/.codecov.yml.example +14 -0
- data/.github/workflows/current.yml +8 -9
- data/.github/workflows/current.yml.example +89 -0
- data/.junie/guidelines.md +4 -2
- data/.junie/guidelines.md.example +141 -0
- data/CHANGELOG.md +37 -1
- data/README.md +1 -1
- data/README.md.example +2 -2
- data/Rakefile.example +1 -1
- data/kettle-dev.gemspec.example +5 -6
- data/lib/kettle/dev/gem_spec_reader.rb +22 -25
- data/lib/kettle/dev/open_collective_config.rb +60 -0
- data/lib/kettle/dev/readme_backers.rb +6 -12
- data/lib/kettle/dev/tasks/template_task.rb +5 -0
- data/lib/kettle/dev/template_helpers.rb +45 -1
- data/lib/kettle/dev/version.rb +1 -1
- data/lib/kettle/dev.rb +4 -0
- data/sig/kettle/dev/open_collective_config.rbs +8 -0
- data/sig/kettle/dev/template_helpers.rbs +3 -3
- data/sig/kettle/dev.rbs +1 -0
- data.tar.gz.sig +0 -0
- metadata +20 -4
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d04b8ab4f92685e809649cfa00e1272adb8b3da37ac68b24034259f7a7e7052b
|
4
|
+
data.tar.gz: ab03c72bf61c27941a1592c5e7bd47f0c4fc0211bc2d04280b809a6ba4d1d0b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c386f8d38cbf5c6b87f54a56d133cf7d29f5265c1dd2279a27825a3c149a9d23293bbf71e9e359de952f812d00481c603255d8d7f1512e27edc9f14bedeca6
|
7
|
+
data.tar.gz: 0e9766d1e8746e056d1faece88d7df6542122af64d9cc789229b7881badca3c28b31f18acdc4eb4fbc080ad583000d6e906541f81867dfb8181732e828609ae1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -45,15 +45,14 @@ jobs:
|
|
45
45
|
rubygems: latest
|
46
46
|
bundler: latest
|
47
47
|
|
48
|
-
|
49
|
-
#
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
bundler: default
|
48
|
+
# Turn back on once allow-failures is a feature of GHA.
|
49
|
+
# # truffleruby-24.1 (targets Ruby 3.3 compatibility)
|
50
|
+
# - ruby: "truffleruby"
|
51
|
+
# appraisal: "current"
|
52
|
+
# exec_cmd: "rake test"
|
53
|
+
# gemfile: "Appraisal.root"
|
54
|
+
# rubygems: default
|
55
|
+
# bundler: default
|
57
56
|
|
58
57
|
# jruby-10.0 (targets Ruby 3.4 compatibility)
|
59
58
|
- ruby: "jruby"
|
@@ -0,0 +1,89 @@
|
|
1
|
+
# Targets the evergreen latest release of ruby, truffleruby, and jruby
|
2
|
+
name: Current
|
3
|
+
|
4
|
+
permissions:
|
5
|
+
contents: read
|
6
|
+
|
7
|
+
env:
|
8
|
+
K_SOUP_COV_DO: false
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches:
|
13
|
+
- 'main'
|
14
|
+
- '*-stable'
|
15
|
+
tags:
|
16
|
+
- '!*' # Do not execute on tags
|
17
|
+
pull_request:
|
18
|
+
branches:
|
19
|
+
- '*'
|
20
|
+
# Allow manually triggering the workflow.
|
21
|
+
workflow_dispatch:
|
22
|
+
|
23
|
+
# Cancels all previous workflow runs for the same branch that have not yet completed.
|
24
|
+
concurrency:
|
25
|
+
# The concurrency group contains the workflow name and the branch name.
|
26
|
+
group: "${{ github.workflow }}-${{ github.ref }}"
|
27
|
+
cancel-in-progress: true
|
28
|
+
|
29
|
+
jobs:
|
30
|
+
test:
|
31
|
+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
|
32
|
+
name: Specs ${{ matrix.ruby }}@${{ matrix.appraisal }}
|
33
|
+
runs-on: ubuntu-latest
|
34
|
+
continue-on-error: ${{ matrix.experimental || endsWith(matrix.ruby, 'head') }}
|
35
|
+
env: # $BUNDLE_GEMFILE must be set at job level, so it is set for all steps
|
36
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}.gemfile
|
37
|
+
strategy:
|
38
|
+
matrix:
|
39
|
+
include:
|
40
|
+
# Ruby 3.4
|
41
|
+
- ruby: "ruby"
|
42
|
+
appraisal: "current"
|
43
|
+
exec_cmd: "rake test"
|
44
|
+
gemfile: "Appraisal.root"
|
45
|
+
rubygems: latest
|
46
|
+
bundler: latest
|
47
|
+
|
48
|
+
# truffleruby-24.1 (targets Ruby 3.3 compatibility)
|
49
|
+
- ruby: "truffleruby"
|
50
|
+
appraisal: "current"
|
51
|
+
exec_cmd: "rake test"
|
52
|
+
gemfile: "Appraisal.root"
|
53
|
+
rubygems: default
|
54
|
+
bundler: default
|
55
|
+
|
56
|
+
# jruby-10.0 (targets Ruby 3.4 compatibility)
|
57
|
+
- ruby: "jruby"
|
58
|
+
appraisal: "current"
|
59
|
+
exec_cmd: "rake test"
|
60
|
+
gemfile: "Appraisal.root"
|
61
|
+
rubygems: default
|
62
|
+
bundler: default
|
63
|
+
|
64
|
+
steps:
|
65
|
+
- name: Checkout
|
66
|
+
if: ${{ !(env.ACT && startsWith(matrix.ruby, 'jruby')) }}
|
67
|
+
uses: actions/checkout@v5
|
68
|
+
|
69
|
+
- name: Setup Ruby & RubyGems
|
70
|
+
if: ${{ !(env.ACT && startsWith(matrix.ruby, 'jruby')) }}
|
71
|
+
uses: ruby/setup-ruby@v1
|
72
|
+
with:
|
73
|
+
ruby-version: ${{ matrix.ruby }}
|
74
|
+
rubygems: ${{ matrix.rubygems }}
|
75
|
+
bundler: ${{ matrix.bundler }}
|
76
|
+
bundler-cache: false
|
77
|
+
|
78
|
+
# Raw `bundle` will use the BUNDLE_GEMFILE set to matrix.gemfile (i.e. Appraisal.root)
|
79
|
+
# We need to do this first to get appraisal installed.
|
80
|
+
# NOTE: This does not use the primary Gemfile at all.
|
81
|
+
- name: Install Root Appraisal
|
82
|
+
if: ${{ !(env.ACT && startsWith(matrix.ruby, 'jruby')) }}
|
83
|
+
run: bundle
|
84
|
+
- name: Appraisal for ${{ matrix.ruby }}@${{ matrix.appraisal }}
|
85
|
+
if: ${{ !(env.ACT && startsWith(matrix.ruby, 'jruby')) }}
|
86
|
+
run: bundle exec appraisal ${{ matrix.appraisal }} bundle
|
87
|
+
- name: Tests for ${{ matrix.ruby }}@${{ matrix.appraisal }} via ${{ matrix.exec_cmd }}
|
88
|
+
if: ${{ !(env.ACT && startsWith(matrix.ruby, 'jruby')) }}
|
89
|
+
run: bundle exec appraisal ${{ matrix.appraisal }} bundle exec ${{ matrix.exec_cmd }}
|
data/.junie/guidelines.md
CHANGED
@@ -12,7 +12,8 @@ This document captures project-specific knowledge to streamline setup, testing,
|
|
12
12
|
- See .env.local.example for an example of what to put in .env.local.
|
13
13
|
- See CONTRIBUTING.md for details on how to set up your local environment.
|
14
14
|
- Ruby and Bundler
|
15
|
-
- Runtime supports
|
15
|
+
- Runtime supports Ruby >= 1.9.2.
|
16
|
+
- Development tooling targets Ruby >= 2.3 (minimum supported by setup-ruby GHA).
|
16
17
|
- Use a recent Ruby (>= 3.4 recommended) for fastest setup and to exercise modern coverage behavior.
|
17
18
|
- Install dependencies via Bundler in project root:
|
18
19
|
- bundle install
|
@@ -89,7 +90,7 @@ This document captures project-specific knowledge to streamline setup, testing,
|
|
89
90
|
- Place new specs under spec/ mirroring lib/ structure where possible. Do not require "spec_helper" at the top of spec files, as it is automatically loaded by .rspec.
|
90
91
|
- If your code relies on environment variables that drive activation (see "Activation env vars" below), prefer using rspec-stubbed_env:
|
91
92
|
- it does not support stubbing with blocks, but it does automatically clean up after itself.
|
92
|
-
-
|
93
|
+
- the below config is included in all spec scenarios by the kettle-test gem, so no need to do it again; it is here for reference:
|
93
94
|
include_context 'with stubbed env'
|
94
95
|
- in a before hook, or in an example:
|
95
96
|
stub_env("FLOSS_FUNDING_MY_NS" => "Free-as-in-beer")
|
@@ -133,6 +134,7 @@ Notes
|
|
133
134
|
- Coverage reports: NEVER review the HTML report. Use JSON (preferred), XML, LCOV, or RCOV. For this project, always run tests with K_SOUP_COV_FORMATTERS set to "json".
|
134
135
|
- Do NOT modify .envrc in tasks; when running tests locally or in scripts, manually prefix each run, e.g.: K_SOUP_COV_FORMATTERS="json" bin/rspec
|
135
136
|
- For all the kettle-soup-cover options, see .envrc and find the K_SOUP_COV_* env vars.
|
137
|
+
- NEVER modify ENV variables in tests directly. Always use the stub_env macro from the rspec-stubbed_env gem (more details in the testing section above).
|
136
138
|
|
137
139
|
Important documentation rules
|
138
140
|
- Do NOT edit files under docs/ manually; they are generated by `bundle exec rake yard` as part of the default rake task.
|
@@ -0,0 +1,141 @@
|
|
1
|
+
Project: kettle-dev — Development Guidelines (for advanced contributors)
|
2
|
+
|
3
|
+
This document captures project-specific knowledge to streamline setup, testing, and ongoing development.
|
4
|
+
|
5
|
+
1. Build and configuration
|
6
|
+
- ENV is controlled by `direnv`.
|
7
|
+
- Two files are loaded:
|
8
|
+
- .envrc — environment variables for local development, committed to source control
|
9
|
+
- .env.local — environment variables that are not committed to source control. These setting override .envrc.
|
10
|
+
- Run `direnv allow` after making changes to .envrc or .env.local.
|
11
|
+
- See .envrc for details.
|
12
|
+
- See .env.local.example for an example of what to put in .env.local.
|
13
|
+
- See CONTRIBUTING.md for details on how to set up your local environment.
|
14
|
+
- Ruby and Bundler
|
15
|
+
- Runtime supports Ruby >= {K_D_MIN_RUBY}
|
16
|
+
- Development tooling targets Ruby >= {K_D_MIN_DEV_RUBY} (minimum supported by setup-ruby GHA).
|
17
|
+
- Use a recent Ruby (>= 3.4 recommended) for fastest setup and to exercise modern coverage behavior.
|
18
|
+
- Install dependencies via Bundler in project root:
|
19
|
+
- bundle install
|
20
|
+
- Rake tasks (preferred entry points)
|
21
|
+
- The Rakefile wires common workflows. Useful targets:
|
22
|
+
- rake spec — run RSpec suite (also aliased via rake test)
|
23
|
+
- rake coverage — run specs with coverage locally and open a report (requires kettle-soup-cover)
|
24
|
+
- rake rubocop_gradual:autocorrect — RuboCop-LTS Gradual, with autocorrect as default task
|
25
|
+
- rake reek and rake reek:update — code smell checks and persisted snapshots in REEK
|
26
|
+
- rake yard — generate YARD docs for lib and selected extra files
|
27
|
+
- rake bundle:audit and rake bundle:audit:update — dependency vulnerability checks
|
28
|
+
- rake build / rake release — gem build/release helper tasks (Bundler + stone_checksums)
|
29
|
+
- The default rake target runs a curated set of tasks; this varies for CI vs local (see CI env var logic in Rakefile).
|
30
|
+
- Always run the default rake task prior commits, and after making changes to lib/ code, or *.md files, to allow the linter to autocorrect, and to generate updated documentation.
|
31
|
+
- Coverage orchestration
|
32
|
+
- Coverage is controlled by kettle-soup-cover and .simplecov. Thresholds (line and branch) are enforced and can fail the process.
|
33
|
+
- Thresholds are primarily controlled by environment variables (see .simplecov and comments therein) typically loaded via direnv (.envrc) and CI workflow (.github/workflows/coverage.yml). When running only a test subset, thresholds may fail; see Testing below.
|
34
|
+
- Gem signing (for releases)
|
35
|
+
- Signing is enabled unless SKIP_GEM_SIGNING is set. If enabled and certificates are present (certs/<USER>.pem), gem build will attempt to sign using ~/.ssh/gem-private_key.pem.
|
36
|
+
- See CONTRIBUTING.md for releasing details; use SKIP_GEM_SIGNING when building in environments without the private key.
|
37
|
+
- Important for local testing (to avoid hanging prompts): ALWAYS skip signing when building locally to test the packaging or install process. Without the private key password, the build will wait indefinitely at a signing prompt.
|
38
|
+
- One-off commands (recommended):
|
39
|
+
- SKIP_GEM_SIGNING=true gem build kettle-dev.gemspec
|
40
|
+
- SKIP_GEM_SIGNING=true bundle exec rake build
|
41
|
+
- SKIP_GEM_SIGNING=true bundle exec rake release # only to test workflow; do not actually push
|
42
|
+
- direnv option (optional, not recommended globally): add `export SKIP_GEM_SIGNING=true` to your .env.local when you know you won’t be signing in this environment.
|
43
|
+
- Remove or unset SKIP_GEM_SIGNING when performing a real, signed release in the environment that has the private key.
|
44
|
+
|
45
|
+
2. Testing
|
46
|
+
- Framework and helpers
|
47
|
+
- RSpec 3.13 with custom spec/spec_helper.rb configuration:
|
48
|
+
- silent_stream: STDOUT is silenced by default for examples to keep logs clean.
|
49
|
+
- To explicitly test console output, tag the example or group with :check_output.
|
50
|
+
- Global state hygiene: Around each example, FlossFunding.namespaces and FlossFunding.silenced are snapshotted and restored to prevent cross-test pollution.
|
51
|
+
- DEBUG toggle: Set DEBUG=true to require 'debug' and avoid silencing output during your run.
|
52
|
+
- ENV seeding: The suite sets ENV["FLOSS_FUNDING_FLOSS_FUNDING"] = "Free-as-in-beer" so that the library’s own namespace is considered activated (avoids noisy warnings).
|
53
|
+
- Coverage: kettle-soup-cover integrates SimpleCov; .simplecov is invoked from spec_helper when enabled by Kettle::Soup::Cover::DO_COV, which is controlled by K_SOUP_COV_DO being set to true / false.
|
54
|
+
- RSpec.describe usage:
|
55
|
+
- Use `describe "#<method_name>"` to contain a block of specs that test instance method behavior.
|
56
|
+
- Use `describe "::<method_name>"` to contain a block of specs that test class method behavior.
|
57
|
+
- Do not use `describe ".<method_name>"` because the dot is ambiguous w.r.t instance vs. class methods.
|
58
|
+
- When adding new code or modifying existing code always add tests to cover the updated behavior, including branches, and different types of expected and unexpected inputs.
|
59
|
+
- Additional test utilities:
|
60
|
+
- rspec-stubbed_env: Use stub_env to control ENV safely within examples.
|
61
|
+
- timecop-rspec: Time manipulation is available, and is setup by kettle-test.
|
62
|
+
- To freeze time use `freeze: Time.new(*args)` tag on an example or group
|
63
|
+
- Running tests (verified)
|
64
|
+
- Full suite (recommended to satisfy coverage thresholds):
|
65
|
+
- bin/rspec
|
66
|
+
- or: bundle exec rspec
|
67
|
+
- or: bundle exec rake spec
|
68
|
+
- Progress format (less verbose):
|
69
|
+
- bundle exec rspec --format progress
|
70
|
+
- Focused runs
|
71
|
+
- You can run a single file or example, but note: coverage thresholds need to be disabled with K_SOUP_COV_MIN_HARD=false
|
72
|
+
- Example: K_SOUP_COV_MIN_HARD=false bin/rspec spec/kettle-dev/class_spec.rb:42
|
73
|
+
- Output visibility
|
74
|
+
- To see STDOUT from the code under test, use the :check_output tag on the example or group.
|
75
|
+
Example:
|
76
|
+
RSpec.describe "output", :check_output do
|
77
|
+
it "prints" do
|
78
|
+
puts "This output should be visible"
|
79
|
+
expect(true).to be true
|
80
|
+
end
|
81
|
+
end
|
82
|
+
- Alternatively, run with DEBUG=true to disable silencing for the entire run.
|
83
|
+
- During a spec run, the presence of output about missing activation keys is often expected, since it is literally what this library is for. It only indicates a failure if the spec expected all activation keys to be present, and not all specs do.
|
84
|
+
- Adding new tests (guidelines)
|
85
|
+
- Organize specs by class/module. Do not create per-task umbrella spec files; add examples to the existing spec for the class/module under test, or create a new spec file for that class/module if one does not exist. Only create a standalone scenario spec when it intentionally spans multiple classes for an integration/benchmark scenario (e.g., bench_integration_spec), and name it accordingly.
|
86
|
+
- Spec file names must map to a real class or module under lib/ (mirror the path). Do not introduce specs for non-existent classes or ad-hoc names (e.g., avoid template_helpers_replacements_spec.rb when testing Kettle::Dev::TemplateHelpers; add those examples to template_helpers_spec.rb).
|
87
|
+
- REQUIRED: Provide unit tests for every class, module, constant, and public method. Place them in spec/ mirroring the path under lib/. When a file under lib/ is added or changed, ensure a corresponding spec file exists/updated for it.
|
88
|
+
- Add tests for all public methods and add contexts for variations of their arguments, and arity.
|
89
|
+
- This repository targets near-100% coverage of its public API; when you add new public methods, rake tasks to a rakelib, or config behavior, add or update specs accordingly.
|
90
|
+
- Place new specs under spec/ mirroring lib/ structure where possible. Do not require "spec_helper" at the top of spec files, as it is automatically loaded by .rspec.
|
91
|
+
- If your code relies on environment variables that drive activation (see "Activation env vars" below), prefer using rspec-stubbed_env:
|
92
|
+
- it does not support stubbing with blocks, but it does automatically clean up after itself.
|
93
|
+
- the below config is included in all spec scenarios by the kettle-test gem, so no need to do it again; it is here for reference:
|
94
|
+
include_context 'with stubbed env'
|
95
|
+
- in a before hook, or in an example:
|
96
|
+
stub_env("FLOSS_FUNDING_MY_NS" => "Free-as-in-beer")
|
97
|
+
# example code continues
|
98
|
+
- If your spec needs to assert on console output, tag it with :check_output. By default, STDOUT is silenced.
|
99
|
+
- Use Timecop for deterministic time-sensitive behavior as needed (require config/timecop is already done by spec_helper).
|
100
|
+
|
101
|
+
- Types and documentation
|
102
|
+
- REQUIRED: All public APIs must have RBS type signatures checked into sig/ under the corresponding path. When you add a new public method or change a signature, update the matching .rbs file.
|
103
|
+
- REQUIRED: All public methods must include inline YARD docs with @param/@return (and @yield/@option where applicable). Generate docs with `bundle exec rake yard` to verify formatting.
|
104
|
+
|
105
|
+
3. Additional development information
|
106
|
+
- Code style and static analysis
|
107
|
+
- RuboCop-LTS (Gradual) is integrated. Use:
|
108
|
+
- bundle exec rake rubocop_gradual:autocorrect
|
109
|
+
- bundle exec rake rubocop_gradual:force_update # only run if there are still linting violations the default rake task, which includes autocorrect locally, or a standalone autocorrect task, has run, and failed, and the violations won't be fixed
|
110
|
+
- Reek is configured to scan {lib,spec,tests}/**/*.rb. Use:
|
111
|
+
- bundle exec rake reek
|
112
|
+
- bundle exec rake reek:update # writes current output to REEK, fails on smells
|
113
|
+
- Keep REEK file updated with intentional smells snapshot when appropriate (e.g., after refactors).
|
114
|
+
- Locally, the default rake task includes reek:update.
|
115
|
+
- Documentation
|
116
|
+
- Generate YARD docs with: bundle exec rake yard. It includes lib/**/*.rb and extra docs like README.md, CHANGELOG.md, RUBOCOP.md, REEK, etc.
|
117
|
+
- Appraisal and multi-gemfile testing
|
118
|
+
- appraisal2 is present to manage multiple dependency sets; see Appraisals and gemfiles/modular/*.gemfile. If you need to verify against alternate dependency versions, use Appraisal to install and run rspec under those Gemfiles.
|
119
|
+
- You can run a single github workflow by running `act -W /github/workflows/<workflow name>.yml`
|
120
|
+
- CI/local differences and defaults
|
121
|
+
- The Rakefile adjusts default tasks based on CI env var. Locally, rake default may include coverage, reek:update, yard, etc. On CI, it tends to just run spec.
|
122
|
+
|
123
|
+
Quick start
|
124
|
+
1) bundle install
|
125
|
+
2) K_SOUP_COV_FORMATTERS="json" bin/rspec (generates a JSON coverage report with both line and branch data in coverage/. Use this single format.)
|
126
|
+
3) Static analysis: bundle exec rake rubocop_gradual:check && bundle exec rake reek
|
127
|
+
|
128
|
+
Notes
|
129
|
+
- ALWAYS Run bundle exec rake rubocop_gradual:autocorrect as the final step before completing a task, to lint and autocorrect any remaining issues. Then if there are new lint failures, attempt to correct them manually.
|
130
|
+
- NEVER run vanilla rubocop, as it won't handle the linting config properly. Always run rubocop_gradual:autocorrect or rubocop_gradual.
|
131
|
+
- Running only a subset of specs is supported but in order to bypass the hard failure due to coverage thresholds, you need to run with K_SOUP_COV_MIN_HARD=false.
|
132
|
+
- When adding code that writes to STDOUT, remember most specs silence output unless tagged with :check_output or DEBUG=true.
|
133
|
+
- Completion criteria after changes: Only consider your change “done” when the relevant examples pass, as verified by .rspec_status. Do not rely on STDOUT impressions; consult .rspec_status (and example IDs) to confirm green results for the affected files/examples. If you ran a subset, re-run the full suite before finalizing to restore coverage thresholds.
|
134
|
+
- Coverage reports: NEVER review the HTML report. Use JSON (preferred), XML, LCOV, or RCOV. For this project, always run tests with K_SOUP_COV_FORMATTERS set to "json".
|
135
|
+
- Do NOT modify .envrc in tasks; when running tests locally or in scripts, manually prefix each run, e.g.: K_SOUP_COV_FORMATTERS="json" bin/rspec
|
136
|
+
- For all the kettle-soup-cover options, see .envrc and find the K_SOUP_COV_* env vars.
|
137
|
+
- NEVER modify ENV variables in tests directly. Always use the stub_env macro from the rspec-stubbed_env gem (more details in the testing section above).
|
138
|
+
|
139
|
+
Important documentation rules
|
140
|
+
- Do NOT edit files under docs/ manually; they are generated by `bundle exec rake yard` as part of the default rake task.
|
141
|
+
- Clarification: Executable scripts provided by this gem (exe/* and installed binstubs) work when the gem is installed as a system gem (gem install kettle-dev). However, the Rake tasks provided by this gem require kettle-dev to be declared as a development dependency in the host project's Gemfile and loaded in the project's Rakefile.
|
data/CHANGELOG.md
CHANGED
@@ -30,6 +30,38 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
30
30
|
|
31
31
|
### Security
|
32
32
|
|
33
|
+
## [1.1.24] - 2025-09-17
|
34
|
+
|
35
|
+
- TAG: [v1.1.24][1.1.24t]
|
36
|
+
- COVERAGE: 96.85% -- 3694/3814 lines in 26 files
|
37
|
+
- BRANCH COVERAGE: 81.81% -- 1520/1858 branches in 26 files
|
38
|
+
- 78.21% documented
|
39
|
+
|
40
|
+
### Added
|
41
|
+
|
42
|
+
- Replace template tokens with real minimum ruby versions for runtime and development
|
43
|
+
|
44
|
+
### Changed
|
45
|
+
|
46
|
+
- consolidated specs
|
47
|
+
|
48
|
+
### Fixed
|
49
|
+
|
50
|
+
- All .example files are now included in the gem package
|
51
|
+
- Leaky state in specs
|
52
|
+
|
53
|
+
## [1.1.23] - 2025-09-16
|
54
|
+
|
55
|
+
- TAG: [v1.1.23][1.1.23t]
|
56
|
+
- COVERAGE: 96.71% -- 3673/3798 lines in 26 files
|
57
|
+
- BRANCH COVERAGE: 81.57% -- 1509/1850 branches in 26 files
|
58
|
+
- 77.97% documented
|
59
|
+
|
60
|
+
### Fixed
|
61
|
+
|
62
|
+
- GemSpecReader, ReadmeBackers now use shared OpenCollectiveConfig
|
63
|
+
- fixes broken opencollective config handling in GemSPecReader
|
64
|
+
|
33
65
|
## [1.1.22] - 2025-09-16
|
34
66
|
|
35
67
|
- TAG: [v1.1.22][1.1.22t]
|
@@ -937,7 +969,11 @@ Please file a bug if you notice a violation of semantic versioning.
|
|
937
969
|
- Selecting will run the selected workflow via `act`
|
938
970
|
- This may move to its own gem in the future.
|
939
971
|
|
940
|
-
[Unreleased]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.
|
972
|
+
[Unreleased]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.24...HEAD
|
973
|
+
[1.1.24]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.23...v1.1.24
|
974
|
+
[1.1.24t]: https://github.com/kettle-rb/kettle-dev/releases/tag/v1.1.24
|
975
|
+
[1.1.23]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.22...v1.1.23
|
976
|
+
[1.1.23t]: https://github.com/kettle-rb/kettle-dev/releases/tag/v1.1.23
|
941
977
|
[1.1.22]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.21...v1.1.22
|
942
978
|
[1.1.22t]: https://github.com/kettle-rb/kettle-dev/releases/tag/v1.1.22
|
943
979
|
[1.1.21]: https://github.com/kettle-rb/kettle-dev/compare/v1.1.20...v1.1.21
|
data/README.md
CHANGED
@@ -916,7 +916,7 @@ Thanks for RTFM. ☺️
|
|
916
916
|
[📌gitmoji]:https://gitmoji.dev
|
917
917
|
[📌gitmoji-img]:https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
918
918
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
919
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-3.
|
919
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-3.814-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
920
920
|
[🔐security]: SECURITY.md
|
921
921
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
922
922
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/README.md.example
CHANGED
@@ -41,7 +41,7 @@
|
|
41
41
|
|
42
42
|
### Compatibility
|
43
43
|
|
44
|
-
Compatible with MRI Ruby
|
44
|
+
Compatible with MRI Ruby {K_D_MIN_RUBY}+, and concordant releases of JRuby, and TruffleRuby.
|
45
45
|
|
46
46
|
| 🚚 _Amazing_ test matrix was brought to you by | 🔎 appraisal2 🔎 and the color 💚 green 💚 |
|
47
47
|
|------------------------------------------------|--------------------------------------------------------|
|
@@ -513,7 +513,7 @@ Thanks for RTFM. ☺️
|
|
513
513
|
[📌gitmoji]:https://gitmoji.dev
|
514
514
|
[📌gitmoji-img]:https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
|
515
515
|
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
516
|
-
[🧮kloc-img]: https://img.shields.io/badge/KLOC-3.
|
516
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-3.814-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
517
517
|
[🔐security]: SECURITY.md
|
518
518
|
[🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
|
519
519
|
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
data/Rakefile.example
CHANGED
data/kettle-dev.gemspec.example
CHANGED
@@ -95,7 +95,7 @@ Gem::Specification.new do |spec|
|
|
95
95
|
]
|
96
96
|
spec.require_paths = ["lib"]
|
97
97
|
spec.bindir = "exe"
|
98
|
-
# files
|
98
|
+
# Listed files are the relative paths from bindir above.
|
99
99
|
spec.executables = []
|
100
100
|
|
101
101
|
# Utilities
|
@@ -105,18 +105,17 @@ Gem::Specification.new do |spec|
|
|
105
105
|
# visibility and discoverability on RubyGems.org.
|
106
106
|
# However, development dependencies in gemspec will install on
|
107
107
|
# all versions of Ruby that will run in CI.
|
108
|
-
# This gem, and its gemspec runtime dependencies, will install on Ruby down to
|
109
|
-
# This gem, and its gemspec development dependencies, will install on Ruby down to
|
110
|
-
# This is because in CI easy installation of Ruby, via setup-ruby, is for >= 2.3.
|
108
|
+
# This gem, and its gemspec runtime dependencies, will install on Ruby down to {K_D_MIN_RUBY}.
|
109
|
+
# This gem, and its gemspec development dependencies, will install on Ruby down to {K_D_MIN_DEV_RUBY}.
|
111
110
|
# Thus, dev dependencies in gemspec must have
|
112
111
|
#
|
113
|
-
# required_ruby_version ">=
|
112
|
+
# required_ruby_version ">= {K_D_MIN_DEV_RUBY}" (or lower)
|
114
113
|
#
|
115
114
|
# Development dependencies that require strictly newer Ruby versions should be in a "gemfile",
|
116
115
|
# and preferably a modular one (see gemfiles/modular/*.gemfile).
|
117
116
|
|
118
117
|
# Dev, Test, & Release Tasks
|
119
|
-
spec.add_development_dependency("{KETTLE|DEV|GEM}", "~> 1.1")
|
118
|
+
spec.add_development_dependency("{KETTLE|DEV|GEM}", "~> 1.1") # ruby >= 2.3.0
|
120
119
|
|
121
120
|
# Security
|
122
121
|
spec.add_development_dependency("bundler-audit", "~> 0.9.2") # ruby >= 2.0.0
|
@@ -97,40 +97,37 @@ module Kettle
|
|
97
97
|
entrypoint_require = gem_name.to_s.tr("-", "/")
|
98
98
|
gem_shield = gem_name.to_s.gsub("-", "--").gsub("_", "__")
|
99
99
|
|
100
|
-
# Funding org
|
101
|
-
#
|
102
|
-
|
103
|
-
|
100
|
+
# Funding org (Open Collective handle) detection.
|
101
|
+
# Precedence:
|
102
|
+
# 1) ENV["FUNDING_ORG"] when set:
|
103
|
+
# - value "false" (any case) disables funding (nil)
|
104
|
+
# - otherwise use the value verbatim
|
105
|
+
# 2) OpenCollectiveConfig.handle(required: false)
|
106
|
+
# Be lenient: allow nil when not discoverable, with a concise warning.
|
104
107
|
begin
|
105
|
-
|
106
|
-
if
|
107
|
-
funding_org =
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
if File.file?(oc_path)
|
112
|
-
txt = File.read(oc_path)
|
113
|
-
funding_org = if (m = txt.match(/\borg:\s*([\w\-]+)/i))
|
114
|
-
m[1].to_s
|
115
|
-
else
|
116
|
-
""
|
117
|
-
end
|
108
|
+
env_funding = ENV["FUNDING_ORG"]
|
109
|
+
if env_funding && !env_funding.to_s.strip.empty?
|
110
|
+
funding_org = if env_funding.to_s.strip.casecmp("false").zero?
|
111
|
+
nil
|
112
|
+
else
|
113
|
+
env_funding.to_s
|
118
114
|
end
|
115
|
+
else
|
116
|
+
# Preflight: if a YAML exists under the provided root, attempt to read it here so
|
117
|
+
# unexpected file IO errors surface within this rescue block (see specs).
|
118
|
+
oc_path = OpenCollectiveConfig.yaml_path(root)
|
119
|
+
File.read(oc_path) if File.file?(oc_path)
|
119
120
|
|
120
|
-
|
121
|
+
funding_org = OpenCollectiveConfig.handle(required: false, root: root)
|
121
122
|
if funding_org.to_s.strip.empty?
|
122
|
-
|
123
|
-
end
|
124
|
-
|
125
|
-
# Be lenient: if funding_org cannot be determined, do not raise — leave it nil and warn.
|
126
|
-
if funding_org.to_s.empty?
|
127
|
-
Kernel.warn("kettle-dev: Could not determine funding org.\n - Options:\n * Set ENV['FUNDING_ORG'] to your funding handle (e.g., 'opencollective-handle').\n * Or set ENV['OPENCOLLECTIVE_HANDLE'].\n * Or add .opencollective.yml with: org: <handle>\n * Or bypass by setting ENV['FUNDING_ORG']=false for gems without funding.")
|
123
|
+
Kernel.warn("kettle-dev: Could not determine funding org.\n - Options:\n * Set ENV['FUNDING_ORG'] to your funding handle, or 'false' to disable.\n * Or set ENV['OPENCOLLECTIVE_HANDLE'].\n * Or add .opencollective.yml with: collective: <handle> (or org: <handle>).\n * Or proceed without funding if not applicable.")
|
128
124
|
funding_org = nil
|
129
125
|
end
|
130
126
|
end
|
131
127
|
rescue StandardError => error
|
132
128
|
Kettle::Dev.debug_error(error, __method__)
|
133
|
-
|
129
|
+
# In an unexpected exception path, escalate to a domain error to aid callers/specs
|
130
|
+
raise Kettle::Dev::Error, "Unable to determine funding org: #{error.message}"
|
134
131
|
end
|
135
132
|
|
136
133
|
{
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "yaml"
|
4
|
+
|
5
|
+
module Kettle
|
6
|
+
module Dev
|
7
|
+
# Shared utility for resolving Open Collective configuration for this repository.
|
8
|
+
# Centralizes the logic for locating and reading .opencollective.yml and
|
9
|
+
# for deriving the handle from environment or the YAML file.
|
10
|
+
module OpenCollectiveConfig
|
11
|
+
module_function
|
12
|
+
|
13
|
+
# Absolute path to a .opencollective.yml
|
14
|
+
# @param root [String, nil] optional project root to resolve against; when nil, uses this repo root
|
15
|
+
# @return [String]
|
16
|
+
def yaml_path(root = nil)
|
17
|
+
return File.expand_path(".opencollective.yml", root) if root
|
18
|
+
File.expand_path("../../../.opencollective.yml", __dir__)
|
19
|
+
end
|
20
|
+
|
21
|
+
# Determine the Open Collective handle.
|
22
|
+
# Precedence:
|
23
|
+
# 1) ENV["OPENCOLLECTIVE_HANDLE"] when set and non-empty
|
24
|
+
# 2) .opencollective.yml key "collective" (or :collective)
|
25
|
+
#
|
26
|
+
# @param required [Boolean] when true, aborts the process if not found; when false, returns nil
|
27
|
+
# @param root [String, nil] optional project root to look for .opencollective.yml
|
28
|
+
# @return [String, nil] the handle, or nil when not required and not discoverable
|
29
|
+
def handle(required: false, root: nil, strict: false)
|
30
|
+
env = ENV["OPENCOLLECTIVE_HANDLE"]
|
31
|
+
return env unless env.nil? || env.to_s.strip.empty?
|
32
|
+
|
33
|
+
ypath = yaml_path(root)
|
34
|
+
if strict
|
35
|
+
yml = YAML.safe_load(File.read(ypath))
|
36
|
+
if yml.is_a?(Hash)
|
37
|
+
handle = yml["collective"] || yml[:collective] || yml["org"] || yml[:org]
|
38
|
+
return handle.to_s unless handle.nil? || handle.to_s.strip.empty?
|
39
|
+
end
|
40
|
+
elsif File.file?(ypath)
|
41
|
+
begin
|
42
|
+
yml = YAML.safe_load(File.read(ypath))
|
43
|
+
if yml.is_a?(Hash)
|
44
|
+
handle = yml["collective"] || yml[:collective] || yml["org"] || yml[:org]
|
45
|
+
return handle.to_s unless handle.nil? || handle.to_s.strip.empty?
|
46
|
+
end
|
47
|
+
rescue StandardError => e
|
48
|
+
Kettle::Dev.debug_error(e, __method__) if Kettle::Dev.respond_to?(:debug_error)
|
49
|
+
# fall through to required check
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
if required
|
54
|
+
Kettle::Dev::ExitAdapter.abort("ERROR: Open Collective handle not provided. Set OPENCOLLECTIVE_HANDLE or add 'collective: <handle>' to .opencollective.yml.")
|
55
|
+
end
|
56
|
+
nil
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -20,9 +20,11 @@ module Kettle
|
|
20
20
|
|
21
21
|
DEFAULT_AVATAR = "https://opencollective.com/static/images/default-avatar.png"
|
22
22
|
README_PATH = File.expand_path("../../../README.md", __dir__)
|
23
|
-
OC_YML_PATH = File.expand_path("../../../.opencollective.yml", __dir__)
|
24
23
|
README_OSC_TAG_DEFAULT = "OPENCOLLECTIVE"
|
25
24
|
COMMIT_SUBJECT_DEFAULT = "💸 Thanks 🙏 to our new backers 🎒 and subscribers 📜"
|
25
|
+
# Deprecated constant maintained for backwards compatibility in tests/specs.
|
26
|
+
# Prefer OpenCollectiveConfig.yaml_path going forward.
|
27
|
+
OC_YML_PATH = OpenCollectiveConfig.yaml_path
|
26
28
|
|
27
29
|
# Ruby 2.3 compatibility: Struct keyword_init added in Ruby 2.5
|
28
30
|
# Switch to struct when dropping ruby < 2.5
|
@@ -120,9 +122,9 @@ module Kettle
|
|
120
122
|
env = ENV["KETTLE_DEV_BACKER_README_OSC_TAG"].to_s
|
121
123
|
return env unless env.strip.empty?
|
122
124
|
|
123
|
-
if File.file?(
|
125
|
+
if File.file?(OpenCollectiveConfig.yaml_path)
|
124
126
|
begin
|
125
|
-
yml = YAML.safe_load(File.read(
|
127
|
+
yml = YAML.safe_load(File.read(OpenCollectiveConfig.yaml_path))
|
126
128
|
if yml.is_a?(Hash)
|
127
129
|
from_yml = yml["readme-osc-tag"] || yml[:"readme-osc-tag"]
|
128
130
|
from_yml = from_yml.to_s if from_yml
|
@@ -148,15 +150,7 @@ module Kettle
|
|
148
150
|
end
|
149
151
|
|
150
152
|
def resolve_handle
|
151
|
-
|
152
|
-
return env unless env.nil? || env.strip.empty?
|
153
|
-
|
154
|
-
if File.file?(OC_YML_PATH)
|
155
|
-
yml = YAML.safe_load(File.read(OC_YML_PATH))
|
156
|
-
handle = yml.is_a?(Hash) ? yml["collective"] || yml[:collective] : nil
|
157
|
-
return handle.to_s unless handle.nil? || handle.to_s.strip.empty?
|
158
|
-
end
|
159
|
-
abort("ERROR: Open Collective handle not provided. Set OPENCOLLECTIVE_HANDLE or add 'collective: <handle>' to .opencollective.yml.")
|
153
|
+
OpenCollectiveConfig.handle(required: true)
|
160
154
|
end
|
161
155
|
|
162
156
|
def fetch_members(path)
|
@@ -150,6 +150,7 @@ module Kettle
|
|
150
150
|
namespace: namespace,
|
151
151
|
namespace_shield: namespace_shield,
|
152
152
|
gem_shield: gem_shield,
|
153
|
+
min_ruby: min_ruby,
|
153
154
|
)
|
154
155
|
end
|
155
156
|
else
|
@@ -162,6 +163,7 @@ module Kettle
|
|
162
163
|
namespace: namespace,
|
163
164
|
namespace_shield: namespace_shield,
|
164
165
|
gem_shield: gem_shield,
|
166
|
+
min_ruby: min_ruby,
|
165
167
|
)
|
166
168
|
end
|
167
169
|
end
|
@@ -259,6 +261,7 @@ module Kettle
|
|
259
261
|
namespace: namespace,
|
260
262
|
namespace_shield: namespace_shield,
|
261
263
|
gem_shield: gem_shield,
|
264
|
+
min_ruby: min_ruby,
|
262
265
|
)
|
263
266
|
else
|
264
267
|
content.dup
|
@@ -469,6 +472,7 @@ module Kettle
|
|
469
472
|
namespace: namespace,
|
470
473
|
namespace_shield: namespace_shield,
|
471
474
|
gem_shield: gem_shield,
|
475
|
+
min_ruby: min_ruby,
|
472
476
|
)
|
473
477
|
|
474
478
|
# 2) Merge specific sections from destination README, if present
|
@@ -618,6 +622,7 @@ module Kettle
|
|
618
622
|
namespace: namespace,
|
619
623
|
namespace_shield: namespace_shield,
|
620
624
|
gem_shield: gem_shield,
|
625
|
+
min_ruby: min_ruby,
|
621
626
|
)
|
622
627
|
if File.basename(rel) == "CHANGELOG.md"
|
623
628
|
begin
|
@@ -13,6 +13,8 @@ module Kettle
|
|
13
13
|
@@template_results = {}
|
14
14
|
|
15
15
|
EXECUTABLE_GIT_HOOKS_RE = %r{[\\/]\.git-hooks[\\/](commit-msg|prepare-commit-msg)\z}
|
16
|
+
# The minimum Ruby supported by setup-ruby GHA
|
17
|
+
MIN_SETUP_RUBY = Gem::Version.create("2.3")
|
16
18
|
|
17
19
|
module_function
|
18
20
|
|
@@ -409,14 +411,56 @@ module Kettle
|
|
409
411
|
# @param gem_shield [String]
|
410
412
|
# @param funding_org [String, nil]
|
411
413
|
# @return [String]
|
412
|
-
def apply_common_replacements(content, org:, gem_name:, namespace:, namespace_shield:, gem_shield:, funding_org: nil)
|
414
|
+
def apply_common_replacements(content, org:, gem_name:, namespace:, namespace_shield:, gem_shield:, funding_org: nil, min_ruby: nil)
|
413
415
|
raise Error, "Org could not be derived" unless org && !org.empty?
|
414
416
|
raise Error, "Gem name could not be derived" unless gem_name && !gem_name.empty?
|
415
417
|
|
416
418
|
funding_org ||= org
|
419
|
+
# Derive min_ruby if not provided
|
420
|
+
mr = begin
|
421
|
+
meta = gemspec_metadata
|
422
|
+
meta[:min_ruby]
|
423
|
+
rescue StandardError => e
|
424
|
+
Kettle::Dev.debug_error(e, __method__)
|
425
|
+
# leave min_ruby as-is (possibly nil)
|
426
|
+
end
|
427
|
+
if min_ruby.nil? || min_ruby.to_s.strip.empty?
|
428
|
+
min_ruby = mr.respond_to?(:to_s) ? mr.to_s : mr
|
429
|
+
end
|
430
|
+
|
431
|
+
# Derive min_dev_ruby from min_ruby
|
432
|
+
# min_dev_ruby is the greater of min_dev_ruby and ruby 2.3,
|
433
|
+
# because ruby 2.3 is the minimum ruby supported by setup-ruby GHA
|
434
|
+
min_dev_ruby = begin
|
435
|
+
[mr, MIN_SETUP_RUBY].max
|
436
|
+
rescue StandardError => e
|
437
|
+
Kettle::Dev.debug_error(e, __method__)
|
438
|
+
MIN_SETUP_RUBY
|
439
|
+
end
|
440
|
+
|
417
441
|
c = content.dup
|
418
442
|
c = c.gsub("kettle-rb", org.to_s)
|
419
443
|
c = c.gsub("{OPENCOLLECTIVE|ORG_NAME}", funding_org)
|
444
|
+
# Replace min ruby token if present
|
445
|
+
begin
|
446
|
+
if min_ruby && !min_ruby.to_s.empty? && c.include?("{K_D_MIN_RUBY}")
|
447
|
+
c = c.gsub("{K_D_MIN_RUBY}", min_ruby.to_s)
|
448
|
+
end
|
449
|
+
rescue StandardError => e
|
450
|
+
Kettle::Dev.debug_error(e, __method__)
|
451
|
+
# ignore
|
452
|
+
end
|
453
|
+
|
454
|
+
# Replace min ruby dev token if present
|
455
|
+
begin
|
456
|
+
if min_dev_ruby && !min_dev_ruby.to_s.empty? && c.include?("{K_D_MIN_DEV_RUBY}")
|
457
|
+
c = c.gsub("{K_D_MIN_DEV_RUBY}", min_dev_ruby.to_s)
|
458
|
+
end
|
459
|
+
rescue StandardError => e
|
460
|
+
Kettle::Dev.debug_error(e, __method__)
|
461
|
+
# ignore
|
462
|
+
end
|
463
|
+
|
420
464
|
# Special-case: yard-head link uses the gem name as a subdomain and must be dashes-only.
|
421
465
|
# Apply this BEFORE other generic replacements so it isn't altered incorrectly.
|
422
466
|
begin
|
data/lib/kettle/dev/version.rb
CHANGED
data/lib/kettle/dev.rb
CHANGED
@@ -22,6 +22,7 @@ module Kettle
|
|
22
22
|
autoload :GitCommitFooter, "kettle/dev/git_commit_footer"
|
23
23
|
autoload :InputAdapter, "kettle/dev/input_adapter"
|
24
24
|
autoload :ReadmeBackers, "kettle/dev/readme_backers"
|
25
|
+
autoload :OpenCollectiveConfig, "kettle/dev/open_collective_config"
|
25
26
|
autoload :ReleaseCLI, "kettle/dev/release_cli"
|
26
27
|
autoload :PreReleaseCLI, "kettle/dev/pre_release_cli"
|
27
28
|
autoload :SetupCLI, "kettle/dev/setup_cli"
|
@@ -61,6 +62,9 @@ module Kettle
|
|
61
62
|
# Accepts 1, true, y, yes (any case).
|
62
63
|
# @return [Regexp]
|
63
64
|
ENV_TRUE_RE = /\A(1|true|y|yes)\z/i
|
65
|
+
# Absolute path to the root of the kettle-dev gem (repository root when working from source)
|
66
|
+
# @return [String]
|
67
|
+
GEM_ROOT = File.expand_path("../..", __dir__)
|
64
68
|
|
65
69
|
@defaults = []
|
66
70
|
|
@@ -48,7 +48,9 @@ module Kettle
|
|
48
48
|
gem_name: String,
|
49
49
|
namespace: String,
|
50
50
|
namespace_shield: String,
|
51
|
-
gem_shield: String
|
51
|
+
gem_shield: String,
|
52
|
+
?funding_org: String?,
|
53
|
+
?min_ruby: String?
|
52
54
|
) -> String
|
53
55
|
|
54
56
|
# Parse gemspec metadata and derive useful strings
|
@@ -77,8 +79,6 @@ module Kettle
|
|
77
79
|
bindir: String,
|
78
80
|
executables: Array[String],
|
79
81
|
}
|
80
|
-
|
81
|
-
def apply_common_replacements: () -> untyped
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|
data/sig/kettle/dev.rbs
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kettle-dev
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter H. Boling
|
@@ -215,6 +215,17 @@ extra_rdoc_files:
|
|
215
215
|
- RUBOCOP.md
|
216
216
|
- SECURITY.md
|
217
217
|
files:
|
218
|
+
- "./.aiignore.example"
|
219
|
+
- "./.env.local.example"
|
220
|
+
- "./.gitlab-ci.yml.example"
|
221
|
+
- "./.opencollective.yml.example"
|
222
|
+
- "./.simplecov.example"
|
223
|
+
- "./Appraisals.example"
|
224
|
+
- "./CHANGELOG.md.example"
|
225
|
+
- "./Gemfile.example"
|
226
|
+
- "./README.md.example"
|
227
|
+
- "./Rakefile.example"
|
228
|
+
- "./kettle-dev.gemspec.example"
|
218
229
|
- ".aiignore.example"
|
219
230
|
- ".devcontainer/devcontainer.json"
|
220
231
|
- ".env.local.example"
|
@@ -224,6 +235,7 @@ files:
|
|
224
235
|
- ".git-hooks/footer-template.erb.txt"
|
225
236
|
- ".git-hooks/prepare-commit-msg"
|
226
237
|
- ".git-hooks/prepare-commit-msg.example"
|
238
|
+
- ".github/.codecov.yml.example"
|
227
239
|
- ".github/FUNDING.yml"
|
228
240
|
- ".github/dependabot.yml"
|
229
241
|
- ".github/workflows/ancient.yml"
|
@@ -233,6 +245,7 @@ files:
|
|
233
245
|
- ".github/workflows/coverage.yml"
|
234
246
|
- ".github/workflows/coverage.yml.example"
|
235
247
|
- ".github/workflows/current.yml"
|
248
|
+
- ".github/workflows/current.yml.example"
|
236
249
|
- ".github/workflows/dep-heads.yml"
|
237
250
|
- ".github/workflows/dependency-review.yml"
|
238
251
|
- ".github/workflows/discord-notifier.yml.example"
|
@@ -253,6 +266,7 @@ files:
|
|
253
266
|
- ".gitlab-ci.yml.example"
|
254
267
|
- ".junie/guidelines-rbs.md"
|
255
268
|
- ".junie/guidelines.md"
|
269
|
+
- ".junie/guidelines.md.example"
|
256
270
|
- ".licenserc.yaml"
|
257
271
|
- ".opencollective.yml"
|
258
272
|
- ".opencollective.yml.example"
|
@@ -337,6 +351,7 @@ files:
|
|
337
351
|
- lib/kettle/dev/git_commit_footer.rb
|
338
352
|
- lib/kettle/dev/input_adapter.rb
|
339
353
|
- lib/kettle/dev/modular_gemfiles.rb
|
354
|
+
- lib/kettle/dev/open_collective_config.rb
|
340
355
|
- lib/kettle/dev/pre_release_cli.rb
|
341
356
|
- lib/kettle/dev/rakelib/appraisal.rake
|
342
357
|
- lib/kettle/dev/rakelib/bench.rake
|
@@ -372,6 +387,7 @@ files:
|
|
372
387
|
- sig/kettle/dev/git_commit_footer.rbs
|
373
388
|
- sig/kettle/dev/input_adapter.rbs
|
374
389
|
- sig/kettle/dev/modular_gemfiles.rbs
|
390
|
+
- sig/kettle/dev/open_collective_config.rbs
|
375
391
|
- sig/kettle/dev/pre_release_cli.rbs
|
376
392
|
- sig/kettle/dev/readme_backers.rbs
|
377
393
|
- sig/kettle/dev/release_cli.rbs
|
@@ -388,10 +404,10 @@ licenses:
|
|
388
404
|
- MIT
|
389
405
|
metadata:
|
390
406
|
homepage_uri: https://kettle-dev.galtzo.com/
|
391
|
-
source_code_uri: https://github.com/kettle-rb/kettle-dev/tree/v1.1.
|
392
|
-
changelog_uri: https://github.com/kettle-rb/kettle-dev/blob/v1.1.
|
407
|
+
source_code_uri: https://github.com/kettle-rb/kettle-dev/tree/v1.1.24
|
408
|
+
changelog_uri: https://github.com/kettle-rb/kettle-dev/blob/v1.1.24/CHANGELOG.md
|
393
409
|
bug_tracker_uri: https://github.com/kettle-rb/kettle-dev/issues
|
394
|
-
documentation_uri: https://www.rubydoc.info/gems/kettle-dev/1.1.
|
410
|
+
documentation_uri: https://www.rubydoc.info/gems/kettle-dev/1.1.24
|
395
411
|
funding_uri: https://github.com/sponsors/pboling
|
396
412
|
wiki_uri: https://github.com/kettle-rb/kettle-dev/wiki
|
397
413
|
news_uri: https://www.railsbling.com/tags/kettle-dev
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
\[���}��In������qȲ,��n����?V��bx+���?《��X�M3~��!��h!�Ӷ�z���E,_��I~�7H�'��=�ٵ���Pƕ�V�t�,�hK�8�(�U�<rt�s�!YQ�4��n�\�E�2L��h��F\E�M��������! 8v���r}d#��J|a���yr
|
2
|
+
����m��I��}ETW����p���G� ��KH�(���pS~�k���eS#��5_1;��I�I�������tFi��pB`�/��-�Jf�[��<��r��a��
|
3
|
+
"�@+Ks�eM�AҾ�,��_e9��689�K&?�3�t�Q��m���Q�?*�F�6d���X����*p&��)�A�,�绒�$�
|