Skip to content

Commit db8acd5

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

File tree

12 files changed

+181
-62
lines changed

12 files changed

+181
-62
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

.rubocop_gradual.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"lib/oauth/tty/command.rb:3092098200": [
66
[126, 23, 4, "Security/Open: The use of `Kernel#open` is a serious security risk.", 2087926481]
77
],
8-
"oauth-tty.gemspec:3967633356": [
9-
[130, 3, 40, "Gemspec/DependencyVersion: Dependency version specification is required.", 2300588954],
10-
[132, 3, 44, "Gemspec/DependencyVersion: Dependency version specification is required.", 1905290578],
11-
[133, 3, 46, "Gemspec/DependencyVersion: Dependency version specification is required.", 4289565910]
8+
"oauth-tty.gemspec:3319279878": [
9+
[129, 3, 40, "Gemspec/DependencyVersion: Dependency version specification is required.", 2300588954],
10+
[131, 3, 44, "Gemspec/DependencyVersion: Dependency version specification is required.", 1905290578],
11+
[132, 3, 46, "Gemspec/DependencyVersion: Dependency version specification is required.", 4289565910]
1212
],
1313
"spec/oauth/backwards_compatibility_spec.rb:4041711732": [
1414
[3, 16, 25, "RSpec/DescribeClass: The first argument to describe should be the class or module being tested.", 3956042931]

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

Gemfile.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ GEM
4646
thor (~> 1.0)
4747
concurrent-ruby (1.3.5)
4848
cookiejar (0.3.4)
49+
crack (1.0.0)
50+
bigdecimal
51+
rexml
4952
date (3.4.1)
5053
debug (1.11.0)
5154
irb (~> 1.10)
@@ -110,6 +113,7 @@ GEM
110113
version_gem (~> 1.1, >= 1.1.4)
111114
gitmoji-regex (1.0.3)
112115
version_gem (~> 1.1, >= 1.1.8)
116+
hashdiff (1.2.1)
113117
hashie (5.0.0)
114118
http-accept (1.7.0)
115119
http-cookie (1.0.8)
@@ -352,7 +356,13 @@ GEM
352356
unicode-display_width (3.2.0)
353357
unicode-emoji (~> 4.1)
354358
unicode-emoji (4.1.0)
359+
vcr (6.3.1)
360+
base64
355361
version_gem (1.1.9)
362+
webmock (3.25.1)
363+
addressable (>= 2.8.0)
364+
crack (>= 0.3.2)
365+
hashdiff (>= 0.4.0, < 2.0.0)
356366
yard (0.9.37)
357367
yard-relative_markdown_links (0.5.0)
358368
nokogiri (>= 1.14.3, < 2)
@@ -371,6 +381,7 @@ PLATFORMS
371381

372382
DEPENDENCIES
373383
appraisal2 (~> 3.0)
384+
backports (~> 3.25, >= 3.25.1)
374385
benchmark (~> 0.4, >= 0.4.1)
375386
bundler-audit (~> 0.9.2)
376387
debug (>= 1.1)
@@ -406,6 +417,8 @@ DEPENDENCIES
406417
stone_checksums (~> 1.0, >= 1.0.2)
407418
stringio (>= 3.0)
408419
typhoeus (>= 0.1.13)
420+
vcr (>= 4)
421+
webmock (>= 3)
409422
yard (~> 0.9, >= 0.9.37)
410423
yard-junk (~> 0.0, >= 0.0.10)!
411424
yard-relative_markdown_links (~> 0.5.0)

0 commit comments

Comments
 (0)