aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* [Bug #18998] Honor `#to_str` next to `#to_int` in `Kernel#Integer`Nobuyoshi Nakada2022-10-201-0/+7
|
* Avoid missed wakeup with fiber scheduler and Fiber.blocking. (#6588)Samuel Williams2022-10-202-0/+53
| | | * Ensure that blocked fibers don't prevent valid wakeups.
* Transition frozen string to frozen root shapeJemma Issroff2022-10-191-0/+12
| | | | Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* [rubygems/rubygems] Use [] instead of double-quotes Hiroshi SHIBATA2022-10-191-1/+1
|
* Bypass git submodule add/update with git config protocol.file.allow=always ↵Hiroshi SHIBATA2022-10-191-0/+5
| | | | | | option. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Add support for anonymous shared IO buffers. (#6580)Samuel Williams2022-10-191-0/+15
|
* [ruby/fiddle] Add support for linker script on LinuxSutou Kouhei2022-10-181-0/+34
| | | | | | | | GitHub: fix https://github.com/ruby/fiddle/pull/107 Reported by nicholas a. evans. Thanks!!! https://github.com/ruby/fiddle/commit/49ea1490df
* [ruby/fiddle] Fix filenames for glibc SO files on alpha and ia64John Paul Adrian Glaubitz2022-10-181-2/+8
| | | | | | | | (https://github.com/ruby/fiddle/pull/105) Fixes [Bug #18645] https://github.com/ruby/fiddle/commit/9a5a1dab1d
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-10-1827-476/+470
| | | | https://github.com/rubygems/rubygems/commit/6214d00b2315ed37c76b1fbc1c72f61f92ba5a65
* [rubygems/rubygems] TestGemSecuritySigner#test_sign: Correct the expectation ↵Jarek Prokop2022-10-181-6/+6
| | | | | | for new cert. https://github.com/rubygems/rubygems/commit/bed360410d
* [rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature ↵Jarek Prokop2022-10-181-1/+1
| | | | | | algorithm. https://github.com/rubygems/rubygems/commit/e2d533591c
* [rubygems/rubygems] Set Subject Key Identifier in test to correspond to the ↵Jarek Prokop2022-10-181-4/+4
| | | | | | new certificate. https://github.com/rubygems/rubygems/commit/3a607f43d1
* [ruby/irb] Always use local variables in current context to parse code ↵tomoya ishida2022-10-184-4/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/397) * Use local_variables for colorize, code_block_open check, nesting_level and assignment_expression check * Check if expression is an assignment BEFORE evaluating it. evaluate might define new localvars and change result of assignment_expression? * Add local_variables dependent code test * pend local variable dependent test on truffleruby code_block_open is not working on truffleruby * Always pass context to RubyLex#lex * Rename local_variable_assign_code generator method name * Add assignment expression truncate test * Add Context#local_variables and make generate_local_variables_assign_code more simple * Update lib/irb/input-method.rb Co-authored-by: Stan Lo <stan001212@gmail.com> * Add a comment why assignment expression check should be done before evaluate https://github.com/ruby/irb/commit/c8b3877281 Co-authored-by: Stan Lo <stan001212@gmail.com> Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
* [ruby/irb] Fix code terminated check with heredoc and backtick ↵tomoya ishida2022-10-181-0/+42
| | | | | | | | | | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/390) * Fix backtick method def method call handled as backtick open * Fix handling heredoc in check_string_literal * Sort result of lexer.parse by pos in ruby<2.7. It's not sorted when the given code includes heredoc. * Update lib/irb/ruby-lex.rb Co-authored-by: Stan Lo <stan001212@gmail.com> * Update lib/irb/ruby-lex.rb Co-authored-by: Stan Lo <stan001212@gmail.com> * Add check_string_literal test for heredoc code that does not end with newline https://github.com/ruby/irb/commit/44bc712460 Co-authored-by: Stan Lo <stan001212@gmail.com>
* [Bug #19042] Fix Dir.glob brace with '/'Hiroshi Shirosaki2022-10-181-0/+14
| | | | | | | | Dir.glob brace pattern with '/' after '**' does not match paths in recursive expansion process. We expand braces with '/' before expanding a recursive. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [ruby/irb] Remove unnecessary coloring support checkst00122022-10-171-30/+17
| | | | https://github.com/ruby/irb/commit/ddd7dbe2c5
* [ruby/openssl] add BN#mod_sqrtBen Toews2022-10-171-0/+6
| | | | https://github.com/ruby/openssl/commit/4619ab3e76
* [ruby/openssl] Add support to SSL_CTX_set_keylog_callbackChristophe De La Fuente2022-10-171-0/+48
| | | | | | | | | | | | | | | - This callback is invoked when TLS key material is generated or received, in order to allow applications to store this keying material for debugging purposes. - It is invoked with an `SSLSocket` and a string containing the key material in the format used by NSS for its SSLKEYLOGFILE debugging output. - This commit adds the Ruby binding `keylog_cb` and the related tests - It is only compatible with OpenSSL >= 1.1.1. Even if LibreSSL implements `SSL_CTX_set_keylog_callback()` from v3.4.2, it does nothing (see https://github.com/libressl-portable/openbsd/commit/648d39f0f035835d0653342d139883b9661e9cb6) https://github.com/ruby/openssl/commit/3b63232cf1
* [ruby/openssl] pkey/ec: check existence of public key component before exportingKazuki Yamaguchi2022-10-171-0/+2
| | | | | | | | | | | | | i2d_PUBKEY_bio() against an EC_KEY without the public key component trggers a null dereference. This is a regression introduced by commit https://github.com/ruby/openssl/commit/56f0d34d63fb ("pkey: refactor #export/#to_pem and #to_der", 2017-06-14). Fixes https://github.com/ruby/openssl/pull/527#issuecomment-1220504524 Fixes https://github.com/ruby/openssl/issues/369#issuecomment-1221554057 https://github.com/ruby/openssl/commit/f6ee0fa4de
* [ruby/openssl] pkey: restore support for decoding "openssl ecparam -genkey" ↵Kazuki Yamaguchi2022-10-171-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | output Scan through the input for a private key, then fallback to generic decoder. OpenSSL 3.0's OSSL_DECODER supports encoded key parameters. The PEM header "-----BEGIN EC PARAMETERS-----" is used by one of such encoding formats. While this is useful for OpenSSL::PKey::PKey, an edge case has been discovered. The openssl CLI command line "openssl ecparam -genkey" prints two PEM blocks in a row, one for EC parameters and another for the private key. Feeding the whole output into OSSL_DECODER results in only the first PEM block, the key parameters, being decoded. Previously, ruby/openssl did not support decoding key parameters and it would decode the private key PEM block instead. While the new behavior is technically correct, "openssl ecparam -genkey" is so widely used that ruby/openssl does not want to break existing applications. Fixes https://github.com/ruby/openssl/pull/535 https://github.com/ruby/openssl/commit/d486c82833
* [ruby/openssl] pkey/dsa: let PKey::DSA.generate choose appropriate q sizeKazuki Yamaguchi2022-10-171-0/+19
| | | | | | | | | | | | | DSA parameters generation via EVP_PKEY_paramgen() will not automatically adjust the size of q value but uses 224 bits by default unless specified explicitly. This behavior is different from the now-deprecated DSA_generate_parameters_ex(), which PKey::DSA.generate used to call. Fixes https://github.com/ruby/openssl/issues/483 Fixes: https://github.com/ruby/openssl/commit/1800a8d5ebaf ("pkey/dsa: use high level EVP interface to generate parameters and keys", 2020-05-17) https://github.com/ruby/openssl/commit/0105975a0b
* [ruby/openssl] hmac: use EVP_PKEY_new_raw_private_key() if availableKazuki Yamaguchi2022-10-171-0/+8
| | | | | | | | | | | | | | | | Current OpenSSL 3.0.x release has a regression with zero-length MAC keys. While this issue should be fixed in a future release of OpenSSL, we can use EVP_PKEY_new_raw_private_key() in place of the problematic EVP_PKEY_new_mac_key() to avoid the issue. OpenSSL 3.0's man page recommends using it regardless: > EVP_PKEY_new_mac_key() works in the same way as > EVP_PKEY_new_raw_private_key(). New applications should use > EVP_PKEY_new_raw_private_key() instead. Fixes https://github.com/ruby/openssl/issues/369#issuecomment-1224912710 https://github.com/ruby/openssl/commit/4293f18b1f
* [ruby/openssl] ssl: enable generating keying material from SSL sessionsmadblobfish2022-10-171-0/+13
| | | | | | Add OpenSSL::SSL::SSLSocket#export_keying_material to support RFC 5705 https://github.com/ruby/openssl/commit/65530b887e
* [ruby/openssl] Check if the option is an Hash in `pkey_ctx_apply_options0()`Nobuhiro IMAI2022-10-171-0/+5
| | | | | | causes SEGV if it is an Array or something like that. https://github.com/ruby/openssl/commit/ef23525210
* [ruby/openssl] [CI] TestHMAC#test_dup - remove 'pend' for OpenSSL 3MSP-Greg2022-10-171-1/+0
| | | | https://github.com/ruby/openssl/commit/626b0434a6
* Change a tab to spacesyui-knk2022-10-171-8/+8
|
* Add missing `#close` call to `test_dup_timeout` test. (#6560)Samuel Williams2022-10-151-0/+2
|
* Introduce `Fiber::Scheduler#io_select` hook for non-blocking `IO.select`. ↵Samuel Williams2022-10-152-0/+29
| | | | (#6559)
* Add a test for transition orderAaron Patterson2022-10-141-0/+25
| | | | | We only cache the destination shape id, but that can lead to false cache hits. This patch tests that we correctly handle false cache hits
* [ruby/delegate] Fix DelegateClass block "method redefined" warningJonathan Hefner2022-10-151-0/+12
| | | | | | | | | | | | | | | | | | | | | | | This commit prevents "method redefined" warnings when overriding methods within a `DelegateClass` block, such as in the following example: ```ruby Base = Class.new do def foo "foo" end end Overridden = DelegateClass(Base) do def foo super + "!" end end ``` Fixes https://bugs.ruby-lang.org/issues/19047. https://github.com/ruby/delegate/commit/214fae86de
* Copy `IO#timeout` on `IO#dup`. (#6546)Samuel Williams2022-10-151-0/+8
|
* [ruby/pp] [Feature #19045] Add support Data#pretty_printmanga_osyo2022-10-141-0/+9
| | | | https://github.com/ruby/pp/commit/343a20d721
* Only expose Ruby Shape API if VM_CHECK_MODE is enabledAaron Patterson2022-10-131-1/+1
|
* [ruby/uri] Fix splitting relative URINobuyoshi Nakada2022-10-131-0/+7
| | | | https://github.com/ruby/uri/commit/ffbab83de6
* Add missing `f.resume` to fiber test. (#6539)Samuel Williams2022-10-131-0/+1
|
* URI.parse should set empty string in host instead of nilNARUSE, Yui2022-10-132-4/+11
|
* Suppress a "warning: method redefined" in test/ruby/test_method.rbYusuke Endoh2022-10-121-0/+1
|
* Suppress warnings in test/ruby/test_ast.rbYusuke Endoh2022-10-121-1/+9
| | | | | The tests for error tolerance printed some warnings. This change suppresses them.
* Simplify implementation of scheduler `io_read` and `io_write`. (#6527)Samuel Williams2022-10-121-6/+4
|
* Add :ssl_min_version and :ssl_max_version optionsKazuki Yamaguchi2022-10-121-19/+18
| | | | | | Replace :ssl_version option with these two new options. These provide access to OpenSSL::SSL::SSLContext#{min,max}_version=, which is the recommended way to specify SSL/TLS protocol versions.
* Improvements to IO::Buffer implementation and documentation. (#6525)Samuel Williams2022-10-122-53/+50
|
* Make inline cache reads / writes atomic with object shapesJemma Issroff2022-10-111-24/+33
| | | | | | | | | | | | | | Prior to this commit, we were reading and writing ivar index and shape ID in inline caches in two separate instructions when getting and setting ivars. This meant there was a race condition with ractors and these caches where one ractor could change a value in the cache while another was still reading from it. This commit instead reads and writes shape ID and ivar index to inline caches atomically so there is no longer a race condition. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org> Co-Authored-By: John Hawthorn <john@hawthorn.email>
* Revert "Revert "This commit implements the Object Shapes technique in CRuby.""Jemma Issroff2022-10-114-2/+185
| | | | This reverts commit 9a6803c90b817f70389cae10d60b50ad752da48f.
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-10-112-5/+5
| | | | | | | | | | | | | | | | | Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.30 to 0.9.31. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.30...v0.9.31) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> https://github.com/rubygems/rubygems/commit/4ad57bacea
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-10-112-5/+5
| | | | | | | | | | | | | | | | | | | /test/rubygems/test_gem_ext_cargo_builder/custom_name Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.30 to 0.9.31. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.30...v0.9.31) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> https://github.com/rubygems/rubygems/commit/476490d529
* Ignore failure to set nonblock mode. (#6524)Samuel Williams2022-10-111-0/+16
|
* Add MatchData#deconstruct/deconstruct_keysVladimir Dementyev2022-10-101-0/+32
|
* Do not set `$!` to `SyntaxError` when error tolerantNobuyoshi Nakada2022-10-091-0/+2
|
* Extract `assert_error_tolerant`Nobuyoshi Nakada2022-10-091-100/+27
|
* Allow abbreviated dump options with additional optionsNobuyoshi Nakada2022-10-091-2/+3
|