Jeremy Evans
0dcd3340fb
[ruby/forwardable] Make def_*_delegator return name of method defined ( Fixes #10 )
...
This restores compatibility with previous versions. This behavior
was previously undefined, but it makes sense for the name of the
defined method to be returned.
https://github.com/ruby/forwardable/commit/a52ef3451e
2019-12-11 20:23:53 +09:00
aycabta
c2f6aa4e48
The result of Readline.completion_proc should have the same encoding of Encoding.default_external
2019-12-11 19:39:37 +09:00
Nobuyoshi Nakada
3098798044
Test `Thread#to_s` when used from to_s_spec.rb
2019-12-11 16:52:06 +09:00
Nobuyoshi Nakada
d2d42081ce
`Thread#to_s` has been added at ruby 2.5
2019-12-11 16:52:06 +09:00
Koichi Sasada
eb9c007053
skip continuous failure test.
...
On mingw this test fails and not solved long time, so skip it.
Please revert it when it solved.
https://ci.appveyor.com/project/ruby/ruby/builds/29458671/job/9nbcjnfe6p0xnxoe
2019-12-11 16:49:08 +09:00
Koichi Sasada
1269157a6e
Thread#to_s is not same as #inspect on old version.
...
Thread#to_s returns simple Object#to_s until Ruby 2.4.
2019-12-11 16:10:26 +09:00
Koichi Sasada
7f5014e6e8
rely on sorted compiled binary array.
...
`builtin_binary` is sorted by miniruby loading order and this
loading order should be same on ruby. So we can believe sorted
order of `builtin_binary` on boot time.
2019-12-11 15:48:30 +09:00
Nobuyoshi Nakada
0afee4d803
Show the failed message
2019-12-11 14:27:21 +09:00
Kazuhiro NISHIYAMA
7fa821a80d
Try to use `set-output`
...
because commit info are not necessary in env.
2019-12-11 14:03:30 +09:00
Koichi Sasada
6025783a3b
fix for old MRI versions
2019-12-11 14:00:32 +09:00
Koichi Sasada
fe8caf0ab9
add depenency pointed by update-deps
2019-12-11 13:37:00 +09:00
Kazuhiro NISHIYAMA
35adc47e7e
Create dummy files when check only
...
because foo.rb in build directory breaks test-bundler
https://github.com/ruby/ruby/runs/343168046#step:20:125
2019-12-11 13:08:21 +09:00
Kazuhiro NISHIYAMA
cf948a3d3f
Do not load q.rb in build directory
2019-12-11 12:35:51 +09:00
Kazuhiro NISHIYAMA
4f5dc15b04
Create more dummy files in build directory
2019-12-11 12:35:51 +09:00
Kazuhiro NISHIYAMA
1ed0212bcf
Do not load files in build directory
...
related https://bugs.ruby-lang.org/issues/16177
2019-12-11 12:35:51 +09:00
Jeremy Evans
85e43e1dfe
Fix Enumerator::Lazy#with_index
...
* Make it correctly handle lambdas
* Make it iterate over the block if block is given
The original implementation was flawed, based on lazy_set_method
instead of lazy_add_method.
Note that there is no implicit map when passing a block, the return
value of the block passed to with_index is ignored, just as it
is for Enumerator#with_index. Also like Enumerator#with_index,
when called with a block, the return value is an enumerator without
the index.
Fixes [Bug #16414 ]
2019-12-11 04:59:56 +02:00
Jean byroot Boussier
8a80bfcfd4
Make Thread#to_s consistent with Method and Proc to_s
2019-12-11 11:59:14 +09:00
aycabta
6a7af800db
Add a message for CompatibilityError
2019-12-11 11:36:40 +09:00
Eli Sadoff
7e9b1609da
Added documentation for integer range sums ( #1593 )
2019-12-11 11:25:54 +09:00
git
86e2c013d7
* remove trailing spaces. [ci skip]
2019-12-11 11:25:00 +09:00
Koichi Sasada
bbbf451bff
Update tool/mk_builtin_binary.rb
...
Co-Authored-By: Sutou Kouhei <kou@cozmixng.org>
2019-12-11 11:24:42 +09:00
Koichi Sasada
40026a408d
support cross-compilation.
...
On cross-compilation, compiled binary can no be created because
compiled binary should be created by same interpreter (on cross-
compilation, host ruby is used to build ruby (BASERUBY)).
So that cross-compilation system loads required scripts in text.
It is same as miniruby.
2019-12-11 11:24:42 +09:00
Koichi Sasada
9c2807b2df
remove prelude.c
...
prelude.c is an automatically generated file by template/prelude.c.tmpl.
However it does not contain any required functions. So remove it from
dependency.
Also miniprelude.c is included by mini_builtin.c and does not need
to make miniprelude.o.
2019-12-11 11:24:42 +09:00
Koichi Sasada
2c5c60754c
use compiled binary for gem_prelude.rb.
...
`gem_prelude.rb` is not compiled yet. This patch compile it to
compiled binary.
2019-12-11 11:24:42 +09:00
Koichi Sasada
943f3e5fd4
add include guard
2019-12-11 11:24:42 +09:00
Corey Farwell
69aa927a40
Indicate `find_all` and `select` methods are aliases.
...
This matches the documentation for `Enumerable::inject` and `Enumerable::reduce` which are also aliases.
2019-12-11 11:15:12 +09:00
git
0fafb83b38
* 2019-12-11 [ci skip]
2019-12-11 11:13:28 +09:00
aycabta
ec54ac9381
Support Readline.completion_quote_character by Reline
2019-12-11 11:13:05 +09:00
Nobuyoshi Nakada
8e49ef5a69
[ruby/io-console] update depend for f9c0fe77c0
2019-12-10 23:13:40 +09:00
Hiroshi SHIBATA
2a2a707829
Followed up 38722fa179
2019-12-10 21:21:19 +09:00
Hiroshi SHIBATA
95f570d0d3
[ruby/logger] bump version to 1.4.2
...
https://github.com/ruby/logger/commit/d6c01cc652
2019-12-10 21:03:36 +09:00
Jeremy Evans
0b10d46a57
[ruby/logger] Enable more timezone tests on OpenBSD
...
https://github.com/ruby/logger/commit/bcd7e227e8
2019-12-10 21:01:11 +09:00
Jeremy Evans
7a1c56f978
[ruby/logger] Document that shift_age of 0 disables log file rotation
...
Fixes Ruby Bug 16349.
https://github.com/ruby/logger/commit/b1b6d06f2d
2019-12-10 20:59:36 +09:00
Jeremy Evans
38722fa179
[ruby/logger] Raise ArgumentError for invalid shift_age
...
Consider 'now' and 'everytime' as valid values for the previous
behavior of rotating everytime.
Fixes Ruby Bug 15977
https://github.com/ruby/logger/commit/f92979a376
2019-12-10 20:59:02 +09:00
George Claghorn
eb18cb3e47
[ruby/logger] Honor Logger#level overrides
...
https://github.com/ruby/logger/commit/7365c995bf
2019-12-10 20:58:25 +09:00
NARUSE, Yui
af11efd377
fix ipaddr parameter of Net::HTTP.start to support proxy
...
54072e329c
2019-12-10 19:12:21 +09:00
Nobuyoshi Nakada
aedbee52c0
Prefer $(CHDIR) for the case srcdir contains symlinks
2019-12-10 18:49:53 +09:00
Hiroshi SHIBATA
79d2a1b004
Update regression tests for 1.4.16
2019-12-10 18:41:05 +09:00
Yusuke Endoh
8299bcd946
.indent.pro: Removed because it is no longer used
2019-12-10 18:18:04 +09:00
Yusuke Endoh
c596e01a49
Move SECURITY.md into .github/ to reduce the files on the top directory
2019-12-10 18:05:51 +09:00
aycabta
fe0df7dcfc
Change encoding of completion strings
2019-12-10 17:28:09 +09:00
Yusuke Endoh
60c53ff6ee
vm_core.h (iseq_unique_id): prefer uintptr_t instead of unsigned long
...
It produced a warning about type cast in LLP64 (i.e., windows).
2019-12-10 17:12:21 +09:00
Hiroshi SHIBATA
e27d2013db
Import racc-1.4.1 from ruby/racc.
2019-12-10 17:04:03 +09:00
Hiroshi SHIBATA
43544f8617
Added the missing gemspec of racc
2019-12-10 17:03:13 +09:00
Nobuyoshi Nakada
58e5ab78d0
[ruby/io-console] bump up to 0.5.1
2019-12-10 16:06:12 +09:00
Nobuyoshi Nakada
2419b3dba6
[ruby/io-console] Suppress an unused-variable warning
...
https://github.com/ruby/io-console/commit/ae5c72e481
2019-12-10 16:06:11 +09:00
Nobuyoshi Nakada
f9c0fe77c0
[ruby/io-console] Use rb_thread_call_without_gvl instead of the deprecated function
...
https://github.com/ruby/io-console/commit/21338ab287
2019-12-10 16:06:11 +09:00
Nobuyoshi Nakada
09723b98f7
[ruby/io-console] Warn vtime option without intr flag
...
https://github.com/ruby/io-console/commit/499ff3de48
2019-12-10 16:06:11 +09:00
Nobuyoshi Nakada
0c2787b9b2
[ruby/io-console] bump up to 0.5.0
2019-12-10 16:06:11 +09:00
Konstantin Papkovskiy
1bdabaa6b1
base64.rb: improve performance of Base64.urlsafe_encode64
...
* lib/base64.rb: avoid unnecessary memory allocations
2019-12-10 14:32:35 +09:00