summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-27include/ruby/backward/2/rmodule.h: deprecate卜部昌平
Only one function in only one file uses contents of this public header. That is not a wise idea. Let's just free the header's soul. Notes: Merged: https://github.com/ruby/ruby/pull/3347
2020-08-27Make Socket.getaddrinfo interruptible (#2827)Kir Shatrov
Before, Socket.getaddrinfo was using a blocking getaddrinfo(3) call. That didn't allow to wrap it into Timeout.timeout or interrupt the thread in any way. Combined with the default 10 sec resolv timeout on many Unix systems, this can have a very noticeable effect on production Ruby apps being not resilient to DNS outages and timing out name resolution, and being unable to fail fast even with Timeout.timeout. Since we already have support for getaddrinfo_a(3), the async version of getaddrinfo, we should be able to make Socket.getaddrinfo leverage that when getaddrinfo_a version is available in the system (hence #ifdef HAVE_GETADDRINFO_A). Related tickets: https://bugs.ruby-lang.org/issues/16476 https://bugs.ruby-lang.org/issues/16381 https://bugs.ruby-lang.org/issues/14997 Notes: Merged-By: mmasaki <glass.saga@gmail.com>
2020-08-27RUBY_SHOW_COPYRIGHT_TO_DIE: flip the default卜部昌平
Commit 7aab062ef3772c7e8e50fc872a1647918c76dbba says: > ruby_show_version() will no longer exits the process, if > RUBY_SHOW_COPYRIGHT_TO_DIE is set to 0. This will be the default in > the future. 3.0 is a good timing for that "future". Notes: Merged: https://github.com/ruby/ruby/pull/3342
2020-08-27sed -i '/r_cast.h/d'卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3346
2020-08-27include/ruby/backward/2/r_cast.h: deprecate卜部昌平
Remove all usages of RCAST() so that the header file can be excluded from ruby/ruby.h's dependency. Notes: Merged: https://github.com/ruby/ruby/pull/3346
2020-08-27improve deprecation warning卜部昌平
We should not recommend RBIMPL_*. Notes: Merged: https://github.com/ruby/ruby/pull/3341
2020-08-27DEPRECATED_TYPE: is deprecated卜部昌平
Nobody uses this macro any longer. Notes: Merged: https://github.com/ruby/ruby/pull/3341
2020-08-27RClassDeprecated: delete卜部昌平
It has been deprecated for 5 years since 1f2255604087e9a7d7efcb2df61b5ca0e2daa200. Notes: Merged: https://github.com/ruby/ruby/pull/3341
2020-08-27Use own mutex instead of Thread.exclusiveKazuhiro NISHIYAMA
ref [Feature #17125]
2020-08-27git rm include/ruby/backward/rubyio.h卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3344
2020-08-27git rm include/ruby/backward/rubysig.h卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3343
2020-08-27git rm include/ruby/backward/{st,util}.h卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3345
2020-08-27* 2020-08-27 [ci skip]git
2020-08-27rb_deprecated_classext_struct: delete卜部昌平
Used from nowhere any longer. Notes: Merged: https://github.com/ruby/ruby/pull/3340
2020-08-27git rm include/ruby/backward/classext.h卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3340
2020-08-27sed -i '\,2/extern.h,d'卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3338
2020-08-27git rm include/ruby/backward/2/extern.h卜部昌平
Notes: Merged: https://github.com/ruby/ruby/pull/3338
2020-08-26Fixed error messages at non-ascii %string terminatorNobuyoshi Nakada
2020-08-26Removed a never-true conditionNobuyoshi Nakada
2020-08-26[webrick][DOC] Describe the stance of WEBrick about its security and ↵Kenta Murata
utilization (#3457) WEBrick is not recommended for the production use. We need to explicitly describe this fact in the document to avoid troubles due to misunderstanding. Notes: Merged-By: mrkn <mrkn@ruby-lang.org>
2020-08-25Comply with guide for method doc: hash.c (#3454)Burdette Lamar
Methods reviewed (a few not modified): key delete shift delete_if reject! reject slice except values_at fetch_values select select! keep_if Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-08-25Add documentation to "dcompact" callback and "parent" memberLars Kanis
Notes: Merged: https://github.com/ruby/ruby/pull/3396
2020-08-25Correctly account for heap_pages_final_slots so it does not underflowPeter Zhu
`rb_objspace_call_finalizer` creates zombies, but does not do the correct accounting (it should increment `heap_pages_final_slots` whenever it creates a zombie). When we do correct accounting, `heap_pages_final_slots` should never underflow (the check for underflow was introduced in 39725a4db6b121c7779b2b34f7da9d9339415a1c). The implementation moves the accounting from the functions that call `make_zombie` into `make_zombie` itself, which reduces code duplication. Notes: Merged: https://github.com/ruby/ruby/pull/3450
2020-08-26* 2020-08-26 [ci skip]git
2020-08-25Comply with guide for method doc: hash.c (#3451)Burdette Lamar
Methods: ::new ::[] ::try_convert #rehash #[] #fetch #default #default= #default_proc #default_proc= Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-08-25Promote nkf to default gemsHiroshi SHIBATA
2020-08-25Fix erb executableLars Kanis
Run ERb processing unconditionally since __FILE__ and $0 doesn't match in a gem context. Notes: Merged: https://github.com/ruby/ruby/pull/3449
2020-08-25Specify the executable of erbHiroshi SHIBATA
2020-08-25* 2020-08-25 [ci skip]git
2020-08-24Update PTY.open documentation to document it yields a single argument [ci skip]Jeremy Evans
For a regular block, accepting two arguments is fine as the array will be autosplatted. However, a lambda that accepts two arguments will not work. We could change the implementation to yield two arguments instead of an array with a single argument, but that would be less backwards compatible. I'm only changing the call-seq to be precise, other examples pass a literal block that accepts two arguments, and I left those alone as that will be the most common usage. Fixes [Bug #17094]
2020-08-24Added entry for changes of default gemsHiroshi SHIBATA
2020-08-24Fix links [ci skip]Kazuhiro NISHIYAMA
2020-08-24NEWS.md: add an example, add references, and move some itemsYusuke Endoh
2020-08-24* 2020-08-24 [ci skip]git
2020-08-23Remove checks for self returned in array.c and hash.c examples (#3446)Burdette Lamar
Further compliance with https://github.com/ruby/ruby/blob/master/doc/method_documentation.rdoc#details-and-examples- Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-08-23Fix typosKazuhiro NISHIYAMA
2020-08-23* 2020-08-23 [ci skip]git
2020-08-23.github/workflows/compilers.yml: more compilers卜部昌平
Added some cross compilers that we can run on GitHub Workflow runner environments. Because they are cross compilers we cannot run the generated binary. The added matrix are compile-only. Notes: Merged: https://github.com/ruby/ruby/pull/3447
2020-08-22configure.ac: suppress more Sun C warnings.卜部昌平
They are rather annoying than being useful to us.
2020-08-22.travis.yml: prefer gcc卜部昌平
It seems `clang --save-temps` does not interface well with tool/update-deps. Prefer gcc for that purpose.
2020-08-22configure.ac: more checks on STRIP卜部昌平
STRIP now depends on compilers, not on OS. Previous check against $target_os does no longer work.
2020-08-22Fix type of getlogin_r's 2nd argumentKazuhiro NISHIYAMA
https://rubyci.org/logs/rubyci.s3.amazonaws.com/freebsd12/ruby-master/log/20200821T223002Z.fail.html.gz ``` process.c:5593:37: error: implicit conversion loses integer precision: 'long' to 'int' [-Werror,-Wshorten-64-to-32] while ((gle = getlogin_r(login, loginsize)) != 0) { ~~~~~~~~~~ ^~~~~~~~~ ``` type of getlogin_r's 2nd argument is - int on FreeBSD - https://www.freebsd.org/cgi/man.cgi?query=getlogin_r&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html - size_t on Linux, NetBSD - https://man7.org/linux/man-pages/man3/getlogin_r.3.html - https://www.freebsd.org/cgi/man.cgi?query=getlogin_r&apropos=0&sektion=0&manpath=NetBSD+9.0&arch=default&format=html
2020-08-21Avoid a use after free in VM assertionJeremy Evans
If the thread for the current EC has been killed, don't check the VM ptr for the EC (which gets it via the thread), as that will have already been freed. Fixes [Bug #16907] Notes: Merged: https://github.com/ruby/ruby/pull/3443
2020-08-21Remove trivial examples from array.c (#3442)Burdette Lamar
"Trivial" typically means "returns a new empty Array." Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-08-21Remove nil-return examples from hash.c (#3438)Burdette Lamar
* Remove nil-return examples from hash.c Notes: Merged-By: BurdetteLamar <BurdetteLamar@Yahoo.com>
2020-08-22configure.ac: rule out old Sun C++卜部昌平
CI failures observed for old Sun C++. We don't want to hustle, as newer versions are okay. Just check the sanity and rule out insane compilers. Notes: Merged: https://github.com/ruby/ruby/pull/3440
2020-08-22protect CFLAGS from being smashed by AC_PROG_CC卜部昌平
AC_PROG_CC_C99 calls AC_PROC_CC, which calls _AC_PROG_CC_G, which sets default CFLAGS, whose contents are not customisable. We don't welcome this behaviour. The exact same thing happens for CXXFLAGS in AC_PROG_CXX. Notes: Merged: https://github.com/ruby/ruby/pull/3440
2020-08-22* 2020-08-22 [ci skip]git
2020-08-22do not test --version卜部昌平
`llvm-strip-7` is a sane valid strip command that LLVM 7 ships, albeit it does not understand `--version`. It is a bad idea to check that option. Instead just see if the command actually strips something. A copy of `/bin/sh` should suffice. That file must be ubiquitous. Notes: Merged: https://github.com/ruby/ruby/pull/3439
2020-08-21Fixup 3292f4d965845d543733559fd1736b8c42fadab3Hiroshi SHIBATA