summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Moved ujit code invalidation test into bootstraptestMaxime Chevalier-Boisvert2021-10-201-27/+0
|
* MicroJIT: avoid having to invalidate running output codeAlan Wu2021-10-201-0/+27
|
* Fix evaluation order of hash values for duplicate keysJeremy Evans2021-10-182-5/+28
| | | | | | Fixes [Bug #17719] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Co-authored-by: Ivo Anjo <ivo@ivoanjo.me>
* [ruby/openssl] require Ruby 2.6 or laterKazuki Yamaguchi2021-10-161-9/+3
| | | | | | | | | | Drop support for Ruby 2.3, 2.4, and 2.5. As of 2021-10, Ruby 2.6 is the oldest version that still receives security fixes from the Ruby core team, so it doesn't make much sense to keep code for those ancient versions. https://github.com/ruby/openssl/commit/3436bd040d
* [ruby/openssl] test/openssl/test_ssl: use TLS 1.2 for finished_messages on ↵Kazuki Yamaguchi2021-10-161-0/+1
| | | | | | | | | LibreSSL LibreSSL 2.2.x has a bug in the Finished message handling with TLS 1.3. This is fixed by LibreSSL 3.3.2. https://github.com/ruby/openssl/commit/0bea59d245
* [ruby/openssl] fix segv in Timestamp::{Request,Response,TokenInfo}.newNobuhiro IMAI2021-10-161-0/+18
| | | | | | prevent `ossl_ts_*_free()` from calling when `d2i_TS_*_bio()` failed. https://github.com/ruby/openssl/commit/b29e215786
* [ruby/openssl] Fixed misspellingsNobuyoshi Nakada2021-10-161-8/+8
| | | | | | | | | | [ This is a backport to the 2.1 branch. ] Fixed misspellings reported at [Bug #16437], for default gems. (cherry picked from commit ruby/ruby@e68999c82c4863d33a6f893661fba1b7538c5671) https://github.com/ruby/openssl/commit/0f43789503
* [ruby/openssl] ssl: add SSLContext#tmp_dh=Kazuki Yamaguchi2021-10-161-7/+17
| | | | | | | | | | | | | | | | | | | | Provide a wrapper of SSL_set0_tmp_dh_pkey()/SSL_CTX_set_tmp_dh(), which sets the DH parameters used for ephemeral DH key exchange. SSLContext#tmp_dh_callback= already exists for this purpose, as a wrapper around SSL_CTX_set_tmp_dh_callback(), but it is considered obsolete and the OpenSSL API is deprecated for future removal. There is no practical use case where an application needs to use different DH parameters nowadays. This was originally introduced to support export grade ciphers. RDoc for #tmp_dh_callback= is updated to recommend the new #tmp_dh=. Note that current versions of OpenSSL support automatic ECDHE curve selection which is enabled by default. SSLContext#tmp_dh= should only be necessary if you must allow ancient clients which don't support ECDHE. https://github.com/ruby/openssl/commit/aa43da4f04
* [ruby/rdoc] fix: alias to method with call-seqMike Dalessio2021-10-161-0/+48
| | | | | | | | | | | | | This change fixes alias call-seq to return nil if the method's call-seq does not specify the alias. Previously, the alias's call-seq would be an empty string in this case which broke darkfish rendering. This change also backfills test coverage for 0ead786 which moved call-seq deduplication into AnyMethod. https://github.com/ruby/rdoc/commit/5ce2789b6f
* [ruby/rdoc] Support linking #==Mike Dalessio2021-10-161-1/+1
| | | | | | | | | See related commits: - ebc66662 for #=== - 4943d208 for #[], #[]=, #<<, and #>> https://github.com/ruby/rdoc/commit/8e47f7840a
* [ruby/rdoc] feat: add support for :category: on C functionsMike Dalessio2021-10-161-0/+33
| | | | https://github.com/ruby/rdoc/commit/45c92005fe
* [ruby/rdoc] fix: comments in C files use the global markup optionMike Dalessio2021-10-161-0/+17
| | | | | | | | Previously, Parser::C comments all defaulted to "rdoc" format, even when the user had set a different default with the `--markup=<choice>` option. https://github.com/ruby/rdoc/commit/4643b08a26
* [ruby/rdoc] test: add coverage for comment format in a C fileMike Dalessio2021-10-161-0/+16
| | | | https://github.com/ruby/rdoc/commit/3b8334a796
* Reap rarely leaked threadsNobuyoshi Nakada2021-10-141-0/+3
|
* [rubygems/rubygems] Remove save_loaded_featuresNobuyoshi Nakada2021-10-143-307/+259
| | | | https://github.com/rubygems/rubygems/commit/f5e408f83d
* [rubygems/rubygems] Keep loaded featuresNobuyoshi Nakada2021-10-141-6/+0
| | | | | | | | | | | Now `$LOADED_FEATURES` list is being maintained by `setup` and `teardown` and, only libaries under the temporary directory will be removed. As `save_loaded_features` removes the rest libraries other than this test directory, ordinary libraries loaded from files under rubygems also removed, and often causes constant redefinition warnings. https://github.com/rubygems/rubygems/commit/9e1f92aafd
* Add more `grpowned?` testsNobuyoshi Nakada2021-10-141-0/+20
|
* [ruby/irb] Ignore parenthesis during completionKaíque Kandy Koga2021-10-131-0/+7
| | | | | | Rename method https://github.com/ruby/irb/commit/619aecb412
* [ruby/reline] Skip when unable to set inputNobuyoshi Nakada2021-10-131-1/+6
| | | | | | | `Reline::Windows` always reads from the console by Windows API using fiddle. https://github.com/ruby/reline/commit/c3bf85f5af
* [ruby/reline] Close working pipesNobuyoshi Nakada2021-10-121-2/+7
| | | | https://github.com/ruby/reline/commit/ac519f57ea
* [ruby/reline] Fix test class not to overwriteNobuyoshi Nakada2021-10-111-1/+1
| | | | https://github.com/ruby/reline/commit/1e78984c49
* [ruby/reline] Reline doesn't have Reline.editing_modeaycabta2021-10-111-4/+0
| | | | https://github.com/ruby/reline/commit/90c61d8188
* [ruby/reline] Add I/O testaycabta2021-10-111-6/+10
| | | | https://github.com/ruby/reline/commit/bca9b9012f
* [ruby/reline] Use single quotes to match the othersaycabta2021-10-111-1/+1
| | | | https://github.com/ruby/reline/commit/58a7ca4101
* [ruby/reline] Add a test for Reline.delete_textaycabta2021-10-111-0/+19
| | | | https://github.com/ruby/reline/commit/d1c5700fa3
* [ruby/reline] Add assertions for Reline.pointaycabta2021-10-111-4/+2
| | | | https://github.com/ruby/reline/commit/a8c7b207f0
* [ruby/reline] Add a test for Reline.insert_text and Reline.line_bufferaycabta2021-10-111-5/+3
| | | | https://github.com/ruby/reline/commit/ae828208e1
* [ruby/irb] Set default return_formataycabta2021-10-111-0/+22
| | | | https://github.com/ruby/irb/commit/7ee15bc668
* [ruby/irb] Clean up a duplicated definitionTakashi Kokubun2021-10-111-7/+1
| | | | | | I simply forgot deleting it. https://github.com/ruby/irb/commit/65399d5e9f
* [ruby/irb] trufflruby fails on the show_source testTakashi Kokubun2021-10-101-0/+1
| | | | https://github.com/ruby/irb/commit/460bd12b87
* [ruby/irb] Add a test of find_end for show_source commandTakashi Kokubun2021-10-101-0/+29
| | | | https://github.com/ruby/irb/commit/68e6ca95a0
* [ruby/reline] Add tests for dialog with fullwidth chars and corner casesaycabta2021-10-112-0/+43
| | | | https://github.com/ruby/reline/commit/35ab5d47a8
* [ruby/ipaddr] Make IPAddr#include? consider range of argumentJeremy Evans2021-10-111-0/+2
| | | | | | | | | | It would be nice to use Range#cover? here, but it doesn't work correctly before Ruby 2.6. Switch to manual checks of the beginning of end of the ranges. Fixes Ruby Bug 14119 https://github.com/ruby/ipaddr/commit/f45630da31
* [ruby/io-console] Skip Interrupt test on Solaris tooNobuyoshi Nakada2021-10-111-1/+1
| | | | https://github.com/ruby/io-console/commit/48db3616da
* [ruby/rubygems] Check safety of packaged symlinksDavid Rodríguez2021-10-101-4/+7
| | | | | | | | | If we explicitly disallow the creation of symlinks that point to files outside of the destination directory, we can avoid any other safety checks while creating directories, because we can be sure they will always fall under the destination directory as well. https://github.com/rubygems/rubygems/commit/555692b8de
* [ruby/rubygems] Explicit check file not created outside of destinationDavid Rodríguez2021-10-101-0/+2
| | | | https://github.com/rubygems/rubygems/commit/1e363dbbcb
* [ruby/rubygems] Refactor symlink attack specsDavid Rodríguez2021-10-101-19/+15
| | | | https://github.com/rubygems/rubygems/commit/9180b390aa
* [ruby/reline] Fix tests to show dialog to the right edgeaycabta2021-10-091-8/+8
| | | | https://github.com/ruby/reline/commit/6a0d0ada94
* [ruby/reline] Add a test for full-width scrollbaraycabta2021-10-092-0/+19
| | | | https://github.com/ruby/reline/commit/cff83e68f8
* [rubygems/rubygems] Improve performance of Specification#missing_extensions?Masataka Pocke Kuwabara2021-10-091-0/+2
| | | | https://github.com/rubygems/rubygems/commit/90c1919f94
* Remove autoload for constant if the autoload failsJeremy Evans2021-10-081-1/+26
| | | | | | | | | | | | | Previously, if an autoload failed (the file was loaded, but the constant was not defined by the autoloaded file). Ruby will try to autoload again if you delete the autoloaded file from $LOADED_FEATURES. With this change, the autoload and the constant itself are removed as soon as it fails. To handle cases where multiple threads are autoloading, when deleting an autoload, handle the case where another thread already deleted it. Fixes [Bug #15790]
* Add tests for the edge caces of `String#end_with?`Nobuyoshi Nakada2021-10-081-0/+2
| | | | | | Also, check if a suffix is empty, to guarantee the assumption of `onigenc_get_left_adjust_char_head` that `*s` is always accessible, even in the case of `SHARABLE_MIDDLE_SUBSTRING`.
* [ruby/irb] Add tests for truncated show doc dialogaycabta2021-10-081-0/+46
| | | | | | But pending them now because they need dummy document data to show doc. https://github.com/ruby/irb/commit/ac471ee14e
* [ruby/reline] Add a test for narrow screen without scrollbaraycabta2021-10-081-0/+16
| | | | https://github.com/ruby/reline/commit/44cd35e65d
* [ruby/reline] Cut off the excess on narrow screenaycabta2021-10-081-0/+26
| | | | https://github.com/ruby/reline/commit/972cc993ca
* Dump outer variables tables when dumping an iseq to binaryAaron Patterson2021-10-071-0/+10
| | | | | | | | This commit dumps the outer variables table when dumping an iseq to binary. This fixes a case where Ractors aren't able to tell what outer variables belong to a lambda after the lambda is loaded via ISeq.load_from_binary [Bug #18232] [ruby-core:105504]
* Remove duplicate value checks on `mrhs` which always has the valueNobuyoshi Nakada2021-10-081-3/+5
|
* [ruby/ipaddr] Support zone identifiers in IPv6 addressesJeremy Evans2021-10-071-1/+25
| | | | | | | | | | These are supported by Ruby's socket library if the operating system supports zone indentifiers, so they should be supported by ipaddr. See RFCs 4007 and 6874 for additional information. Implements Ruby Feature #10911 https://github.com/ruby/ipaddr/commit/09a6408fb2
* [ruby/ipaddr] Add netmask method that returns net mask as string.Bogdan Irimie2021-10-071-0/+11
| | | | https://github.com/ruby/ipaddr/commit/283d16f3a3
* [ruby/ipaddr] Disallow leading zeros in maskJeremy Evans2021-10-071-0/+2
| | | | https://github.com/ruby/ipaddr/commit/f49d2d49a4