Skip to content

Add RBS signature and testing#488

Merged
tompng merged 2 commits intoruby:masterfrom
ksss:rbs
Feb 15, 2026
Merged

Add RBS signature and testing#488
tompng merged 2 commits intoruby:masterfrom
ksss:rbs

Conversation

@ksss
Copy link
Contributor

@ksss ksss commented Feb 13, 2026

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

Background

bigdecimal 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.

Supported signatures

  • bigdecimal.rb
    • Support all methods without internal.
  • bigdecimal/math
    • Support all methods
  • bigdecimal/util
    • 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.

Benefit

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

Copy link
Member

@tompng tompng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

@tompng tompng merged commit 38c3e82 into ruby:master Feb 15, 2026
86 of 88 checks passed
@ksss ksss deleted the rbs branch February 15, 2026 23:39
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

Comments