summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2025-11-22[ruby/json] Fix the parser to not accept invalid escapesJean Boussier
Only `"\/bfnrtu` are valid after a backslash. https://github.com/ruby/json/commit/f7f8f552ed
2025-11-22[ruby/json] Use booleans in string_scanJean Boussier
https://github.com/ruby/json/commit/256cad5def
2025-11-21[ruby/json] Move RUBY_TYPED_FROZEN_SHAREABLE macro to json.hÉtienne Barrié
https://github.com/ruby/json/commit/2a4ebe8250
2025-11-21[ruby/json] Ractor-shareable JSON::CoderÉtienne Barrié
https://github.com/ruby/json/commit/58d60d6b76
2025-11-20[ruby/json] Remove unused symbolsÉtienne Barrié
https://github.com/ruby/json/commit/9364d0c761
2025-11-20[ruby/resolv] Move minimal registry access to the extensionNobuyoshi Nakada
Now win32/registry depends on fiddle, and its conversion is complex and too generic for the purpose of resolv. https://github.com/ruby/resolv/commit/bd24870d2d
2025-11-19[ruby/etc] Win32: Drop support for older MSVCNobuyoshi Nakada
Ruby 2.7 supports MSVC 12.0/_MSC_VER 1800 or later. https://github.com/ruby/etc/commit/6f4404ec88
2025-11-19[ruby/etc] Bump up the required ruby version to 2.7Nobuyoshi Nakada
https://github.com/ruby/etc/commit/d047bb6856
2025-11-19Win32: Drop support for older than MSVC 9.0/_MSC_VER 1500Nobuyoshi Nakada
Visual C++ 2008 (9.0): - _MSC_VER: 1500 - MSVCRT_VERSION: 90
2025-11-19Win32: Drop support for older than MSVC 8.0/_MSC_VER 1400Nobuyoshi Nakada
Visual C++ 2005 (8.0): - _MSC_VER: 1400 - MSVCRT_VERSION: 80
2025-11-18[ruby/json] parser.c: Remove unued JSON_ParserStruct.parsing_nameJean Boussier
https://github.com/ruby/json/commit/ab5efca015
2025-11-18[ruby/json] Use #if instead of #ifdef when checking for JSON_DEBUG so ↵Scott Myron
debugging code is not generated when JSON_DEBUG=0. https://github.com/ruby/json/commit/4f1adb10d3
2025-11-17strnlen is not used nowv4.0.0-preview2NARUSE, Yui
2025-11-15[ruby/stringio] [DOC] Fix #seek linkBurdette Lamar
(https://github.com/ruby/stringio/pull/174) Method #seek deserves (and will get) documentation independent of that in class IO. Meanwhile, the link should go someplace sensible and useful. https://github.com/ruby/stringio/commit/d026549719
2025-11-15[ruby/stringio] [DOC] Doc for StringIO.sizeBurdette Lamar
(https://github.com/ruby/stringio/pull/171) https://github.com/ruby/stringio/commit/95a111017a
2025-11-15[ruby/stringio] [DOC] Tweaks for StringIO#each_lineBurdette Lamar
(https://github.com/ruby/stringio/pull/165) Adds to "Position": pos inside a character. Makes a couple of minor corrections. --------- https://github.com/ruby/stringio/commit/ff332abafa Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
2025-11-13ext/socket: Set raddrinfo thread as detached before thread start (#15142)Luke Gruber
We were seeing segfaults when calling `pthread_detach`. Apparently in some versions of glibc there is a race between when this is called (usually right after starting a thread) and a short-lived thread's shutdown routine. The bug has been reported to glibc: https://sourceware.org/bugzilla/show_bug.cgi?id=19951 I haven't been able to reproduce it on my Linux desktop but apparently it's easier to reproduce on certain kinds of servers. As a workaround, we can set the thread's detach state before thread start. I don't know of a platform that doesn't have `pthread_attr_setdetachstate`, but to be safe we check for it in `extconf.rb` and use `pthread_detach` as a backup if it isn't available. Fixes [Bug #21679]
2025-11-13Revert "include ruby.h to avoid load failures"Hiroshi SHIBATA
This reverts commit 35783854244f8dc6a9f7fb4dfae752f8361c66bd.
2025-11-12[ruby/io-wait] Define ABI versionNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/ad6f47fd3a
2025-11-13include ruby.h to avoid load failuresKoichi Sasada
``` .../io/wait.so: undefined symbol: ruby_abi_version - ruby_abi_version ```
2025-11-12[ruby/io-wait] No method definition is always ractor-safeNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/44b68fc51b
2025-11-12[ruby/io-wait] Drop support for ruby 3.1Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/33efb55d0e
2025-11-12[ruby/io-wait] Drop support for ruby 3.0Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/62626dae8c
2025-11-12[ruby/io-wait] Drop support for ruby 2.7Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/dad4c70f2a
2025-11-12[ruby/io-wait] Remove `IO#nread` and `IO#ready?Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/1decadc7f9
2025-11-12[ruby/io-wait] Start 0.4.0Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/f5c81139dd
2025-11-12[ruby/io-wait] Bump up to 0.3.6Nobuyoshi Nakada
https://github.com/ruby/io-wait/commit/bf41116ff5
2025-11-12[ruby/io-wait] Deprecate `IO#nread` and `IO#ready?`Nobuyoshi Nakada
To use these methods, busy loop is necessary somewhere. Use other method to wait instead. https://github.com/ruby/io-wait/commit/8ff4821cea
2025-11-12Development of 3.1.9 started.Sutou Kouhei
2025-11-11[ruby/io-wait] Bump version to 0.3.5 to incorporate JRuby release fixesCharles Oliver Nutter
https://github.com/ruby/io-wait/commit/284cb654cf
2025-11-11[ruby/io-wait] 0.3.5.test1 fixing JRuby release processCharles Oliver Nutter
https://github.com/ruby/io-wait/commit/c0ae05e319
2025-11-11[ruby/io-wait] Bump version to 0.3.4Charles Oliver Nutter
https://github.com/ruby/io-wait/commit/cd163938e5
2025-11-11[ruby/psych] Replace Ruby 3.5 with Ruby 4.0Yasuo Honda
This commit updates the Ruby version to follow the commit in Ruby master branch. https://github.com/ruby/ruby/commit/6d81969b475262aba251e99b518181bdf7c5a523 https://github.com/ruby/psych/commit/971b7de078
2025-11-11Don't GC unprotect hash in Coverage.peek_resultPeter Zhu
The call to unprotect the coverages hash was introduced in commit 99093e1 where we used the raw ST table and st_foreach. We now use rb_hash_foreach which no longer requires GC unprotecting the coverages hash.
2025-11-10Fix memory leak in ObjectSpace tracingPeter Zhu
allocation_info_tracer_compact_update_object_table_i deletes entries where the key is no longer in the GC heap but did not free the allocation_info causing the memory to be leaked.
2025-11-10[ruby/zlib] [DOC] Missing documentsNobuyoshi Nakada
https://github.com/ruby/zlib/commit/25355bc1dc
2025-11-10[ruby/digest] [DOC] Missing documentsNobuyoshi Nakada
https://github.com/ruby/digest/commit/16b598d6f2
2025-11-10[ruby/stringio] [DOC] Suppress documentation for internalsNobuyoshi Nakada
https://github.com/ruby/stringio/commit/27b2fb2fce
2025-11-09[DOC] ObjectSpace.trace_object_allocations_debug_startNobuyoshi Nakada
2025-11-09[DOC] Document of Coverage.line_stub from NEWS-2.6.0Nobuyoshi Nakada
2025-11-09[ruby/win32-registry] [DOC] Convert documents from RD2Nobuyoshi Nakada
https://github.com/ruby/win32-registry/commit/8680eedd43
2025-11-07[ruby/json] Release 2.16.0Jean Boussier
https://github.com/ruby/json/commit/5a12067f88
2025-11-07[ruby/json] Deprecate `JSON::State#[]` and `JSON::State#[]=`Jean Boussier
This prevent from freezing and sharing state instances. If you needs some sort of arguments or extra state to the generator methods, consider using `JSON::Coder` instead. https://github.com/ruby/json/commit/e9fbc8937f
2025-11-07[ruby/json] Get rid of JSON.deep_const_get (private API)Jean Boussier
https://github.com/ruby/json/commit/826cb2a4f4
2025-11-07update referenced filenames from namespace to boxSatoshi Tagomori
2025-11-07rename namespace.c (and others) to box.cSatoshi Tagomori
2025-11-06[ruby/openssl] pkey/rsa: fix usage of eRSAErrorKazuki Yamaguchi
This is a follow-up to commit https://github.com/ruby/openssl/commit/e74ff3e2722f, which missed the line added in a different PR. https://github.com/ruby/openssl/commit/1b01d19456
2025-11-06[ruby/openssl] pkey: unify error classes into PKeyErrorKazuki Yamaguchi
Remove the following subclasses of OpenSSL::PKey::PKeyError and make them aliases of it. - OpenSSL::PKey::DHError - OpenSSL::PKey::DSAError - OpenSSL::PKey::ECError - OpenSSL::PKey::RSAError Historically, methods defined on OpenSSL::PKey and OpenSSL::PKey::PKey raise OpenSSL::PKey::PKeyError, while methods on the subclasses raise their respective exception classes. However, this distinction is not particularly useful since all those exception classes represent the same kind of errors from the underlying EVP_PKEY API. I think this convention comes from the fact that OpenSSL::PKey::{DH, DSA,RSA} originally wrapped the corresponding OpenSSL structs DH, DSA, and RSA, before they were unified to wrap EVP_PKEY, way back in 2002. OpenSSL::PKey::EC::Group::Error and OpenSSL::PKey::EC::Point::Error are out of scope of this change, as they are not subclasses of OpenSSL::PKey::PKeyError and do not represent errors from the EVP_PKEY API. https://github.com/ruby/openssl/commit/e74ff3e272
2025-11-06[ruby/openssl] cipher: use EVP_CIPHER_fetch() if availableKazuki Yamaguchi
Likewise, use EVP_MD_fetch() if it is available. This adds support for AES-GCM-SIV with OpenSSL 3.2 or later. https://github.com/ruby/openssl/commit/0e565a215e
2025-11-06[ruby/openssl] digest: use EVP_MD_fetch() if availableKazuki Yamaguchi
With the introduction of OpenSSL 3 providers, newly implemented algorithms do not necessarily have a corresponding NID assigned. To use such an algorithm, it has to be "fetched" from providers using the new EVP_*_fetch() functions. For digest algorithms, we have to use EVP_MD_fetch() instead of the existing EVP_get_digestbyname(). However, it is not a drop-in replacement because: - EVP_MD_fetch() does not support all algorithm name aliases recognized by EVP_get_digestbyname(). - Both return an EVP_MD, but the one returned by EVP_MD_fetch() is sometimes reference counted and the user has to explicitly release it with EVP_MD_free(). So, keep using EVP_get_digestbyname() for all OpenSSL versions for now, and fall back to EVP_MD_fetch() if it fails. In the latter case, prepare a T_DATA object to manage the fetched EVP_MD's lifetime. https://github.com/ruby/openssl/commit/9fc2179403