| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
On Android, nl_langinfo() always returns UTF-8 even when LANG is C.
|
|
|
|
|
| |
On Android 28, LOG_PERROR is defined, but not implemented yet.
This change skips Syslog#log explicitly.
|
|
|
|
|
|
|
|
|
| |
For BasicObject, bind the Kernel respond_to? instance method to the
object and call it instead of calling the method directly.
Also, use bind_call(recv, ...) for better performance.
Fixes [Bug #16127]
|
|
|
|
|
| |
The root directory may be owned by the current user, for example, in
chroot environment.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* ext/openssl/ossl_asn1.c (Init_ossl_asn1): register the static
variable to grab an internal object, before creating the object.
otherwise the just-created object could get collected during the
global variable list allocation. [Bug #16196]
|
|
|
|
|
|
| |
https://gist.github.com/ko1/a88834d744a0682711dab53fd9015a04#file-brlog-trunk-nopara-20191005-235153-L393-L472
https://github.com/rubygems/rubygems/commit/707408d8e7
|
|
|
|
| |
https://github.com/rubygems/rubygems/commit/1bd77f53df
|
|
|
|
|
|
| |
* parse.y (struct local_vars): moved numbered parameter NODEs for
nesting check to separate per local variable scopes, as numbered
parameters should belong to local variable scopes. [Bug #16248]
|
|
|
|
| |
Fixes [Bug #11275]
|
|
|
|
| |
`8 * RbConfig::SIZEOF` ... is not straight.
|
|
|
| |
Sync to ruby/bigdecimal@92356ba71c6bd325b0ab618c634a7aecf8cdc767
|
|
|
|
|
|
|
|
| |
There are libraries that use define_method with argument splats
where they would like to pass keywords through the method. To
more easily allow such libraries to use ruby2_keywords to handle
backwards compatibility, it is necessary for ruby2_keywords to
support bmethods.
|
| |
|
| |
|
|
|
|
| |
This reverts commit f62f90367fc3bce6714e7c34cbd040e14e43fe07.
|
|
|
| |
This is follow up of r67315.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This reverts commits:
* 2a490d5660ac869f8f2bbcec4887b1dc2950643f
Suppress assert_match warnings.
* d4a86e407ec2057c2c7ad757aa76dad757f34c3a
Assert warnings message for the last argument is keyword parameter.
|
|
|
|
|
|
| |
https://bugs.ruby-lang.org/issues/16189
https://github.com/rubygems/rubygems/commit/e331222163
|
|
|
|
| |
https://github.com/rubygems/rubygems/commit/05146bb2fd
|
|
|
|
| |
https://github.com/rubygems/rubygems/commit/892bfc11fe
|
|
|
|
|
|
| |
For better messages at failures.
https://github.com/rubygems/rubygems/commit/971455b16e
|
|
|
|
|
|
| |
It is `assert_eqal(expected, actual)`.
https://github.com/rubygems/rubygems/commit/1d6197a090
|
|
|
|
| |
https://github.com/ruby/fileutils/commit/ba2c24e2d7
|
|
|
|
|
|
| |
return directly in class/module is an error, so return in
proc in class/module should also be an error. I believe the
previous behavior was an unintentional oversight during the
addition of top-level return in 2.4.
|
|
|
|
| |
RUBY_ISEQ_DUMP_DEBUG=to_binary and the attached test case was failing.
Dump the flag to make sure `**nil` can round-trip properly.
|
|
|
|
|
|
|
|
| |
This is a follow up to d9d4a28f1cdd05a0e8dabb36d747d40bbcc30f16.
The commit prevented CRLR, but did not address an isolated CR or an
isolated LF.
Co-Authored-By: NARUSE, Yui <naruse@airemix.jp>
|
|
|
|
|
| |
Create the substrings necessary parts only, instead of cutting the
rest of the buffer. Also removed a useless, probable typo, regexp.
|
|
|
|
|
| |
* dir.c (file_s_fnmatch): ensure that pattern does not contain a
NUL character. https://hackerone.com/reports/449617
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Currently, there is not a way to create a sized enumerator in C
with a different set of arguments than provided by Ruby, and
correctly handle keyword arguments. This function allows that.
The need for this is fairly uncommon, but it occurs at least in
Enumerator.produce, which takes arugments from Ruby but calls
rb_enumeratorize_with_size with a different set of arguments.
|
|
|
|
| |
by explicitly removing the old definition.
|
|
|
|
| |
"in void context" by assigning the result to a dummy variable.
|
| |
|
| |
|
|
|
|
|
|
|
| |
chkbuild (CI process) shows methods list before
running tests and sometimes it can fails. This
commit a code part to emulate this method listing
feature.
|
|
|
|
|
|
|
|
| |
This adds rb_funcall_passing_block_kw, rb_funcallv_public_kw,
and rb_yield_splat_kw. This functions are necessary to easily
handle cases where rb_funcall_passing_block, rb_funcallv_public,
and rb_yield_splat are currently used and a keyword argument
separation warning is raised.
|
|
|
|
|
|
| |
* numeric.c (num_step): pass the extracted argument from keyword
argument, not the last argument itself which should have been
warned already.
|
|
|
|
|
|
|
|
|
|
| |
This is due to calling rb_mod_module_eval directly instead of using
rb_funcall_passing_block.
The problem with calling directly is it does not create a new VM
frame, so rb_mod_module_eval was called with no arguments, but with
the keyword given VM frame flag set, which causes problems
internally.
|
|
|
|
|
|
|
| |
If a method accepts no keywords and was called with a keyword, an
ArgumentError was not always issued previously. Force methods that
accept no keywords to go through setup_parameters_complex so that
an ArgumentError is raised if keywords are provided.
|
|
|
|
|
|
| |
Patch from Matthew Kerwin.
Fixes [Bug #14358]
|
|
|
|
|
|
| |
+ is not a character that requires escaping in Bourne sh.
Fixes [Bug #14429]
|
|
|
|
|
|
|
|
| |
An EPIPE when sending the request should be ignored. Even if you
cannot write more data, you may still be able to read the server's
response.
Fixes [Bug #14466]
|
|
|
|
|
| |
Drop catch table entries used in eliminated block, as well as
call_infos. [Bug #16184]
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
character/block device in /dev
Previously this would give an error such as:
TestFileUtils#test_cp_r_dev [c:/fileutils/test/fileutils/test_fileutils.rb:455]:
[RuntimeError] exception expected, not.
Class: <TypeError>
Message: <"no implicit conversion of nil into String">
https://github.com/ruby/fileutils/commit/0ce0fefbeb
|