Takashi Kokubun
2a26c1ea24
Clarify the Ruby version support status in IRB more
2019-06-13 00:41:00 +09:00
Takashi Kokubun
1808029061
make sync-default-gems GEM=irb
...
Upgrade IRB to 41ea43a4a7
Mostly backport changes.
2019-06-13 00:32:20 +09:00
Nobuyoshi Nakada
88411d350e
Another incomplete string case
2019-06-12 15:30:07 +09:00
Nobuyoshi Nakada
9593e76ac2
Ripper::Lexer: fallback parse error token to the previous one
2019-06-12 15:25:06 +09:00
Jeremy Evans
5e018214e7
Fix SystemStackError when calling a method in an unused refinement
...
Fixes [Bug #15720 ]
2019-06-11 09:43:38 -07:00
Nobuyoshi Nakada
c4cbaef216
assert_cpu_usage_low with timeout scale
...
* test/lib/test/unit/assertions.rb (assert_cpu_usage_low): apply
the timeout scale to measuring period. this assertion is very
runtime environment dependent.
2019-06-11 23:15:46 +09:00
Nobuyoshi Nakada
42f0a8fd6f
MIN_HZ and MIN_MEASURABLE constants
...
* test/lib/test/unit/assertions.rb (Test::Unit::Assertions):
promoted MIN_HZ and MIN_MEASURABLE as constants, which should be
constant through the process.
2019-06-11 23:15:46 +09:00
Nobuyoshi Nakada
eb016d8353
Generalize timeout_scale
...
* test/lib/test/unit.rb (Test::Unit::TimeoutOption): renamed
SubprocessOption.
* test/lib/test/unit.rb (Test::Unit::TimeoutOption#setup_options):
prefer `--timeout-scale` option.
* test/lib/test/unit.rb (Test::Unit::TimeoutOption#non_options):
prefer `ENV["RUBY_TEST_TIMEOUT_SCALE"]`.
2019-06-11 23:15:46 +09:00
Nobuyoshi Nakada
39ae88ad0d
Refined syntax error messages
2019-06-11 22:31:57 +09:00
Nobuyoshi Nakada
140b8117bd
&. is not allowed inside LHS of massign
...
https://hackerone.com/reports/605262
2019-06-11 15:22:16 +09:00
Yusuke Endoh
4adc6f07ef
test/lib/test/unit/assertions.rb (assert_cpu_usage_low): Relax the limit
...
CPU usage 1% causes occesional test failure. Try to use 5%.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190604T153002Z.fail.html.gz
https://rubyci.org/logs/rubyci.s3.amazonaws.com/gentoo/ruby-master/log/20190610T153002Z.fail.html.gz
2019-06-11 07:17:59 +09:00
Yusuke Endoh
6096baea5d
test/net/http/test_http.rb: Extend the timeout
...
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190610T071910Z.log.html.gz
2019-06-11 06:45:49 +09:00
Jeremy Evans
6650899248
Make Resolv::DNS#each_name accept Resolv::IPv{4,6} arguments
...
These arguments were previously documented as supported, but not
actually supported.
Patch from Toru Iwase
Fixes [Bug #15900 ]
2019-06-08 20:31:12 -07:00
Nobuyoshi Nakada
562c0bfeda
Split test_strip_bom for each encoding
2019-06-09 12:27:05 +09:00
Nobuyoshi Nakada
a8ef498d6b
Add tests of the encoding with BOM
2019-06-09 11:11:26 +09:00
aycabta
19977cc761
Remove unnecessary variables
2019-06-08 00:14:58 +09:00
Nobuyoshi Nakada
ffaefcadd8
Report a sudden death of workers
2019-06-07 23:49:13 +09:00
Yusuke Endoh
75751dca2b
test/openssl/utils.rb: Extend the timeout for armv7l
...
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190607T051708Z.fail.html.gz
2019-06-07 23:37:55 +09:00
Nobuyoshi Nakada
6566919176
ripper_state_lex.rb: chomp CR
...
* lib/rdoc/parser/ripper_state_lex.rb (RDoc::Parser::RipperStateLex):
chomp newline, including CR, from here document terminator.
Closes : ruby/rdoc#694
Closes : ruby/rdoc#697
Closes : ruby/rdoc#705
2019-06-07 18:57:58 +09:00
Yusuke Endoh
a6a26e42b1
compile.c: Partially revert r63870 which caused wrong optimization
...
[Bug #15906 ]
2019-06-07 14:46:59 +09:00
Jeremy Evans
b8af33e63b
Skip one assertion for OpenSSL::PKey::EC::Point#mul on LibreSSL
...
LibreSSL 2.8.0+ does not support multiple elements in the first
argument.
2019-06-06 21:46:36 -07:00
Yusuke Endoh
7e403dc6c8
test/openssl/utils.rb: Extend the timeout
...
https://rubyci.org/logs/rubyci.s3.amazonaws.com/scw-9d6766/ruby-master/log/20190606T171708Z.fail.html.gz
2019-06-07 09:26:40 +09:00
Yusuke Endoh
9f941f61ef
test/webrick/test_filehandler.rb: extend the timeout for Solaris CI
...
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190602T031908Z.fail.html.gz
2019-06-06 21:50:30 +09:00
Yusuke Endoh
60924636e5
test/net/http/test_http.rb: extend the timeout for Solaris CI
...
https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190605T231909Z.fail.html.gz
2019-06-06 21:50:21 +09:00
Yusuke Endoh
1e54903684
test/openssl: Support OpenSSL 1.1.1
...
OpenSSL 1.1.1 rejects some shorter keys, which caused some failures of
`make test-all TESTS=openssl`.
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian/ruby-master/log/20190606T003005Z.fail.html.gz
This change merges 6bbc31ddd1 and 63fb3a36d1 in
https://github.com/ruby/openssl .
Reference: https://github.com/ruby/openssl/pull/217
2019-06-06 14:20:58 +09:00
aycabta
02880d1f4a
Skip transpose-words if less than 2 word
2019-06-06 04:57:52 +09:00
aycabta
eadc06ba16
Add test_ed_transpose_words_for_mbchar
2019-06-06 04:25:16 +09:00
Nobuyoshi Nakada
1624d77f3e
error.c: avoid infinite recursion at inspecting the frozen object
2019-06-05 13:31:09 +09:00
Nobuyoshi Nakada
b2fe7484e7
Test for f1f04caf60e4fc9dc3b12109e0be831f2d692810
2019-06-05 12:57:14 +09:00
Jeremy Evans
f1f04caf60
Include inspect value of object in FrozenError messages
...
FrozenError#receiver was added recently for getting the related
object programmatically. However, there are cases where FrozenError
is raised and not handled, and in those cases the resulting error
messages lack detail, which makes debugging the error more difficult,
especially in cases where the error is not easily reproducible.
This includes the inspect value of the frozen object in FrozenError
messages, which should make debugging simpler.
2019-06-04 19:25:03 -07:00
Nobuyoshi Nakada
9e472e18d2
suppress marshal warnings
2019-06-04 19:00:48 +09:00
Nobuyoshi Nakada
51d27d25d7
test/lib/test/unit.rb: use colorize.rb
2019-06-04 18:51:49 +09:00
Nobuyoshi Nakada
e7aa87c353
Renamed duplicate test
2019-06-04 18:33:34 +09:00
aycabta
9a07915ae2
Add aliases for commands for changing text macro
2019-06-04 08:35:01 +09:00
aycabta
4b7213a85a
Implement transpose-words
2019-06-04 07:23:36 +09:00
Takashi Kokubun
0da9205f15
Remove conflict resolution mistake [ci skip]
...
in de541fe1961370e64541d73c96cf790d30f28604 🙇
2019-06-04 00:32:17 +09:00
Takashi Kokubun
d21a694075
Improve test_color to prevent regression
...
Actually de541fe1961370e64541d73c96cf790d30f28604 was still needed.
This commit would improve the test coverage using the branch.
2019-06-04 00:29:54 +09:00
Takashi Kokubun
de541fe196
colorize_code must return escaped text
...
This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it
could be actually useless now. But I added this anyway just in case.
2019-06-04 00:26:02 +09:00
Nobuyoshi Nakada
0c459af7c2
Colorize error characters
...
* lib/irb/color.rb (IRB::Color.scan): ignore "incomplete end of
input" error only, to colorize invalid characters, e.g., control
characters, and invalid symbols, as errors.
2019-06-04 00:14:55 +09:00
Nobuyoshi Nakada
c990b3c41a
Fix the error token on "invalid hex escape"
...
* parse.y (tok_hex): flush token after dispatching the "invalid
hex escape" parse error.
2019-06-03 15:15:54 +09:00
Jeremy Evans
17af8bfce6
Make size on an infinite each_slice enumerator return Infinity
...
Fixes [Bug #15889 ]
2019-06-02 20:00:35 -07:00
Kazuhiro NISHIYAMA
533070bfc6
Use lines instead of split
...
```
% cat ~/bench-split.yml
prelude: |
s = "foo\nbar\nbaz\n"
benchmark:
'/(?<=\n)/': |
s.split(/(?<=\n)/)
'/^/': |
s.split(/^/)
'lines': |
s.lines
Warming up --------------------------------------
/(?<=\n)/ 459.123k i/s - 467.844k times in 1.018994s (2.18μs/i)
/^/ 467.922k i/s - 469.744k times in 1.003894s (2.14μs/i)
lines 2.343M i/s - 2.424M times in 1.034677s (426.84ns/i)
Calculating -------------------------------------
/(?<=\n)/ 422.347k i/s - 1.377M times in 3.261232s (2.37μs/i)
/^/ 477.603k i/s - 1.404M times in 2.939186s (2.09μs/i)
lines 2.485M i/s - 7.028M times in 2.828757s (402.47ns/i)
Comparison:
lines: 2484631.6 i/s
/^/: 477603.3 i/s - 5.20x slower
/(?<=\n)/: 422346.5 i/s - 5.88x slower
```
2019-06-03 10:32:32 +09:00
aycabta
182072b211
The C-q is also quoted insert in emacs mode
2019-06-03 04:17:52 +09:00
aycabta
5524de5ca0
Add aliases for commands for moving macro
2019-06-03 03:41:40 +09:00
aycabta
1bfba99b79
Close leaked file descripters in tests
2019-06-03 03:38:39 +09:00
aycabta
3428922437
The ed_move_to_beg is different from vi_first_print
2019-06-03 03:29:34 +09:00
Nobuyoshi Nakada
3457ce4486
Fix ArgumentError in aliased macro
...
Closes: https://github.com/ruby/ruby/pull/2221
2019-06-03 01:35:48 +09:00
Nobuyoshi Nakada
f4b060d8d7
Check conditional nestings in INPUTRC
...
Closes: https://github.com/ruby/ruby/pull/2222
2019-06-02 22:58:05 +09:00
Kazuhiro NISHIYAMA
4fda39fc87
Use simpler regexp
2019-06-02 22:37:42 +09:00
Nobuyoshi Nakada
d04ebc57f2
Add true condition Reline
2019-06-02 20:31:25 +09:00