Age | Commit message (Collapse) | Author |
|
to fix
https://dev.azure.com/rubylang/ruby/_build/results?buildId=1162&view=logs
|
|
|
|
Hashes that compare by identity care about the location of the object in
memory. Since they care about the memory location, we can't let them
move.
|
|
|
|
|
|
This commit adds compaction support to method and proc objects. It just
unpins references and implements the "compact" callback and updates
references.
|
|
|
|
|
|
0c459af7c233adb5f44022350bfe8fa132d8053e changed the meaning of
`detect_compile_error`, and this commit lets it follow the change.
|
|
|
|
in de541fe1961370e64541d73c96cf790d30f28604 :bow:
|
|
Actually de541fe1961370e64541d73c96cf790d30f28604 was still needed.
This commit would improve the test coverage using the branch.
|
|
This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it
could be actually useless now. But I added this anyway just in case.
|
|
|
|
* 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.
|
|
This reverts commit 4c0e21add7c87b70df27fbff81d8f192a467556d
because we're not using /bin/bash.
See 11d3986d6557eb3cfcecbdd0ef6e21b18c7c960b and
1b2b0e1f244b3e71812fa9859e8b87150ea30434 to know its context.
In short, 4c0e21add7c87b70df27fbff81d8f192a467556d does not work on
Ubuntu.
|
|
This reverts commit 11d3986d6557eb3cfcecbdd0ef6e21b18c7c960b.
Travis was broken by that.
|
|
at least on Ubuntu.
The brace expansion does not work on Ubuntu /bin/sh (dash), and so
4c0e21add7c87b70df27fbff81d8f192a467556d effectively broke /bin/sh
compatibility of common.mk.
I guess he was using macOS whose /bin/sh is bash.
|
|
Since 72ad092960c413b6a5687c552747b20a5ed78b22, we cannot run full `make benchmark`
because default BENCH_RUBY is miniruby and it fails to require 'time'.
Using miniruby for benchmark by default seems reasonable for some cases,
but now it's just bothering for people running full `make benchmark`.
|
|
The operators are using @waiting_operator_proc in vi mode.
|
|
Nobody uses this function other than gc.c. We only need
RVALUE_PINNED().
|
|
* parse.y (tok_hex): flush token after dispatching the "invalid
hex escape" parse error.
|
|
|
|
And dump the title as US-ASCII.
|
|
Fixes [Bug #15889]
|
|
|
|
```
% 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
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Closes: https://github.com/ruby/ruby/pull/2221
|
|
Closes: https://github.com/ruby/ruby/pull/2222
|
|
Closes: https://github.com/ruby/ruby/pull/2222
|
|
|
|
|
|
Fixes Ruby Bug #15890
|
|
|
|
|
|
|
|
|
|
|
|
Skip the webrick httpauth tests that use crypt when testing on
OpenBSD.
Fixes [Bug #11363]
|
|
From "Implementation improvements" to "Core classes updates".
|
|
|
|
|
|
|
|
|