Skip to content

Add RBS signature and testing#26

Merged
hsbt merged 1 commit intoruby:masterfrom
ksss:rbs
Feb 27, 2026
Merged

Add RBS signature and testing#26
hsbt merged 1 commit intoruby:masterfrom
ksss:rbs

Conversation

@ksss
Copy link
Contributor

@ksss ksss commented Feb 27, 2026

I propose managing the signatures in a ruby/nkf repository instead of ruby/gem_rbs_collection.

Background

nkf is a bundled gem.
Until now, its signatures were managed in the RBS repository, but bundled gems are now expected to be maintained either in gem_rbs_collection or in the gem itself.

Benefit

We can provide users with signatures that follow the Ruby code perfectly.

Supported signatures

  • kconv.rb
    • Support all methods.
  • nkf.{c,rb}
    • Support all methods

Testing of signatures

No modifications have been made to existing Ruby tests.
I have rewritten a new test for signatures.
It is sufficient to test signatures only with the latest version of Ruby.

Comment of signatures

Ruby comments and rbs comments are synchronized using the rake rbs:annotate command.
After operating with ruby/base64, I received feedback that it's not necessary to check comment updates with CI, and that updating them at arbitrary timings seems sufficient.

@hsbt hsbt merged commit 915ac0d into ruby:master Feb 27, 2026
29 checks passed
@ksss ksss deleted the rbs branch February 28, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants