Nobuyoshi Nakada
47f2c5429b
Added NUL-contained cases
2020-07-31 00:54:34 +09:00
Marc-Andre Lafortune
352895b751
[ruby/racc] Return nil
for all syntax errors
...
51817ce0f6
2020-07-30 10:07:06 -04:00
Marc-Andre Lafortune
1b1ea7b3bc
Fix Array#flatten for recursive array when given positive depth [Bug #17092 ]
2020-07-30 09:53:42 -04:00
Hiroshi SHIBATA
2bd1f827f1
Promote io-nonblock to the default gems.
2020-07-30 21:21:08 +09:00
Hiroshi SHIBATA
d75b42a70a
Promote io-wait to the default gems
2020-07-30 21:10:28 +09:00
Hiroshi SHIBATA
ec1ab1d465
Add explicitly require for Dir.mktmpdir
2020-07-30 21:01:22 +09:00
Nobuyoshi Nakada
b2d96abb42
Extract version number from the source
...
"requiring version.rb" strategy has some issues.
- cannot work when cross-compiling
- often introduces wrong namespace
- must know the superclasses
- costs at each runtime than at build-time
etc.
2020-07-30 19:03:18 +09:00
Espartaco Palma
cfbae7dae0
[skip-ci] Clarification for dup vs clone docs
...
Both clone & dup returns a new object when executed
on the documentation looks like they are returning the
same object cloned or dup'ed which is true for method
as extend, but not for the above mentioned.
2020-07-30 18:34:17 +09:00
Jun Aruga
265968d675
Apply timeout-scale to test_nogvl_poll.
2020-07-30 18:28:41 +09:00
Burdette Lamar
35e5b8fb82
Enhanced RDoc for Array ( #3372 )
2020-07-29 18:25:24 -04:00
Nobuyoshi Nakada
28cd254b49
Set cloned flag after checked if copiable
2020-07-30 02:28:46 +09:00
git
478dc67cf5
* 2020-07-30 [ci skip]
2020-07-30 01:10:26 +09:00
Benoit Daloze
241244739f
Fix arity of Hash#to_proc [Bug #12671 ]
2020-07-29 18:09:53 +02:00
Nobuyoshi Nakada
f79dc8741f
rbinstall.rb: fix generated script name to set mode
2020-07-29 23:02:33 +09:00
Nobuyoshi Nakada
f0affcdbf6
rbinstall.rb: fix dry-run mode
2020-07-29 22:47:00 +09:00
Nobuyoshi Nakada
0d632a956c
transient_heap_status_cstr() is used only for debugging
2020-07-29 21:08:48 +09:00
Nobuyoshi Nakada
c904844578
Skip already extracted gems
2020-07-29 20:52:47 +09:00
Koichi Sasada
ed22bf47cc
display stderr output even if core dump files
...
On btest, stderr messages are not displayed if core files are
generated. There is no reason to skip it, so this patch display
stderr and check core files.
2020-07-29 18:45:39 +09:00
Koichi Sasada
dd6f5aba0e
add debug output.
2020-07-29 17:45:02 +09:00
Jeremy Evans
520a734ad9
Fix Time#ceil when result should be the same as the receiver
...
Fixes [Bug #17025 ]
2020-07-28 12:53:37 -07:00
git
1027520fec
* 2020-07-29 [ci skip]
2020-07-29 04:06:15 +09:00
BurdetteLamar
e1b6e1d126
Enhanced RDoc for Array [ci skip]
2020-07-28 12:01:46 -07:00
Kazuhiro NISHIYAMA
946cd6c534
Use https instead of http
2020-07-28 19:51:54 +09:00
Nobuyoshi Nakada
f44114b502
Do not assume all compilers accept same flags as gcc
2020-07-28 16:43:38 +09:00
Nobuyoshi Nakada
7fb12be99f
[ruby/net-ftp] Moved Net::Ftp::Version to Net::FTP
...
On case-insensitive filesystem, generated Net/FTP.html is
overwritten by Net/Ftp.html.
14a6ff5134
2020-07-28 15:14:01 +09:00
Yusuke Endoh
da31900d9d
vm_backtrace.c: let rb_profile_frames show cfunc frames
...
... in addition to normal iseq frames.
It is sometimes useful to point the bottleneck more precisely.
2020-07-28 13:18:08 +09:00
Sergio
e4b63202eb
Remove unnecessary word from comment
2020-07-28 12:14:45 +09:00
Simon Perepelitsa
09e9f7cf7a
[DOC] Clarify ObjectSpace return values are in bytes [ci skip]
2020-07-28 12:13:40 +09:00
Vít Ondruch
db0eab1c6f
Remove EnvUtil.rubyexec
, because it is not used anywhere.
2020-07-28 12:11:47 +09:00
Benoit Daloze
126fd5f15c
Update to ruby/spec@07164da
2020-07-27 21:41:08 +02:00
Benoit Daloze
7429841ab6
Update to ruby/mspec@9cffee9
2020-07-27 21:41:03 +02:00
Aaron Patterson
35ba2783fe
Use a linked list to eliminate imemo tmp bufs for managing local tables
...
This patch changes local table memory to be managed by a linked list
rather than via the garbage collector. It reduces allocations from the
GC and also fixes a use-after-free bug in the concurrent-with-sweep
compactor I'm working on.
2020-07-27 12:40:01 -07:00
git
c5ae79d7e9
* 2020-07-28 [ci skip]
2020-07-28 00:18:40 +09:00
Jeremy Evans
eeef16e190
Prevent SystemStackError when calling super in module with activated refinement
...
Without this, if a refinement defines a method that calls super and
includes a module with a module that calls super and has a activated
refinement at the point super is called, the module method super call
will end up calling back into the refinement method, creating a loop.
Fixes [Bug #17007 ]
2020-07-27 08:18:11 -07:00
git
cb5127927a
* 2020-07-27 [ci skip]
2020-07-27 15:25:35 +09:00
aycabta
c4f8095e97
Use typewriter notation for var[:sym] correctly
2020-07-27 15:24:03 +09:00
git
a8e5f78585
* 2020-07-26 [ci skip]
2020-07-26 21:24:27 +09:00
Nobuyoshi Nakada
d210a39774
Fixed a typo
2020-07-26 21:24:07 +09:00
Nobuyoshi Nakada
3ead2770a1
Respect visibility in non-array Enumerable#inject [Bug #13592 ]
2020-07-24 21:08:50 +09:00
S.H
2735da2039
Fix Time#to_a behavior with timezone [Bug #17046 ]
2020-07-24 20:17:31 +09:00
git
922fe4da3f
* 2020-07-24 [ci skip]
2020-07-24 11:11:15 +09:00
Nobuyoshi Nakada
ba99eae2a5
[ruby/optparse] Fix ls-files matching regexp
...
As splitting by NUL means to allow the file names to contain
newlines, path names should match at beginning-of-string instead
of beginning-of-line.
df3933aa2b
2020-07-24 11:00:34 +09:00
Yusuke Endoh
098e8c2873
Suppress "assigned but unused variable" warnings
2020-07-23 23:44:25 +09:00
Tom Rothe
e43d629575
[ruby/observer] add symbol usage example to Observer#add_observer [doc]
...
62a94e3799
2020-07-23 09:49:03 -04:00
Nobuyoshi Nakada
54acb3dd52
Improved Enumerable::Lazy#zip
...
| |compare-ruby|built-ruby|
|:-------------------|-----------:|---------:|
|first_ary | 290.514k| 296.331k|
| | -| 1.02x|
|first_nonary | 166.954k| 169.178k|
| | -| 1.01x|
|first_noarg | 299.547k| 305.358k|
| | -| 1.02x|
|take3_ary | 129.388k| 188.360k|
| | -| 1.46x|
|take3_nonary | 90.684k| 112.688k|
| | -| 1.24x|
|take3_noarg | 131.940k| 189.471k|
| | -| 1.44x|
|chain-first_ary | 195.913k| 286.194k|
| | -| 1.46x|
|chain-first_nonary | 127.483k| 168.716k|
| | -| 1.32x|
|chain-first_noarg | 201.252k| 298.562k|
| | -| 1.48x|
|chain-take3_ary | 101.189k| 183.188k|
| | -| 1.81x|
|chain-take3_nonary | 75.381k| 112.301k|
| | -| 1.49x|
|chain-take3_noarg | 101.483k| 192.148k|
| | -| 1.89x|
|block | 296.696k| 292.877k|
| | 1.01x| -|
2020-07-23 16:57:26 +09:00
Nobuyoshi Nakada
6b3cff12f6
Improved Enumerable::Lazy#flat_map
...
| |compare-ruby|built-ruby|
|:-------|-----------:|---------:|
|num3 | 96.333k| 160.732k|
| | -| 1.67x|
|num10 | 96.615k| 159.150k|
| | -| 1.65x|
|ary2 | 103.836k| 172.787k|
| | -| 1.66x|
|ary10 | 109.249k| 177.252k|
| | -| 1.62x|
|ary20 | 106.628k| 177.371k|
| | -| 1.66x|
|ary50 | 107.135k| 162.282k|
| | -| 1.51x|
|ary100 | 106.513k| 177.626k|
| | -| 1.67x|
2020-07-23 16:57:26 +09:00
Nobuyoshi Nakada
89a86788e6
New functions to pass more elements than passed
2020-07-23 16:57:25 +09:00
Nobuyoshi Nakada
347639ad8a
Removed fragile tests in https://github.com/ruby/ruby/pull/3349
2020-07-23 14:57:05 +09:00
卜部昌平
ff397d0016
dln.h: delete unused codes
...
defines.h already has them. Also __cplusplus can never be defined here.
2020-07-23 14:30:12 +09:00
卜部昌平
c4fc737f75
include/ruby/util.h: delete unused codes
...
- util.h includes defines.h,
- ... which includes ruby/backward/2/stdarg.h,
- ... which always defines _.
This `#ifndef _` must never happen.
2020-07-23 14:30:12 +09:00