summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Avoid to symlink under symlinkNobuyoshi Nakada2022-07-161-1/+1
|
* Move copying/linking extra files to Makefile so removed by `clean`Nobuyoshi Nakada2022-07-161-33/+48
|
* Ensure symlinks to bundled gem with exts have parent dirYuta Saito2022-07-151-0/+1
| | | | | | | | | | When configuring with `--disable-rpath` and `--static-linked-ext` (e.g. building for WASI), `extmk.rb` doesn't build exts under bundled gems, and `.bundle/gems/#{gemname}-#{ver}` are not created due to no call of `extmake`. b2491783986084770f6f97552f27b868622730cf starts creating symlink at `.bundle/gems/#{gemname}-#{ver}/lib`, but the parent dir is not created, so configuration aginst debug and rbs gems were failed.
* [ruby/psych] Fix infinite loop bug after YAML_MEMORY_ERROR (psych issue #440)Karl Anderson2022-07-151-13/+17
| | | | https://github.com/ruby/psych/commit/6c56700fb2
* [ruby/bigdecimal] Remove checks for `struct RRational` and `struct RComplex`Nobuyoshi Nakada2022-07-142-6/+4
| | | | | | | | These are used to see only if `RRATIONAL` and `RCOMPLEX` are available, however, these two are macros and can be checked with `#ifdef` directly. https://github.com/ruby/bigdecimal/commit/175bbacd43
* Install gems `lib` directory to build pathNobuyoshi Nakada2022-07-141-0/+19
|
* Make dependency-free gemspec filesNobuyoshi Nakada2022-07-141-0/+11
| | | | | | | The default gems have not been installed yet in the build directory, bundled gems depending on them can not work. As those dependencies should be usable there even without rubygems, make temporary gemspec files without the dependencies, and use them in the build directory.
* Move timestamps directory for bundled gemsNobuyoshi Nakada2022-07-131-1/+4
|
* [ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/63)Burdette Lamar2022-07-121-64/+78
| | | | | | | | | | | | | | | | Treats: #next #<< #>> #next_month #prev_month #next_year #prev_year #step #upto #downto https://github.com/ruby/date/commit/4246441a35
* [ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/62)Burdette Lamar2022-07-121-33/+57
| | | | | | Minor edits to 11 methods' documentation. https://github.com/ruby/date/commit/00bb7f6648
* [ruby/date] Enhanced RDoc (https://github.com/ruby/date/pull/61)Burdette Lamar2022-07-101-0/+1
| | | | | | Omit private aliases from Rdoc. https://github.com/ruby/date/commit/48f9180663
* [ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/59)Burdette Lamar2022-07-091-55/+69
| | | | | | Minor changes (mostly doc-guide compliance) to 18 or so of simpler methods (getters). https://github.com/ruby/date/commit/00e37ba2b4
* [ruby/openssl] Fix formatting in docsPeter Zhu2022-07-081-1/+1
| | | | | | | The + tag can only be used for single words. For multiple words the <tt> tag has to be used. https://github.com/ruby/openssl/commit/cf2f019c3e
* [ruby/openssl] Let OpenSSL choose the digest if digest for ↵Jarek Prokop2022-07-081-1/+1
| | | | | | Openssl::OCSP::BasicResponse#sign is nil. https://github.com/ruby/openssl/commit/27efcd7e1c
* [ruby/openssl] Let OpenSSL choose the digest if digest for ↵Jarek Prokop2022-07-081-1/+1
| | | | | | Openssl::OCSP::Request#sign is nil. https://github.com/ruby/openssl/commit/a1f6cbc261
* [ruby/openssl] Fix operator precedence in OSSL_OPENSSL_PREREQ and ↵Jeremy Evans2022-07-081-2/+2
| | | | | | OSSL_LIBRESSL_PREREQ https://github.com/ruby/openssl/commit/b02815271f
* [ruby/openssl] Fix build with LibreSSL 3.5Jeremy Evans2022-07-081-1/+1
| | | | https://github.com/ruby/openssl/commit/e25fb0d0d8
* [ruby/openssl] Add 'ciphersuites=' method to allow setting of TLSv1.3 cipher ↵twkmd122022-07-082-18/+61
| | | | | | | | 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
* [ruby/openssl] ignore pkgconfig when any openssl option is specifiedStefan Kaes2022-07-081-2/+2
| | | | https://github.com/ruby/openssl/commit/b23fa75aa3
* Make a local symbol staticNobuyoshi Nakada2022-07-081-1/+1
|
* [ruby/date] Enhanced RDoc (https://github.com/ruby/date/pull/58)Burdette Lamar2022-07-081-30/+56
| | | | | | | | | 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
* Fix extconf.rb for OpenSSL 3 without $warnflagsPeter Zhu2022-07-071-1/+1
| | | | | | | | | 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.
* thread_pthread.c: call SUSPENDED event when entering native_sleepJean Boussier2022-07-071-0/+30
| | | | | | | | | [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`.
* [ruby/date] [DOC] Enhanced RDoc (https://github.com/ruby/date/pull/57)Burdette Lamar2022-07-071-20/+57
| | | | | | All things commercial. https://github.com/ruby/date/commit/9d3bc61728
* Local functions should be `static`Nobuyoshi Nakada2022-07-051-2/+3
|
* [ruby/date] Update ext/date/date_core.cBurdette Lamar2022-07-051-1/+1
| | | | | https://github.com/ruby/date/commit/8eb1c780fb Co-authored-by: Peter Zhu <peter@peterzhu.ca>
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-0/+12
| | | | https://github.com/ruby/date/commit/e36690f70e
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-1/+1
| | | | https://github.com/ruby/date/commit/dcc0742623
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-1/+4
| | | | https://github.com/ruby/date/commit/91c632f156
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-1/+1
| | | | https://github.com/ruby/date/commit/5c18ec031e
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-1/+1
| | | | https://github.com/ruby/date/commit/fd3ae275c3
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-14/+2
| | | | https://github.com/ruby/date/commit/ac25182c66
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-1/+1
| | | | https://github.com/ruby/date/commit/f9ecaad2ee
* [ruby/date] Enhanced RDocBurdetteLamar2022-07-051-422/+169
| | | | https://github.com/ruby/date/commit/e80fee4f30
* ObjectSpace.dump: Include string coderangeJean Boussier2022-07-041-5/+42
| | | | | | | | | | | | | | | 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.
* [ruby/bigdecimal] Correct indentation in Kernel#BigDecimalBurdetteLamar2022-07-021-5/+5
| | | | https://github.com/ruby/bigdecimal/commit/3ede8860a6
* [ruby/stringio] Fix the result of `StringIO#truncate` so compatible with `File`Nobuyoshi Nakada2022-07-011-1/+1
| | | | https://github.com/ruby/stringio/commit/16847fea32
* [ruby/io-wait] Bump upNobuyoshi Nakada2022-06-251-1/+1
| | | | https://github.com/ruby/io-wait/commit/0fa6e3f7ba
* [ruby/io-wait] Remove C99-ism for some platforms [ci skip]Nobuyoshi Nakada2022-06-251-12/+12
| | | | | | Fix https://github.com/ruby/io-wait/pull/11 https://github.com/ruby/io-wait/commit/845f9a1f55
* [ruby/io-wait] Don't add `IO#wait*` methods when `RUBY_IO_WAIT_METHODS` is ↵Samuel Williams2022-06-251-41/+75
| | | | | | | | | | 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
* [ruby/io-wait] Remove redundant forward declarationsNobuyoshi Nakada2022-06-211-5/+0
| | | | | | These were needed before prototype declarations were used. https://github.com/ruby/io-wait/commit/35f016833a
* Remove unnecessary `*` before the function nameNobuyoshi Nakada2022-06-191-3/+3
|
* [ruby/etc] [DOC] Markup constant path namesNobuyoshi Nakada2022-06-191-25/+31
| | | | https://github.com/ruby/etc/commit/6c9a0b4e5d
* [ruby/etc] [DOC] Markup string literalsNobuyoshi Nakada2022-06-191-2/+3
| | | | https://github.com/ruby/etc/commit/a8801e07d1
* [ruby/etc] [DOC] Fix reference to different moduleNobuyoshi Nakada2022-06-191-1/+1
| | | | https://github.com/ruby/etc/commit/ea51739974
* [ruby/etc] [DOC] UpdateNobuyoshi Nakada2022-06-191-15/+16
| | | | | | | System-dependent feature macros are automatically detected by extconf.rb, and are not used by users. https://github.com/ruby/etc/commit/e7343b4e69
* GVL Instrumentation API: add STARTED and EXITED eventsJean Boussier2022-06-171-14/+30
| | | | | | | | [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.
* Restore rb_exec_recursive_outerJohn Hawthorn2022-06-151-1/+1
| | | | This was a public method, so we should probably keep it.
* [ruby/psych] Fix libyaml download failure rescue under minirubyAlan Wu2022-06-151-7/+9
| | | | | | | | | | | | | | | | | | | | | | | 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
* Make method id explicit in rb_exec_recursive_outerJohn Hawthorn2022-06-101-1/+1
| | | | | | | | | | | | | | 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.