summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-01-24Restructured irb related example at spec/rubyHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12624
2025-01-24Migrate irb and reline to the bundled gemsHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12624
2025-01-24[ruby/uri] [DOC] Make documentation 100%Nobuyoshi Nakada
https://github.com/ruby/uri/commit/fe7aa3dac2
2025-01-24Launchable: Enable PTS observation mode (#12617)Naoto Ono
Launchable offers the Predictive Test Selection feature for speeding up CI execution. Predictive Test Selection leverages machine learning to identify the right tests to run for a specific code change. By analyzing data from past test runs and considering the changes being tested, Launchable determines which tests are most relevant. To evaluate the list of tests that Launchable selects, I enable PTS observation mode. Please note that there is no impacts on CI execution. Notes: Merged-By: ono-max <[email protected]>
2025-01-23Fix memory leak in rb_gc_vm_weak_table_foreachPeter Zhu
When deleting from the generic ivar table, we need to free the gen_ivtbl otherwise we will have a memory leak. Notes: Merged: https://github.com/ruby/ruby/pull/12615
2025-01-23Update win32ole entries under the doc directoryHiroshi SHIBATA
2025-01-23Use pure ruby library instead of C ext library for dependency warning exampleHiroshi SHIBATA
2025-01-23Use openssl instead of fiddle and erb for native extension testHiroshi SHIBATA
2025-01-23Yield from `create_makefile` in bundled gems tooNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12618
2025-01-23Ignore to add Documentation label when we pushed doc and src bothHiroshi SHIBATA
2025-01-23Repair documentation markup in object.cOlle Jonsson
Issue was visible in https://docs.ruby-lang.org/en/3.4/Kernel.html#module-Kernel-label-IO Notes: Merged: https://github.com/ruby/ruby/pull/12613
2025-01-23Added actions/labelerHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/12609
2025-01-23[ruby/weakref] weakref.gemspec: Drop gemspec config on executablesOlle Jonsson
This gem does not expose any executables. https://github.com/ruby/weakref/commit/819471ce35
2025-01-23Skip test_params(OpenSSLDHTest) at rbs tests with test-bundled-gemsHiroshi SHIBATA
2025-01-22[DOC] Hash defaults docBurdette Lamar
Notes: Merged: https://github.com/ruby/ruby/pull/12560 Merged-By: peterzhu2118 <[email protected]>
2025-01-22[ruby/prism] Fix rescue modifier precedenceKevin Newton
Fixes [Bug #21048] https://github.com/ruby/prism/commit/07202005cb
2025-01-22[ruby/prism] Do not put empty statements in while because of -nKevin Newton
Fixes [Bug #21085] https://github.com/ruby/prism/commit/ebb9c36a10
2025-01-23[ruby/openssl] ts: use TS_VERIFY_CTX_set0_{store,certs}() on OpenSSL 3.4Kazuki Yamaguchi
In OpenSSL 3.4, TS_VERIFY_CTX_set_certs() and TS_VERIFY_CTX_set_store() are deprecated in favor of the new functions with "set0" in the names. The new functions have a slightly different behavior. They will free the previous value automatically. Increment the reference counter of X509_STORE before setting it to TS_VERIFY_CTX, and do not try to manually unset it. We avoided doing this to work around a bug that was present in older versions of OpenSSL, which has now been fixed in OpenSSL 1.0.2 by commit https://github.com/openssl/openssl/commit/bff9ce4db38b. https://github.com/ruby/openssl/commit/ce37f7d93a
2025-01-23[ruby/openssl] pkey: change PKey::{RSA,DSA,DH}#params to use nil for missing ↵Kazuki Yamaguchi
parameters The returned Hash from these methods contain 0 in place of a missing parameter in the key, for example: pkey = OpenSSL::PKey.read(OpenSSL::PKey::RSA.new(2048).public_to_pem) pp pkey.params #=> # {"n"=>#<OpenSSL::BN https://github.com/ruby/openssl/commit/286934673421[...snip]>, # "e"=>#<OpenSSL::BN 65537>, # "d"=>#<OpenSSL::BN 0>, # "p"=>#<OpenSSL::BN 0>, # "q"=>#<OpenSSL::BN 0>, # "dmp1"=>#<OpenSSL::BN 0>, # "dmq1"=>#<OpenSSL::BN 0>, # "iqmp"=>#<OpenSSL::BN 0>} Let's use nil instead, which is more appropriate for indicating a missing value. https://github.com/ruby/openssl/commit/f247ec3dec
2025-01-23[ruby/openssl] pkey: implement PKey::{RSA,DSA,DH}#params in RubyKazuki Yamaguchi
Move the definitions to lib/openssl/pkey.rb. They need not to be in the extension and can be implemented using existing methods. This reduces direct usage of the now-deprecated OpenSSL APIs around the low-level structs such as DH, DSA, or RSA. https://github.com/ruby/openssl/commit/c14178f387
2025-01-23[ruby/openssl] pkey: add tests for PKey::{RSA,DSA,DH}#paramsKazuki Yamaguchi
Add missing test cases to verify the current behavior. The next patch will rewrite those methods. https://github.com/ruby/openssl/commit/c0e0669f9b
2025-01-22[ruby/openssl] ssl: fix SSLSocket#sysread leaking locktmp String on timeoutKazuki Yamaguchi
Commit https://github.com/ruby/openssl/commit/3bbf5178a90e made blocking methods on SSLSocket follow the IO#timeout= value. The commit changed io_wait_readable() to potentially raise an exception without unlocking the String. The String is currently locked for the entire duration of a #sysread method call. This does not seem to be necessary, as SSL_read() does not require that the same buffer is specified when retrying. Locking the String during each SSL_read() call should be sufficient. https://github.com/ruby/openssl/commit/8f791d73f5
2025-01-22[ruby/mmtk] Remove unused lazy_static dependencyPeter Zhu
https://github.com/ruby/mmtk/commit/f47a1e2d17
2025-01-22[ruby/irb] Use EnvUtil.rubybin instead of "ruby" in copy commandtomoya ishida
test (https://github.com/ruby/irb/pull/1071) `ruby` is not always available. https://github.com/ruby/irb/commit/f6c5106364
2025-01-22Update default gems list at 6821b0574980191e34149853af1962 [ci skip]git
2025-01-22[ruby/irb] Bump version to 1.15.1tomoya ishida
(https://github.com/ruby/irb/pull/1070) https://github.com/ruby/irb/commit/df37b074e3 Notes: Merged: https://github.com/ruby/ruby/pull/12612
2025-01-22[ruby/irb] Fix pager preview with escape sequence and newlinestomoya ishida
(https://github.com/ruby/irb/pull/1069) https://github.com/ruby/irb/commit/a139562a07 Notes: Merged: https://github.com/ruby/ruby/pull/12612
2025-01-22[ruby/irb] Update documentation about the new copy commandStan Lo
(https://github.com/ruby/irb/pull/1067) https://github.com/ruby/irb/commit/6194111611 Notes: Merged: https://github.com/ruby/ruby/pull/12612
2025-01-22[ruby/irb] Show a quick preview of inspect result before pagertomoya ishida
launch (https://github.com/ruby/irb/pull/1040) * Quickly show inspect preview even if pretty_print takes too much time * Show a message "Inspecting..." while generating pretty_print content * Update inspecting message Co-authored-by: Stan Lo <[email protected]> * Update rendering test for preparing inspect message * Don't show preview if pretty_print does not take time --------- https://github.com/ruby/irb/commit/03c36586e6 Co-authored-by: Stan Lo <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/12612
2025-01-22[ruby/irb] Add copy command (https://github.com/ruby/irb/pull/1044)Prajjwal Singh
Closes https://github.com/ruby/irb/pull/753 https://github.com/ruby/irb/commit/a24ac53d48 Notes: Merged: https://github.com/ruby/ruby/pull/12612
2025-01-22Add generic ivar reference updating stepPeter Zhu
Previously, generic ivars worked differently than the other global tables during compaction. The other global tables had their references updated through iteration during rb_gc_update_vm_references. Generic ivars updated the keys when the object moved and updated the values while reference updating the object. This is inefficient as this required one lookup for every moved object and one lookup for every object with generic ivars. Instead, this commit changes it to iterate over the generic ivar table to update both the keys and values. Notes: Merged: https://github.com/ruby/ruby/pull/12607
2025-01-22Relax expectations of errors from `getgrnam`Nobuyoshi Nakada
The list of errors cited in 58bc97628c14933b73f13e0856d1a56e70e8b0e4 is not exhaustive and other errors may be raised by `getgrnam`. Additionally, these errors are system dependent and may not be listed on all platforms. Notes: Merged: https://github.com/ruby/ruby/pull/12610
2025-01-22Update bundled gems list as of 2025-01-21git
2025-01-22[DOC] Fix code markup in String#matchKouhei Yanagita
Notes: Merged: https://github.com/ruby/ruby/pull/12608
2025-01-21[ruby/openssl] Use X509_ALGOR_get0() accessor for X509_ALGORTheo Buehler
While the struct is currently still public in OpenSSL, there has been an accessor since OpenSSL 0.9.8h. It would be nice if this accessor could be used so that the struct can be made opaque at some point in the future. https://github.com/ruby/openssl/commit/812aeab2f5
2025-01-21[ruby/openssl] Require OpenSSL 1.1.1 or laterKazuki Yamaguchi
Drop support for OpenSSL 1.1.0. OpenSSL 1.1.0 was a non-LTS release and it has reached upstream EOL in 2019-12 along with OpenSSL 1.0.2. Distributions that shipped with OpenSSL 1.1.0 include: - Debian 9 (EOL 2022-06) - Ubuntu 18.04 LTS (EOL 2023-04) https://github.com/ruby/openssl/commit/ba83abe920
2025-01-21[ruby/openssl] pkey/dh: do not skip test_params_ok? on LibreSSLKazuki Yamaguchi
https://github.com/ruby/openssl/commit/cd91cef590
2025-01-21[ruby/mmtk] Bump mmtk-corePeter Zhu
Fixes a bug where there is an infinite loop when MMTK_HEAP_MIN is small. https://github.com/ruby/mmtk/commit/12c7ede20b
2025-01-21[ruby/mmtk] Add tests for MMTK_HEAP_MINPeter Zhu
https://github.com/ruby/mmtk/commit/a725b95f51
2025-01-21Update default gems list at abed4ea81029d7169ef07b85622dfb [ci skip]git
2025-01-21[ruby/irb] Bump version to v1.15.0Stan Lo
(https://github.com/ruby/irb/pull/1066) https://github.com/ruby/irb/commit/d3531d8fc0
2025-01-21Fix lrama for snapshotNobuyoshi Nakada
- Old versions should compile parse.y by `bison` or the bundled version `lrama`, not the `lrama` in the running repository. - Check variables for ruby executable more strictly. Notes: Merged: https://github.com/ruby/ruby/pull/12605
2025-01-21Remove unnecessary assignments to local variables in `f_arg_asgn`ydah
Local variables are not reassigned and are not needed. Notes: Merged: https://github.com/ruby/ruby/pull/12054
2025-01-21Remove unnecessary assignments to local variables in `strings`ydah
Local variables are not reassigned and are not needed. Notes: Merged: https://github.com/ruby/ruby/pull/12054
2025-01-21ext/json/parser/prereq.mk is removed from sync targetHiroshi SHIBATA
2025-01-21[ruby/resolv] Check for Windows in JRuby-compatible wayCharles Oliver Nutter
https://github.com/ruby/resolv/commit/de95f557b0
2025-01-21[ruby/resolv] Use port number 0 for ephemeral port if saveNobuyoshi Nakada
On platforms where ephemeral port randomization is implemented, the same randomization is not needed in the ruby library layer. Fixes https://github.com/ruby/resolv/pull/63. https://github.com/ruby/resolv/commit/45e1b563c0
2025-01-21[ruby/error_highlight] Use `$stderr` instead of STDERR for Ractorwanabe
https://github.com/ruby/error_highlight/commit/a221a4b0eb
2025-01-21Lrama v0.7.0ydah
Notes: Merged: https://github.com/ruby/ruby/pull/12595
2025-01-20[ruby/prism] Fix parser translator scope issues for implicit hash valuesEarlopain
`builder.pair_label` is no good since it makes use of variables that the parser gem encountered. Since the prism translator doesn't keep proper track of that information, the following code interprets the implicit value as a local variable, even though it is not in scope: ```rb def foo bar = 123 end { bar: } ``` https://github.com/ruby/prism/commit/bbeb5b083a