Making Changes To Standard Libraries
Everything in thelib directory is mirrored from a standalone repository into the Ruby repository. If you’d like to make contributions to standard libraries, do so in the standalone repositories, and the changes will be automatically mirrored into the Ruby repository.
For example,ERB lives ina separate repository and is mirrored intoRuby.
Maintainers
You can find the list of maintainershere.
Build
First, install its dependencies using:
bundleinstall
Libraries with C-extension
If the library has a/ext directory, it has C files that you need to compile with:
bundleexecrakecompile
Running tests
All standard libraries usetest-unit as the test framework.
To run all tests:
bundleexecraketest
To run a single test file:
bundleexecraketestTEST="test/test_foo.rb"
To run a single test case:
bundle exec rake test TEST="test/test_foo.rb" TESTOPTS="--name=/test_mytest/"