summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Document Fiber::SchedulerInterface#io_read and #io_writezverok2021-12-211-1/+67
|
* Rename IMMUTABLE to READONLY.Samuel Williams2021-12-214-37/+55
|
* Improve interface for get/set/copy.Samuel Williams2021-12-214-67/+134
|
* Fix handling of clear with offset and without length.Samuel Williams2021-12-211-1/+3
|
* Mark non-private mapped files as external.Samuel Williams2021-12-213-20/+23
|
* Default `IO::Buffer#get_string` to use BINARY encoding.Samuel Williams2021-12-212-2/+5
|
* Add tests for `IO::Buffer` `get`/`set`.Samuel Williams2021-12-211-0/+36
|
* Rename `to_str` -> `get_string` and add support for encodings.Samuel Williams2021-12-212-33/+48
|
* Improved exception usage/classes.Samuel Williams2021-12-214-38/+49
|
* Fix handling of frozens strings.Samuel Williams2021-12-212-1/+14
|
* Fix mapping invalid non-file object.Samuel Williams2021-12-212-4/+13
|
* [DOC] Enhanced RDoc for IO (#5307)Burdette Lamar2021-12-201-49/+77
| | | | | | | | | | | | | Treated: #sync #sync= #fsync #fdatasync #fileno #pid #inspect #to_io
* [rubygems/rubygems] Print warning when running potentially problematic ↵David Rodríguez2021-12-212-0/+10
| | | | | | | | rubygems + ruby combinations https://github.com/rubygems/rubygems/commit/d6df0b7de0 Co-authored-by: André Arko <andre@arko.net>
* [rubygems/rubygems] Rename `BUNDLE_SPEC_RUN` environment variableDavid Rodríguez2021-12-213-10/+10
| | | | | | | | The `BUNDLE_` prefix should be reserved to first class settings that should be listed when running `bundle config`. This one is just a hacky environment variable that has not corresponding documented setting. https://github.com/rubygems/rubygems/commit/7e255c5058
* [rubygems/rubygems] Remove ancient checkDavid Rodríguez2021-12-211-10/+0
| | | | https://github.com/rubygems/rubygems/commit/d647ab5607
* Show whether object is garbage in rb_raw_obj_info()Alan Wu2021-12-201-1/+2
| | | | | | When using `rp(obj)` for debugging during development, it may be useful to know that an object is soon to be swept. Add a new letter to the object dump for whether the object is garbage. It's easy to forget about lazy sweep.
* [rubygems/rubygems] Skip find_in_unresolved_tree test for TruffleRuby due to ↵Brandon Fish2021-12-211-0/+1
| | | | | | longer runtime https://github.com/rubygems/rubygems/commit/36b8fbc508
* Remove Class#descendantsJeremy Evans2021-12-205-111/+0
|
* Fix location of extensions in bundled gems when static-linked-extNobuyoshi Nakada2021-12-211-1/+1
| | | | | Install bundled gem extension files to the gem extension directory under DESTDIR, when static-linked-ext as well as non-static case.
* [DOC] Document Thread::Backtrace.limitzverok2021-12-201-1/+55
|
* [ruby/reline] Finalize when exception occurredaycabta2021-12-212-2/+7
| | | | | | https://github.com/ruby/reline/commit/1f8a3aee43 Co-authored-by: Alex Gittemeier <me@a.lexg.dev>
* [ruby/reline] Split off set_signal_handler methodaycabta2021-12-212-27/+31
| | | | | | | | In some tests, the LineEditor#reset method is always called, but doesn't need to set the signal handlers there, so cuts it out to a separate method. https://github.com/ruby/reline/commit/b143c4f5f9
* [ruby/reline] Remove unnecessary clearing signal handleraycabta2021-12-211-2/+0
| | | | https://github.com/ruby/reline/commit/7a758e73dc
* * 2021-12-21 [ci skip]git2021-12-211-1/+1
|
* test/fiber/test_io_buffer.rb: fix file descriptor leaksKazuki Yamaguchi2021-12-211-1/+12
| | | | | | | | | I got the warning while running "make test-all": Leaked file descriptor: TestFiberIOBuffer#test_write_nonblock: 9 : #<UNIXSocket:fd 9> Closed file descriptor: TestFiberIOBuffer#test_read_write_blocking: 9 Leaked file descriptor: TestFiberIOBuffer#test_timeout_after: 10 : #<UNIXSocket:fd 10> Closed file descriptor: TestFiberIOBuffer#test_read_nonblock: 10
* [ruby/openssl] pkey: use EVP_PKEY_CTX_new_from_name() on OpenSSL 3.0Kazuki Yamaguchi2021-12-201-0/+6
| | | | | | | Replace EVP_PKEY_CTX_new_id() with the new EVP_PKEY_CTX_new_from_name() which takes the algorithm name in a string instead of in an NID. https://github.com/ruby/openssl/commit/d6535d13d1
* [ruby/openssl] pkey: assume a pkey always has public key components on ↵Kazuki Yamaguchi2021-12-201-0/+11
| | | | | | | | | | | | | OpenSSL 3.0 OpenSSL 3.0's EVP_PKEY_get0() returns NULL for provider-backed pkeys. This causes segfault because it was supposed to never return NULL before. We can't check the existence of public key components in this way on OpenSSL 3.0. Let's just skip it for now. https://github.com/ruby/openssl/commit/ccdb6f7bfa
* [ruby/openssl] ssl: update test_options_disable_versionsKazuki Yamaguchi2021-12-201-35/+40
| | | | | | | Use the combination of TLS 1.2 and TLS 1.3 instead of TLS 1.1 and TLS 1.2 so that will the test case will be run on latest platforms. https://github.com/ruby/openssl/commit/e168df0f35
* [ruby/openssl] ssl: update test_accept_errors_include_peeraddr test caseKazuki Yamaguchi2021-12-201-6/+4
| | | | | | | Use a different invalid data example to prevent SSLSocket#accept from reaching EOF. https://github.com/ruby/openssl/commit/2e089c1916
* [ruby/openssl] ssl: add constants for new SSL_OP_* flagsKazuki Yamaguchi2021-12-201-6/+29
| | | | | | | Add all SSL_OP_* constants defined in OpenSSL 3.0.0 which are not specific to DTLS. https://github.com/ruby/openssl/commit/b1ee2f23b2
* [ruby/openssl] engine: disable OpenSSL::Engine on OpenSSL 3.0Kazuki Yamaguchi2021-12-204-7/+11
| | | | | | | | | | | | The entire ENGINE API is deprecated in OpenSSL 3.0 in favor of the new "Provider" concept. OpenSSL::Engine will not be defined when compiled with OpenSSL 3.0. We would need a way to interact with providers from Ruby programs, but since the concept is completely different from the ENGINE API, it will not be through the current OpenSSL::Engine interface. https://github.com/ruby/openssl/commit/69a27d8de4
* [ruby/openssl] hmac: skip test_dup on OpenSSL 3.0 for nowKazuki Yamaguchi2021-12-201-0/+1
| | | | | | | | EVP_MD_CTX_copy() doesn't seem to work as intended on HMAC EVP_MD_CTX on OpenSSL 3.0.0 and causes a double free. I haven't found the root problem yet, but let's skip the test case for now. https://github.com/ruby/openssl/commit/4699581639
* [ruby/openssl] hmac: fix wrong usage of EVP_DigestSignFinal()Kazuki Yamaguchi2021-12-201-2/+2
| | | | | | | According to the manpage, the "siglen" parameter must be initialized beforehand. https://github.com/ruby/openssl/commit/6a60c7b2e7
* [ruby/openssl] cipher: update test_ciphersKazuki Yamaguchi2021-12-201-8/+5
| | | | | | | Do not attempt to actually use all algorithms. Not all algorithms listed in OpenSSL::Cipher.ciphers are always available. https://github.com/ruby/openssl/commit/91d04f991f
* [ruby/openssl] pkey: deprecate PKey#set_* methodsKazuki Yamaguchi2021-12-206-68/+149
| | | | | | | | | | | | | | | | | | | | | | | OpenSSL 3.0 made EVP_PKEY immutable. This means we can only have a const pointer of the low level struct and the following methods can no longer be provided when linked against OpenSSL 3.0: - OpenSSL::PKey::RSA#set_key - OpenSSL::PKey::RSA#set_factors - OpenSSL::PKey::RSA#set_crt_params - OpenSSL::PKey::DSA#set_pqg - OpenSSL::PKey::DSA#set_key - OpenSSL::PKey::DH#set_pqg - OpenSSL::PKey::DH#set_key - OpenSSL::PKey::EC#group= - OpenSSL::PKey::EC#private_key= - OpenSSL::PKey::EC#public_key= There is no direct replacement for this functionality at the moment. I plan to introduce a wrapper around EVP_PKEY_fromdata(), which takes all key components at once to construct an EVP_PKEY. https://github.com/ruby/openssl/commit/6848d2d969
* [ruby/openssl] pkey/ec: deprecate OpenSSL::PKey::EC#generate_key!Kazuki Yamaguchi2021-12-202-8/+17
| | | | | | | | OpenSSL::PKey::EC#generate_key! will not work on OpenSSL 3.0 because keys are made immutable. Users should use OpenSSL::PKey.generate_key instead. https://github.com/ruby/openssl/commit/5e2e66cce8
* [ruby/openssl] pkey/dh: deprecate OpenSSL::PKey::DH#generate_key!Kazuki Yamaguchi2021-12-203-16/+34
| | | | | | | | OpenSSL::PKey::DH#generate_key! will not work on OpenSSL 3.0 because keys are made immutable. Users should use OpenSSL::PKey.generate_key instead. https://github.com/ruby/openssl/commit/8ee6a582c7
* [ruby/openssl] pkey/ec: avoid using EC#public_key= in EC#dh_compute_keyKazuki Yamaguchi2021-12-201-3/+8
| | | | | | | | Similarly to DH#compute_key, work around it by constructing a SubjectPublicKeyInfo. This should be considered as a temporary implementation. https://github.com/ruby/openssl/commit/fc9aabc18d
* [ruby/openssl] pkey/dh: avoid using DH#set_key in DH#compute_keyKazuki Yamaguchi2021-12-201-3/+13
| | | | | | | | | | | | DH#set_key will not work on OpenSSL 3.0 because keys are immutable. For now, let's reimplement DH#compute_key by manually constructing a DER-encoded SubjectPublicKeyInfo structure and feeding it to OpenSSL::PKey.read. Eventually, we should implement a new method around EVP_PKEY_fromdata() and use it instead. https://github.com/ruby/openssl/commit/46ca47060c
* [ruby/openssl] pkey: use EVP_PKEY_dup() if availableKazuki Yamaguchi2021-12-206-1/+42
| | | | | | | We can use it to implement OpenSSL::PKey::PKey#initialize_copy. This should work on all key types, not just DH/DSA/EC/RSA types. https://github.com/ruby/openssl/commit/66cd8cbaaf
* [ruby/openssl] pkey: allocate EVP_PKEY on #initializeKazuki Yamaguchi2021-12-206-163/+218
| | | | | | | | | Allocate an EVP_PKEY when the content is ready: when #initialize or #initialize_copy is called, rather than when a T_DATA is allocated. This is more natural because the lower level API has been deprecated and an EVP_PKEY is becoming the minimum unit of handling keys. https://github.com/ruby/openssl/commit/74f6c61756
* [ruby/openssl] pkey: do not check NULL argument in ossl_pkey_new()Kazuki Yamaguchi2021-12-202-5/+2
| | | | | | | Passing NULL to ossl_pkey_new() makes no sense in the first place, and in fact it is ensured not to be NULL in all cases. https://github.com/ruby/openssl/commit/316cb2a41f
* [ruby/openssl] pkey: use OSSL_DECODER to load encrypted PEM on OpenSSL 3.0Kazuki Yamaguchi2021-12-201-0/+40
| | | | | | | | | | | | | | | | OpenSSL 3.0 has rewritten routines to load pkeys (PEM_read_bio_* and d2i_* functions) around the newly introduced OSSL_DECODER API. This comes with a slight behavior change. They now decrypt and parse each encountered PEM block, then check the kind of the block. This used to be the reverse: they checked the PEM header to see the kind, and then decrypted the content. This means that the password callback may now be called repeatedly. Let's use the OSSL_DECODER API directly on OpenSSL 3.0 so that the return value from the password callback will be reused automatically. https://github.com/ruby/openssl/commit/a84ea531bb
* [ruby/openssl] pkey: test parsing concatenated PEM stringKazuki Yamaguchi2021-12-201-0/+6
| | | | | | | | | | | | | PEM-encoded private keys are sometimes stored together with irrelevant PEM blocks, such as the corresponding X.509 certificate. PEM_read_bio_*() family automatically skips unknown PEM blocks, but on OpenSSL 3.0 we will be using the new OSSL_DECODER API instead due to some breaking changes around the password callback. Let's add a test case so that we won't break the current behavior. https://github.com/ruby/openssl/commit/8c185e0ae5
* test/ruby/test_ast.rb: Avoid a "method redefined" warningYusuke Endoh2021-12-201-6/+6
|
* [DOC] Skip tests if only NEWS.md changedNobuyoshi Nakada2021-12-201-1/+6
|
* Update bundled gems list at 2021-12-20git2021-12-201-1/+1
|
* Update TypeProf to 0.21.0Yusuke Endoh2021-12-201-1/+1
|
* [ruby/psych] psych depends stringio only CRubyHiroshi SHIBATA2021-12-201-1/+1
| | | | https://github.com/ruby/psych/commit/e7bbf26cb2
* Update default gems list at 706c7a27fa00f72ec4f5d2f3af8151 [ci skip]git2021-12-201-1/+1
|