Benoit Daloze
c940397116
Update to ruby/mspec@ca2bc42
2019-06-27 21:02:33 +02:00
Takashi Kokubun
310a42e89c
Explain rubyspec Travis job in job name
...
Eregon did not want 7b9dd379bf
because people only see Travis job name and don't see .travis.yml.
I believe the new job name is simple and informative enough to explain
why it exists.
2019-06-27 22:32:28 +09:00
Nobuyoshi Nakada
1f7cb4bee9
Omit `EXPR_` prefix to show lex_state
2019-06-27 20:31:10 +09:00
Benoit Daloze
9247f6fcc0
Expand and clarify documentation about version guards for specs
2019-06-27 12:06:39 +02:00
Benoit Daloze
2c02d5714e
Add a comment explaining what to do if specs fail on Ruby 2.4
2019-06-27 11:57:23 +02:00
Nobuyoshi Nakada
7b716bc52a
Show the parser states in pretty_print too
2019-06-27 16:58:06 +09:00
aycabta
2fd03fd7e6
EXPR_LABEL also indicates non-continuation line
...
Example:
[
1, # this is not continuation line
2
]
2019-06-27 16:03:43 +09:00
Nobuyoshi Nakada
097554855c
Fix ripper fatal
...
* parse.y (parser_yylex): return END_OF_INPUT at unterminated here
document instead of an error. [Bug #15962 ]
2019-06-27 15:32:03 +09:00
Nobuyoshi Nakada
2a56702eee
Test for unterminated here-docs
2019-06-27 15:13:45 +09:00
Kazuhiro NISHIYAMA
c86a9e6592
bc mode is already removed [ci skip]
2019-06-27 11:18:02 +09:00
aycabta
d6bcf36793
EXPR_CMDARG also indicates the end of an expression
2019-06-27 10:59:26 +09:00
Jeremy Evans
7172ab0ec5
Use native coroutine implementation on OpenBSD-amd64
...
When using native fibers, do not load ucontext, as it isn't needed.
2019-06-26 16:23:11 -07:00
aycabta
24c4e6dec1
Increase indent of continuation line
...
v =
3 # auto indent
2019-06-27 01:26:14 +09:00
git
df3c94712b
* 2019-06-27
2019-06-27 01:21:53 +09:00
aycabta
72bfc52de6
Decrease indent by closing token correctly
2019-06-27 01:21:06 +09:00
Jeremy Evans
d004989ac6
Do not attempt to use ucontext for fibers on OpenBSD
...
OpenBSD does not support ucontext.
There may be a more generic way to handle this, using the result
of AC_CHECK_HEADERS(ucontext.h).
2019-06-26 07:53:54 -07:00
Kazuhiro NISHIYAMA
1235e054eb
[DOC] Add spaces [ci skip]
2019-06-26 21:44:42 +09:00
Kazuhiro NISHIYAMA
d9a055a721
[DOC] Fix svn account [ci skip]
2019-06-26 21:44:20 +09:00
Samuel Williams
acb67472c7
Restore updated implementation of arm32 coroutine code, but prefer ucontext.
2019-06-26 22:02:28 +12:00
aycabta
ba17127e99
Decrease nesting level when closing token comes at a non-first token of line
2019-06-26 18:44:27 +09:00
Yusuke Endoh
28eeaed8a9
Revert "coroutine/arm32/Context.S: save/restore the registers via stack"
...
This reverts commit 6df1814c08
.
It caused a SEGV again:
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190626T051707Z.fail.html.gz
2019-06-26 17:23:00 +09:00
Samuel Williams
6c6bf9ffcb
Add `ucontext` coroutine implementation for generic fallback.
2019-06-26 20:19:53 +12:00
Yusuke Endoh
a84a99ffab
test/ruby/test_array.rb (test_sort_with_replace): run in a subprocess
...
This test invokes GC.start 100 times, which takes approx. six minutes in
Solaris. This change runs the test in a separated process, which makes
GC.start faster.
2019-06-26 16:04:07 +09:00
John Hawthorn
04bc4c0662
Resize capacity for fstring
...
When a string is #frozen, it's capacity is resized to fit (if it is much
larger), since we know it will no longer be mutated.
> puts ObjectSpace.dump(String.new("a"*30, capacity: 1000))
{"type":"STRING", "class":"0x7feaf00b7bf0", "bytesize":30, "capacity":1000, "value":"...
> puts ObjectSpace.dump(String.new("a"*30, capacity: 1000).freeze)
{"type":"STRING", "class":"0x7feaf00b7bf0", "frozen":true, "bytesize":30, "value":"...
(ObjectSpace.dump doesn't show capacity if capacity is equal to bytesize)
Previously, if we dedup into an fstring, using String#-@, capacity would
not be reduced.
> puts ObjectSpace.dump(-String.new("a"*30, capacity: 1000))
{"type":"STRING", "class":"0x7feaf00b7bf0", "frozen":true, "fstring":true, "bytesize":30, "capacity":1000, "value":"...
This commit makes rb_fstring call rb_str_resize, the same as
rb_str_freeze does.
Closes: https://github.com/ruby/ruby/pull/2256
2019-06-26 15:01:48 +09:00
Nobuyoshi Nakada
fe0ddf0e58
`ensure` is not a continuos line
2019-06-26 15:01:01 +09:00
Yusuke Endoh
6df1814c08
coroutine/arm32/Context.S: save/restore the registers via stack
...
Retry of 518adcca0a
and dbe232e24e
2019-06-26 14:08:10 +09:00
Jeremy Evans
51361272f9
Respect --dest-dir when removing old default gems
...
Before this, tool/rbinstall would try to remove a gem file that
it may not have access too.
Fixes issue introduced in f550da512c
.
2019-06-25 19:02:48 -07:00
Nobuyoshi Nakada
a3d1cacda6
Decrease indent at "elsif" too
2019-06-26 10:49:23 +09:00
Nobuyoshi Nakada
ea8bc6822d
Remove other debug prints
2019-06-26 10:49:23 +09:00
Hiroshi SHIBATA
e478671e19
Added version guard for backtrace printing feature of psych to ruby/spec.
2019-06-26 09:23:02 +09:00
aycabta
cfa1a18431
Remove debug print...sorry
2019-06-26 08:07:58 +09:00
Jeremy Evans
0f28094201
Improve wording of Local Variables and eval section
...
As pointed out by nobu, "defined" should be used instead of "assigned".
2019-06-25 11:18:08 -07:00
git
0aa8c3d88b
* 2019-06-26
2019-06-26 01:53:22 +09:00
git
dd57442f74
* remove trailing spaces.
2019-06-26 01:53:19 +09:00
Jeremy Evans
0bd5f846df
Document local variable interactions with eval
...
Fixes [Bug #13337 ]
2019-06-25 09:52:34 -07:00
Yusuke Endoh
730aeb2523
Revert 518adcca0a
and dbe232e24e
...
518adcca0a: "Try using arm32 implementation for fibers."
dbe232e24e: "Order of arguments might be incorrect in arm32 coroutine implementation."
It seems to cause SEGV consistently on Ubuntu armv7l eabihf:
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190625T081710Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190625T111708Z.fail.html.gz
2019-06-25 23:32:26 +09:00
aycabta
57e1a69ea3
Treat auto indent with newline correctly
2019-06-25 22:07:32 +09:00
aycabta
0b57f9b25d
Decrease indent when "else", "rescue", "ensure", "when", or "in" come
2019-06-25 22:02:31 +09:00
Yusuke Endoh
1cbc4f9876
test/net/imap/test_imap.rb: use Thread#stop? to wait for server thread
...
Still timeout occurs. Retry for 5dd8fdd3f3
.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190625T032405Z.fail.html.gz
2019-06-25 17:22:02 +09:00
Hiroshi SHIBATA
d7887b05d8
Fixed broken ruby/spec related a53ab897c3
2019-06-25 16:46:53 +09:00
Jean Boussier
746812ee96
Do not allocate a string to check if a scalar is an integer
2019-06-25 15:56:20 +09:00
Jean Boussier
5a4d2b9f2f
Remove string_cache in ScalarScanner
2019-06-25 15:56:20 +09:00
Jean Boussier
63f78bbaae
Reduce string allocations in scalar_scanner
2019-06-25 15:56:20 +09:00
SHIBATA Hiroshi
00d0ede845
Removed CHANGELOG from rdoc files.
2019-06-25 15:56:20 +09:00
SHIBATA Hiroshi
3c4fc830dd
Retired to write CHANGELOG.rdoc. Because It has no update from 2015.
2019-06-25 15:56:20 +09:00
Aaron Patterson
03dac55f90
Dump Hash ivars before elements
...
When the Hash is revived, the ivars will be set before elements. This
is for the case when the hash setter depends on ivars set on the hash.
2019-06-25 15:56:20 +09:00
Jordan Owens
0016edbead
Add test to demonstrate issue deserializing hash with ivar
...
Currently the elements of a hash are revived before any ivar values.
This causes an issue when the `[]=` method references an instance
variable.
2019-06-25 15:56:20 +09:00
Aaron Patterson
a53ab897c3
Round trip exception backtraces
...
This commit allows exception backtraces to round trip
2019-06-25 15:56:20 +09:00
Aaron Patterson
f770a5be66
Refactor exception dumping
2019-06-25 15:56:20 +09:00
Aaron Patterson
4bd1909427
Dumping the backtrace never worked, so remove it
...
Dumping the backtrace for exceptions never worked, so lets remove it.
2019-06-25 15:56:20 +09:00