summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2022-07-08[ruby/openssl] Add 'ciphersuites=' method to allow setting of TLSv1.3 cipher ↵twkmd12
suites along with some unit tests (https://github.com/ruby/openssl/pull/493) Add OpenSSL::SSL::SSLContext#ciphersuites= method along with unit tests. https://github.com/ruby/openssl/commit/12250c7cef
2022-07-08[ruby/openssl] ignore pkgconfig when any openssl option is specifiedStefan Kaes
https://github.com/ruby/openssl/commit/b23fa75aa3
2022-07-08Make a local symbol staticNobuyoshi Nakada
2022-07-08[ruby/date] Enhanced RDoc (https://github.com/ruby/date/pull/58)Burdette Lamar
Brings a dozen call-seq schemas into compliance with the doc guide. Adds links to section "Argument start" where needed. Revises (minorly) ::today. Otherwise, does not disturb existing text. https://github.com/ruby/date/commit/9aec11df50
2022-07-07Fix extconf.rb for OpenSSL 3 without $warnflagsPeter Zhu
On Windows with OpenSSL 3, the gem fails to compile with the following error message: ruby/src/ext/openssl/extconf.rb:188: undefined method \`sub!' for nil:NilClass This is because $warnflags is nil. Notes: Merged: https://github.com/ruby/ruby/pull/6102
2022-07-07thread_pthread.c: call SUSPENDED event when entering native_sleepJean Boussier
[Bug #18900] Thread#join and a few other codepaths are using native sleep as a way to suspend the current thread. So we should call the relevant hook when this happen, otherwise some thread may transition directly from `RESUMED` to `READY`. Notes: Merged: https://github.com/ruby/ruby/pull/6101
2022-07-07[ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/57)Burdette Lamar
All things commercial. https://github.com/ruby/date/commit/9d3bc61728
2022-07-05Local functions should be `static`Nobuyoshi Nakada
2022-07-05[ruby/date] Update ext/date/date_core.cBurdette Lamar
https://github.com/ruby/date/commit/8eb1c780fb Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/e36690f70e
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/dcc0742623
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/91c632f156
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/5c18ec031e
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/fd3ae275c3
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/ac25182c66
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/f9ecaad2ee
2022-07-05[ruby/date] Enhanced RDocBurdetteLamar
https://github.com/ruby/date/commit/e80fee4f30
2022-07-04ObjectSpace.dump: Include string coderangeJean Boussier
I suspect that some shared pages are invalidated because some static string don't have their coderange set eagerly. So the first time they are scanned, the entire memory page is invalidated. Being able to see the coderange in `ObjectSpace` would help debug this. And in addition `dump` currently call `is_broken_string()` and `is_ascii_string()` which both end up scanning the string and assigning coderange. I think it's undesirable as `dump` should be read only. Notes: Merged: https://github.com/ruby/ruby/pull/6076
2022-07-02[ruby/bigdecimal] Correct indentation in Kernel#BigDecimalBurdetteLamar
https://github.com/ruby/bigdecimal/commit/3ede8860a6
2022-07-01[ruby/stringio] Fix the result of `StringIO#truncate` so compatible with `File`Nobuyoshi Nakada
https://github.com/ruby/stringio/commit/16847fea32
2022-06-25[ruby/io-wait] Bump upNobuyoshi Nakada
https://github.com/ruby/io-wait/commit/0fa6e3f7ba
2022-06-25[ruby/io-wait] Remove C99-ism for some platforms [ci skip]Nobuyoshi Nakada
Fix https://github.com/ruby/io-wait/pull/11 https://github.com/ruby/io-wait/commit/845f9a1f55
2022-06-25[ruby/io-wait] Don't add `IO#wait*` methods when `RUBY_IO_WAIT_METHODS` is ↵Samuel Williams
defined by Ruby. (https://github.com/ruby/io-wait/pull/19) * Fix return value compatibility with Ruby 2.x. * Don't add `IO#wait*` methods in Ruby 3.2+. https://github.com/ruby/io-wait/commit/54c504d089
2022-06-21[ruby/io-wait] Remove redundant forward declarationsNobuyoshi Nakada
These were needed before prototype declarations were used. https://github.com/ruby/io-wait/commit/35f016833a
2022-06-19Remove unnecessary `*` before the function nameNobuyoshi Nakada
2022-06-19[ruby/etc] [DOC] Markup constant path namesNobuyoshi Nakada
https://github.com/ruby/etc/commit/6c9a0b4e5d
2022-06-19[ruby/etc] [DOC] Markup string literalsNobuyoshi Nakada
https://github.com/ruby/etc/commit/a8801e07d1
2022-06-19[ruby/etc] [DOC] Fix reference to different moduleNobuyoshi Nakada
https://github.com/ruby/etc/commit/ea51739974
2022-06-19[ruby/etc] [DOC] UpdateNobuyoshi Nakada
System-dependent feature macros are automatically detected by extconf.rb, and are not used by users. https://github.com/ruby/etc/commit/e7343b4e69
2022-06-17GVL Instrumentation API: add STARTED and EXITED eventsJean Boussier
[Feature #18339] After experimenting with the initial version of the API I figured there is a need for an exit event to cleanup instrumentation data. e.g. if you record data in a {thread_id -> data} table, you need to free associated data when a thread goes away. Notes: Merged: https://github.com/ruby/ruby/pull/6029
2022-06-15Restore rb_exec_recursive_outerJohn Hawthorn
This was a public method, so we should probably keep it. Notes: Merged: https://github.com/ruby/ruby/pull/6027
2022-06-15[ruby/psych] Fix libyaml download failure rescue under minirubyAlan Wu
I tried to build Ruby on a system without libyaml today and realized that my attempt from <https://github.com/ruby/psych/pull/557> doesn't fix the error in <https://github.com/ruby/psych/issues/552>. I still got the same `LoadError` from `digest` which stopped the build. Since `LoadError` is not a `StandardError`, a plain `rescue` doesn't catch it. Catch `LoadError` explicitly instead and reduce the scope of the `begin` block. I tested this change in a Ruby build on macOS without libyaml installed and confirmed that `make` continues with a warning instead of aborting: *** Following extensions are not compiled: psych: Could not be configured. It will not be installed. ... This should address <https://bugs.ruby-lang.org/issues/18790>. https://github.com/ruby/psych/commit/251289ba83
2022-06-10Make method id explicit in rb_exec_recursive_outerJohn Hawthorn
Previously, because opt_aref and opt_aset don't push a frame, when they would call rb_hash to determine the hash value of the key, the initial level of recursion would incorrectly use the method id at the top of the stack instead of "hash". This commit replaces rb_exec_recursive_outer with rb_exec_recursive_outer_mid, which takes an explicit method id, so that we can make the hash calculation behave consistently. rb_exec_recursive_outer was documented as being internal, so I believe this should be okay to change. Notes: Merged: https://github.com/ruby/ruby/pull/6004
2022-06-03[Feature #18339] GVL Instrumentation APIJean Boussier
Ref: https://bugs.ruby-lang.org/issues/18339 Design: - This tries to minimize the overhead when no hook is registered. It should only incur an extra unsynchronized boolean check. - The hook list is protected with a read-write lock as to cause contention when some hooks are registered. - The hooks MUST be thread safe, and MUST NOT call into Ruby as they are executed outside the GVL. - It's simply a noop on Windows. API: ``` rb_internal_thread_event_hook_t * rb_internal_thread_add_event_hook(rb_internal_thread_event_callback callback, rb_event_flag_t internal_event, void *user_data); bool rb_internal_thread_remove_event_hook(rb_internal_thread_event_hook_t * hook); ``` You can subscribe to 3 events: - READY: called right before attempting to acquire the GVL - RESUMED: called right after successfully acquiring the GVL - SUSPENDED: called right after releasing the GVL. The hooks MUST be threadsafe, as they are executed outside of the GVL, they also MUST NOT call any Ruby API. Notes: Merged: https://github.com/ruby/ruby/pull/5500
2022-06-03[ruby/nkf] Constified invariant tablesNobuyoshi Nakada
https://github.com/ruby/nkf/commit/b386ddc11c
2022-05-30[ruby/stringio] Fix extracting encoding names in the fallback codeNobuyoshi Nakada
https://github.com/ruby/stringio/commit/0fe2e0c1e5
2022-05-30[ruby/stringio] Accept external and internal encodings pairNobuyoshi Nakada
Fix https://github.com/ruby/stringio/pull/16 https://github.com/ruby/stringio/commit/c8a69e80d2
2022-05-30[ruby/stringio] Fix handling of chomp with paragraph separatorJeremy Evans
Try to mirror IO behavior, where chomp takes out the entire paragraph separators between entries, but does not chomp a single line separator at the end of the string. Partially Fixes [Bug #18768] https://github.com/ruby/stringio/commit/a83ddbb7f0
2022-05-30[ruby/stringio] Update ext/stringio/stringio.cJeremy Evans
https://github.com/ruby/stringio/commit/1edc88587e Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-05-30[ruby/stringio] Ignore chomp keyword for nil separatorJeremy Evans
nil separator means no separator at all, so nothing should be chomped. Partial fix for Ruby [Bug #18770] https://github.com/ruby/stringio/commit/feaa2ec631
2022-05-30[ruby/stringio] Fix each with multiple character string and chompJeremy Evans
Previously, this could result in an infinite loop. Always update the e pointer in this case, setting w when chomping so the chomped data is not included in the output. Fixes [Bug #18769] https://github.com/ruby/stringio/commit/4bf64d5130
2022-05-30[ruby/stringio] Fix expanding size at ungetc/ungetbyteNobuyoshi Nakada
https://github.com/ruby/stringio/commit/a35268a3ac
2022-05-24[ruby/date] Constify gperf-generated tableNobuyoshi Nakada
https://github.com/ruby/date/commit/6d7ab08ffc
2022-05-20Merge JRuby implementation for stringio and io-waitHiroshi SHIBATA
2022-05-20Merge https://github.com/ruby/pathname/pull/8 for pathnameHiroshi SHIBATA
2022-05-20[ruby/io-nonblock] Remove unnecessary files from the gemNobuyoshi Nakada
https://github.com/ruby/io-nonblock/commit/3850a4c7ac
2022-05-20[ruby/io-nonblock] Rename `io_nonblock_mode` and extract `set_fcntl_flags`Nobuyoshi Nakada
https://github.com/ruby/io-nonblock/commit/22f08574df
2022-05-20[flori/json] Bump version to 2.6.2Florian Frank
https://github.com/flori/json/commit/5de358f655
2022-05-20[flori/json] Fix parser bug for empty string allocationAndrew Bromwich
When `HAVE_RB_ENC_INTERNED_STR` is enabled it is possible to pass through a null pointer to `rb_enc_interned_str` resulting in a segfault Fixes #495 https://github.com/flori/json/commit/b59368a8c2
2022-05-20[flori/json] Doc: Improve documentation on JSON#parse and JSON#parse!Hiroshi SHIBATA
https://github.com/flori/json/commit/75ada77b96 Co-authored-by: Bruno Gomes da Silva <brunojabs@gmail.com>