git
551ef27490
* expand tabs.
2019-06-21 22:48:50 +09:00
Nobuyoshi Nakada
8f51da5d41
Get rid of undefined behavior
...
* string.c (rb_str_sub_bang): str and repl can be same.
[Bug #15946 ]
2019-06-21 22:42:35 +09:00
aycabta
50841eca43
Support irregular auto indent
...
v =
if true
3
end # this "end" is auto-indented correctly
2019-06-21 21:35:25 +09:00
Shugo Maeda
38ccb8f747
Remove a duplicate test
2019-06-21 18:02:24 +09:00
Nobuyoshi Nakada
16729f6430
Remove duplicate functions
2019-06-21 17:53:32 +09:00
git
432b28af90
* expand tabs.
2019-06-21 17:43:21 +09:00
Shugo Maeda
702cf3ec90
Enumerator::Lazy should support filter_map
...
Fixes [Bug #15949 ]
2019-06-21 17:42:27 +09:00
Nobuyoshi Nakada
35392ff0a0
Fix an example [ci skip]
2019-06-21 17:40:28 +09:00
git
c997f7daaa
* expand tabs.
2019-06-21 17:29:08 +09:00
Nobuyoshi Nakada
5b7cc63d11
Turned `recur` into `int` [Feature #15777 ]
2019-06-21 17:28:37 +09:00
Jean Boussier
fb85a42860
Add an optional `inherit` argument to Module#autoload?
...
[Feature #15777 ]
Closes: https://github.com/ruby/ruby/pull/2173
2019-06-21 17:28:37 +09:00
Kazuhiro NISHIYAMA
887163beb8
Fix call-seq of lazy.filter_map [ci skip]
2019-06-21 17:11:11 +09:00
git
0174285e8c
* expand tabs.
2019-06-21 16:31:42 +09:00
Nobuyoshi Nakada
06a622b76e
Lazy filter_map
2019-06-21 16:28:39 +09:00
Espartaco Palma
4149fd6078
Fix small typo on block_scanf example [ci-skip]
...
Closes: https://github.com/ruby/ruby/pull/2247
2019-06-21 15:29:29 +09:00
Nobuyoshi Nakada
fde842fec0
Clean coroutine and timestamp directories
2019-06-21 03:20:09 +09:00
git
2ee1c76206
* 2019-06-21
2019-06-21 02:28:27 +09:00
Jeremy Evans
4a5e07d8e1
Avoid verbose warning when using Net::POP3 with SSL
...
Patch from Jos Kamphorst.
Fixes [Bug #14822 ]
2019-06-20 10:22:01 -07:00
Hiroshi SHIBATA
93356576fe
Revert "Removed needless file with the upstream repository."
...
This reverts commit 5bbfca7b1d
.
2019-06-20 22:27:06 +09:00
Nobuyoshi Nakada
1f0762ad21
Suppress messages from mkmf
2019-06-20 20:51:33 +09:00
Samuel Williams
9e7a8a4351
Only ignore build directories.
2019-06-20 23:12:48 +12:00
Samuel Williams
f607e43352
Transition root fiber into state FIBER_TERMINATED.
...
During fork, it's possible that threads with root fibers are terminated,
but fiber state is not updated. `fiber_verify` will subsequently fail. We
forcefully enter the FIBER_TERMINATED state when terminating the root
fiber.
2019-06-20 22:36:30 +12:00
Nobuyoshi Nakada
3077cb6912
Restore $VERBOSE
2019-06-20 18:20:38 +09:00
Nobuyoshi Nakada
e31602b78d
Suppress warnings
2019-06-20 17:41:09 +09:00
Kazuhiro NISHIYAMA
e6fbdde229
Fix a typo [ci skip]
2019-06-20 17:40:08 +09:00
Hiroshi SHIBATA
3aa8691d52
Added and update the racc entries on doc/*.
2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
557bcd8774
Added racc entry to NEWS.
2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
5bbfca7b1d
Removed needless file with the upstream repository.
2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
71ebf6d8e5
Update sync task for the directory structure of cparse and ignore JRuby files.
2019-06-20 16:11:03 +09:00
Hiroshi SHIBATA
45e939f5ad
Added gemspec of racc generated from upstream for the default gems.
...
1.4.16.pre.1 is the teemporary version. It may be changed 1.5.0 or others.
2019-06-20 16:11:03 +09:00
aycabta
c4c47b792d
Disable auto indent when move cursor up or down
...
This commit suppresses a strange behavior below:
if true
1[cursor]
end
and press down key
if true
1
end
2019-06-20 16:00:30 +09:00
Samuel Williams
e4cafa393f
Ensure that vm_stack is cleared in `thread_cleanup_func_before_exec`.
...
If `vm_stack` is left dangling in a forked process, the gc attempts to scan
it, but it is invalid and will cause a segfault. Therefore, we clear it
before forking.
In order to simplify this, `rb_ec_clear_vm_stack` was introduced.
2019-06-20 16:44:50 +12:00
Samuel Williams
c26c514494
Revert failed attempt at fixing invalid usage of vm_stack.
2019-06-20 15:30:29 +12:00
Samuel Williams
7d9d1ed463
Don't clear cfp, it causes problems.
2019-06-20 14:55:43 +12:00
Samuel Williams
15c4f6aed2
Skip `rb_ec_clear_vm_stack` for now.
2019-06-20 14:16:08 +12:00
git
199310997f
* remove trailing spaces.
2019-06-20 10:41:46 +09:00
Samuel Williams
dbc2b89bc0
Ensure `vm_stack` is cleared after fork.
2019-06-20 13:41:18 +12:00
Samuel Williams
6bf1285b20
Fix typo in VM_ASSERT.
2019-06-20 12:07:15 +12:00
Samuel Williams
626483721a
Set `cfp` to null (along with vm_stack) in `rb_fiber_close`.
2019-06-20 11:56:06 +12:00
Samuel Williams
25049a6e81
Extra assertions around thread.
2019-06-20 11:32:08 +12:00
Samuel Williams
91c4ef0151
Don't try to dereference NULL cfp.
2019-06-20 11:31:22 +12:00
Jeremy Evans
a0af60c7f2
Remove spec testing undefined behavior
...
Fixes [Bug #15432 ]
2019-06-19 12:20:30 -07:00
git
208cc6e3d0
* 2019-06-20
2019-06-20 04:07:35 +09:00
git
fdfe51d169
* expand tabs.
2019-06-20 04:07:31 +09:00
Jeremy Evans
b9ef35e4c6
Implement Complex#<=>
...
Implement Complex#<=> so that it is usable as an argument when
calling <=> on objects of other classes (since #coerce will coerce
such numbers to Complex). If the complex number has a zero imaginary
part, and the other argument is a real number (or complex number with
zero imaginary part), return -1, 0, or 1. Otherwise, return nil,
indicating the objects are not comparable.
Fixes [Bug #15857 ]
2019-06-19 10:50:58 -07:00
Yusuke Endoh
65944e96d3
test/racc/test_racc_command.rb: Extend the timeout
...
test_opal, test_ruby18, and test_ruby22 are slow tests.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-ad7f67/ruby-master/log/20190619T105405Z.fail.html.gz
2019-06-19 23:10:40 +09:00
Samuel Williams
2abe548f35
Don't change vm_stack/cfp without acquiring gvl first.
2019-06-20 02:05:16 +12:00
Nobuyoshi Nakada
ab6d8d0b65
Adjust indent
2019-06-19 20:40:49 +09:00
git
659eda7f83
* expand tabs.
2019-06-19 20:33:24 +09:00
Samuel Williams
d17344cfc5
Remove IA64 support.
2019-06-19 23:30:04 +12:00