Add missing definitions for utility, math, and algorithm standard libraries (digest, forwardable, random-formatter, singleton, time, tsort) - #3173
Open
zonuexe wants to merge 1 commit into
Conversation
zonuexe
force-pushed
the
fix/stdlib-missing-utils-math
branch
from
September 26, 2026 23:47
fa965e5 to
0174697
Compare
ksss
reviewed
Sep 27, 2026
ksss
left a comment
Collaborator
There was a problem hiding this comment.
benchmark and bigdecimal-math are planned to be removed from the rbs repo.
Please submit your requests to each gem.
rbs/lib/rbs/collection/config/lockfile_generator.rb
Lines 7 to 22 in 5a8d8ac
…raries (digest, forwardable, random-formatter, singleton, time, tsort) Add missing methods, classes, and constants for `digest`, `forwardable`, `random-formatter`, `singleton`, `time`, and `tsort`. Also refine `Forwardable.debug` and `Forwardable.debug=`. Note: `benchmark` and `bigdecimal-math` have been excluded as they are in `ALUMNI_STDLIBS` and planned to be removed from the rbs repo. | Ruby Method | Change | C function | |---|---|---| | `Digest::VERSION` | Add constant `VERSION` | https://github.com/ruby/digest/blob/master/ext/digest/digest.c | | `Forwardable.debug` | Return type `untyped` → `boolish` | https://github.com/ruby/forwardable/blob/master/lib/forwardable.rb | | `Forwardable.debug=` | Return type `T` → `void`, accept `boolish` | https://github.com/ruby/forwardable/blob/master/lib/forwardable.rb | | `Random::Formatter::ALPHANUMERIC` | Add constant `ALPHANUMERIC` | https://github.com/ruby/ruby/blob/v4.0.7/lib/random/formatter.rb | | `Singleton.module_with_class_methods` | Add singleton method `module_with_class_methods` | https://github.com/ruby/singleton/blob/master/lib/singleton.rb | | `Singleton::VERSION` | Add constant `VERSION` | https://github.com/ruby/singleton/blob/master/lib/singleton.rb | | `Time::VERSION` | Add constant `VERSION` | https://github.com/ruby/time/blob/master/lib/time.rb | | `TSort::VERSION` | Add constant `VERSION` | https://github.com/ruby/tsort/blob/master/lib/tsort.rb |
zonuexe
force-pushed
the
fix/stdlib-missing-utils-math
branch
from
September 27, 2026 07:33
0174697 to
af6a2be
Compare
Contributor
Author
|
Thank you for the guidance! I have excluded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add missing methods, classes, and constants for
digest,forwardable,random-formatter,singleton,time, andtsort.Also refine
Forwardable.debugandForwardable.debug=.Note:
benchmarkandbigdecimal-mathhave been excluded as they are inALUMNI_STDLIBSand planned to be removed from the rbs repo.Changes
Digest::VERSIONVERSIONForwardable.debuguntyped→boolishForwardable.debug=T→void, acceptboolishRandom::Formatter::ALPHANUMERICALPHANUMERICSingleton.module_with_class_methodsmodule_with_class_methodsSingleton::VERSIONVERSIONTime::VERSIONVERSIONTSort::VERSIONVERSION