summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2025-01-20[ruby/openssl] extconf.rb: remove dir_config("kerberos")Kazuki Yamaguchi
The dir_config was introduced by Ruby trunk r4181. Since support for Kerberos cipher suites has been removed in OpenSSL 1.1.0, it is no longer necessary. Although ruby/openssl did not directly depend on the MIT Kerberos library, it was an optional transitive dependency. Unless it was disabled by a compile-time option, the OpenSSL headers would try to include <krb5.h>. https://github.com/ruby/openssl/commit/78d028c332
2025-01-20[ruby/openssl] Require OpenSSL 1.1.0 or laterKazuki Yamaguchi
Drop support for OpenSSL 1.0.2. It has reached upstream EOL in 2019-12. Most distributions that shipped with OpenSSL 1.0.2 have also reached EOL, or provide a newer version in the package repository: - RHEL 7 (EOL 2024-06) - Ubuntu 16.04 LTS (EOL 2021-04) - Amazon Linux 2 (EOL 2026-06, but OpenSSL 1.1.1 can be installed via the openssl11{,-devel} package) https://github.com/ruby/openssl/commit/38ec6fd50e
2025-01-20[ruby/openssl] pkcs7: remove unnecessary const castKazuki Yamaguchi
PKCS7_encrypt() and PKCS7_SIGNER_INFO_set() take const EVP_CIPHER and EVP_MD at least since OpenSSL 0.9.7. https://github.com/ruby/openssl/commit/9db621a5c0
2025-01-20[ruby/openssl] engine: remove constants for ENGINE_METHOD_BN_MOD_EXP{,_CRT}Kazuki Yamaguchi
These macros do not exist in OpenSSL 0.9.7 or later, which was released in 2002. https://github.com/ruby/openssl/commit/938a1e6aab
2025-01-20Remove dead function rb_func_proc_newPeter Zhu
Notes: Merged: https://github.com/ruby/ruby/pull/12566
2025-01-20Remove rb_obj_as_string for ParserS-H-GAMELINKS
Ruby Parser not used rb_obj_as_string. And obj_as_string property can be removed from Universal Parser. Notes: Merged: https://github.com/ruby/ruby/pull/12603
2025-01-20.travis.yml: Drop arm64 case.Jun Aruga
We started running a Linux arm64 case in GitHub Actions.[1] So, it's time to drop the Linux arm64 case in Travis CI. [1] https://github.com/ruby/ruby/commit/a9d37ac3e5385c7aaec64e32de3d254903f4b5c0 Notes: Merged: https://github.com/ruby/ruby/pull/12604
2025-01-20[ruby/json] Reject invalid number: `-` `-.1` `-e0`tompng
https://github.com/ruby/json/commit/b9bfeecfa9 Notes: Merged: https://github.com/ruby/ruby/pull/12602
2025-01-20[ruby/json] Raise parse error on invalid commentstompng
https://github.com/ruby/json/commit/2f57f40467 Notes: Merged: https://github.com/ruby/ruby/pull/12602
2025-01-20[ruby/json] Fix parsing incomplete unicode escape "\uaaa"tompng
https://github.com/ruby/json/commit/86c0d4eb7e Notes: Merged: https://github.com/ruby/ruby/pull/12602
2025-01-20[ruby/json] Fix JSON::Fragment#to_json signatureJean Boussier
https://github.com/ruby/json/commit/f8817fe56c Notes: Merged: https://github.com/ruby/ruby/pull/12602
2025-01-20[ruby/json] Introduce JSON::FragmentÉtienne Barrié
https://github.com/ruby/json/commit/9e3500f345 Co-authored-by: Jean Boussier <[email protected]> Notes: Merged: https://github.com/ruby/ruby/pull/12602
2025-01-20ext/json no longer uses ragelNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/12599