Skip to content

Commit 6664871

Browse files
committed
🎨 kettle-dev v1.1.26 template
1 parent bcbc8f3 commit 6664871

File tree

8 files changed

+149
-54
lines changed

8 files changed

+149
-54
lines changed

.github/workflows/current.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545
rubygems: latest
4646
bundler: latest
4747

48-
# truffleruby-24.1
49-
# (according to documentation: targets Ruby 3.3 compatibility)
50-
# (according to runtime: targets Ruby 3.2 compatibility)
48+
# truffleruby-24.1 (targets Ruby 3.3 compatibility)
5149
- ruby: "truffleruby"
5250
appraisal: "current"
5351
exec_cmd: "rake test"

.github/workflows/license-eye.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Apache SkyWalking Eyes
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
push:
8+
branches:
9+
- 'main'
10+
- '*-stable'
11+
tags:
12+
- '!*' # Do not execute on tags
13+
pull_request:
14+
branches:
15+
- '*'
16+
# Allow manually triggering the workflow.
17+
workflow_dispatch:
18+
19+
# Cancels all previous workflow runs for the same branch that have not yet completed.
20+
concurrency:
21+
# The concurrency group contains the workflow name and the branch name.
22+
group: "${{ github.workflow }}-${{ github.ref }}"
23+
cancel-in-progress: true
24+
25+
jobs:
26+
license-check:
27+
if: "!contains(github.event.commits[0].message, '[ci skip]') && !contains(github.event.commits[0].message, '[skip ci]')"
28+
runs-on: ubuntu-latest
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v5
32+
33+
- name: Check Dependencies' License
34+
uses: apache/skywalking-eyes/dependency@main
35+
with:
36+
config: .licenserc.yaml
37+
# Ruby packages declared as dependencies in gemspecs or Gemfiles are
38+
# typically consumed as binaries; enable weak-compatibility
39+
# so permissive and weak-copyleft combinations are treated as compatible.
40+
flags: --weak-compatible

.junie/guidelines.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ This document captures project-specific knowledge to streamline setup, testing,
1212
- See .env.local.example for an example of what to put in .env.local.
1313
- See CONTRIBUTING.md for details on how to set up your local environment.
1414
- Ruby and Bundler
15-
- Runtime supports very old Rubies (>= 1.9.2) but development tooling targets >= 2.3 because of CI/setup-ruby and dev dependencies.
15+
- Runtime supports Ruby >= 2.3.0
16+
- Development tooling targets Ruby >= 2.3.0 (minimum supported by setup-ruby GHA).
1617
- Use a recent Ruby (>= 3.4 recommended) for fastest setup and to exercise modern coverage behavior.
1718
- Install dependencies via Bundler in project root:
1819
- bundle install
@@ -53,7 +54,7 @@ This document captures project-specific knowledge to streamline setup, testing,
5354
- RSpec.describe usage:
5455
- Use `describe "#<method_name>"` to contain a block of specs that test instance method behavior.
5556
- Use `describe "::<method_name>"` to contain a block of specs that test class method behavior.
56-
- Do not use `describe ".<method_name>"` because the dot is ambiguous w.r.t instance vs. class methods.
57+
- Do not use `describe ".<method_name>"` because the dot is ambiguous w.r.t instance vs. class methods.
5758
- 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.
5859
- Additional test utilities:
5960
- rspec-stubbed_env: Use stub_env to control ENV safely within examples.
@@ -89,11 +90,13 @@ This document captures project-specific knowledge to streamline setup, testing,
8990
- 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.
9091
- If your code relies on environment variables that drive activation (see "Activation env vars" below), prefer using rspec-stubbed_env:
9192
- it does not support stubbing with blocks, but it does automatically clean up after itself.
92-
- outside the example:
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:
9394
include_context 'with stubbed env'
9495
- in a before hook, or in an example:
9596
stub_env("FLOSS_FUNDING_MY_NS" => "Free-as-in-beer")
97+
9698
# example code continues
99+
97100
- If your spec needs to assert on console output, tag it with :check_output. By default, STDOUT is silenced.
98101
- Use Timecop for deterministic time-sensitive behavior as needed (require config/timecop is already done by spec_helper).
99102

@@ -133,6 +136,7 @@ Notes
133136
- 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".
134137
- 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
135138
- For all the kettle-soup-cover options, see .envrc and find the K_SOUP_COV_* env vars.
139+
- 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).
136140

137141
Important documentation rules
138142
- Do NOT edit files under docs/ manually; they are generated by `bundle exec rake yard` as part of the default rake task.

.licenserc.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
header:
2+
license:
3+
spdx-id: MIT
4+
5+
dependency:
6+
files:
7+
- Gemfile.lock

Appraisals

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ end
3131
# Used for head (nightly) releases of ruby, truffleruby, and jruby.
3232
# Split into discrete appraisals if one of them needs a dependency locked discretely.
3333
appraise "head" do
34+
# Why is gem "cgi" here? See: https://github.com/vcr/vcr/issues/1057
35+
# gem "cgi", ">= 0.5"
3436
gem "oauth", ">= 1.1.0"
3537
gem "benchmark", "~> 0.4", ">= 0.4.1"
3638
eval_gemfile "modular/x_std_libs.gemfile"

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,61 +17,90 @@ Please file a bug if you notice a violation of semantic versioning.
1717
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
1818

1919
## [Unreleased]
20+
2021
### Added
22+
2123
- (dev) kettle-dev v1.1.16 (@pboling)
2224
- (docs) more documentation (@Aboling0, @pboling)
2325
- (docs) Deployed documentation site for HEAD (@Aboling0)
2426
- https://oauth-tty.galtzo.com
2527
- (test) many new tests (@pboling)
2628
- (docs) CITATION.cff
2729
- support window increased, down to Ruby 2.3 (@pboling)
30+
2831
### Changed
32+
2933
- (docs) upgrade Code of Conduct to Contributor Covenant 2.1 (@pboling)
3034
- (test) migrated test suite to RSpec (@pboling)
3135
- (test) ignore Ruby warnings coming from other libs (@pboling)
36+
3237
### Deprecated
38+
3339
### Removed
40+
3441
- (test) minitest (@pboling)
42+
3543
### Fixed
44+
3645
### Security
3746

3847
## [1.0.5] - 2022-09-20
48+
3949
- TAG: [v1.0.5][1.0.5t]
50+
4051
### Added
52+
4153
- SHA 256 Checksum for release (in addition to SHA 512) (@pboling)
4254
- Aligned checksums directory name with `rake build:checksum` task (@pboling)
4355
- General Cleanup
4456

4557
## [1.0.4] - 2022-09-19
58+
4659
- TAG: [1.0.4][1.0.4t]
60+
4761
### Added
62+
4863
- Certificate for signing gem releases (@pboling)
4964
- Gemspec metadata (@pboling)
5065
- funding_uri
5166
- mailing_list_uri
5267
- Installation and usage documentation (@pboling)
5368
- SHA 512 Checksum for release (@pboling)
69+
5470
### Changed
71+
5572
- Gem releases are now cryptographically signed (@pboling)
5673

5774
## [1.0.3] - 2022-09-06
75+
5876
- TAG: [1.0.3][1.0.3t]
77+
5978
### Fixed
79+
6080
- Author name - Thaigo Pinto (@pboling)
6181

6282
## [1.0.2] - 2022-08-26
83+
6384
- TAG: [1.0.2][1.0.2t]
85+
6486
### Fixed
87+
6588
- URLs in Gemspec (@pboling)
6689

6790
## [1.0.1] - 2022-08-26
91+
6892
- TAG: [1.0.1][1.0.1t]
93+
6994
### Fixed
95+
7096
- Circular reference while loading (@pboling)
7197

7298
## [1.0.0] - 2022-08-26
99+
73100
- TAG: [1.0.0][1.0.0t]
101+
74102
### Added
103+
75104
- Initial release (@pboling)
76105

77106
[Unreleased]: https://gitlab.com/ruby-oauth/oauth-tty/-/compare/v1.0.5...main

0 commit comments

Comments
 (0)