summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-04azure-pipelines.yml: Upgrade Ruby for UseRubyVersionTakashi Kokubun
to fix https://dev.azure.com/rubylang/ruby/_build/results?buildId=1162&view=logs
2019-06-04Implement transpose-wordsaycabta
2019-06-03Pin keys in "compare by identity" hashesAaron Patterson
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.
2019-06-03object id is stable now for all objects, so we can let hash keys moveAaron Patterson
2019-06-03allow objects in imemo envs to moveAaron Patterson
2019-06-03Unpin objects that `proc` referencesAaron Patterson
This commit adds compaction support to method and proc objects. It just unpins references and implements the "compact" callback and updates references.
2019-06-04get rid of a warning of VC++NAKAMURA Usaku
2019-06-04Upgrade benchmark-driver to fix deprecation warningTakashi Kokubun
2019-06-04Reflect behavior changes to argument nameTakashi Kokubun
0c459af7c233adb5f44022350bfe8fa132d8053e changed the meaning of `detect_compile_error`, and this commit lets it follow the change.
2019-06-04Simplify matchingNobuyoshi Nakada
2019-06-04Remove conflict resolution mistake [ci skip]Takashi Kokubun
in de541fe1961370e64541d73c96cf790d30f28604 :bow:
2019-06-04Improve test_color to prevent regressionTakashi Kokubun
Actually de541fe1961370e64541d73c96cf790d30f28604 was still needed. This commit would improve the test coverage using the branch.
2019-06-04colorize_code must return escaped textTakashi Kokubun
This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it could be actually useless now. But I added this anyway just in case.
2019-06-04* 2019-06-04git
2019-06-04Colorize error charactersNobuyoshi Nakada
* 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-03Revert "common.mk: allow brace expansion for benchmark targets"Takashi Kokubun
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.
2019-06-03Revert "common.mk is NOT working with /bin/sh anymore"Takashi Kokubun
This reverts commit 11d3986d6557eb3cfcecbdd0ef6e21b18c7c960b. Travis was broken by that.
2019-06-03common.mk is NOT working with /bin/sh anymoreTakashi Kokubun
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.
2019-06-03benchmark/time_strptime.yml does not work with minirubyTakashi Kokubun
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`.
2019-06-03Erase VI_OPERATORSaycabta
The operators are using @waiting_operator_proc in vi mode.
2019-06-03remove `rb_objspace_pinned_object_p()`Koichi Sasada
Nobody uses this function other than gc.c. We only need RVALUE_PINNED().
2019-06-03Fix the error token on "invalid hex escape"Nobuyoshi Nakada
* parse.y (tok_hex): flush token after dispatching the "invalid hex escape" parse error.
2019-06-03`ruby -v` may no longer be ASCII-only on non-master branchesNobuyoshi Nakada
2019-06-03Default GIT external encoding to UTF-8 🤷‍♂️Nobuyoshi Nakada
And dump the title as US-ASCII.
2019-06-02Make size on an infinite each_slice enumerator return InfinityJeremy Evans
Fixes [Bug #15889]
2019-06-03Add reline to doc/maintainers.rdocKazuhiro NISHIYAMA
2019-06-03Use lines instead of splitKazuhiro NISHIYAMA
``` % 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-03The C-q is also quoted insert in emacs modeaycabta
2019-06-03Add aliases for commands for moving macroaycabta
2019-06-03Close leaked file descripters in testsaycabta
2019-06-03The ed_move_to_beg is different from vi_first_printaycabta
2019-06-03Reline::LineEditor::ARGUMENTABLE is no longer usedNobuyoshi Nakada
2019-06-03* 2019-06-03git
2019-06-03Fix ArgumentError in aliased macroNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2221
2019-06-02Check conditional nestings in INPUTRCNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2222
2019-06-02Prefer $INPUTRC over the default in the homeNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2222
2019-06-02Use simpler regexpKazuhiro NISHIYAMA
2019-06-02Add true condition `Reline`Nobuyoshi Nakada
2019-06-02Make psych.so deterministicJeremy Evans
Fixes Ruby Bug #15890
2019-06-02Add Reline test for unknown macroaycabta
2019-06-02Add new test for Reline within pipeaycabta
2019-06-02Add comments to key bindings vars of Reline::Configaycabta
2019-06-02Reline.readmultiline always needs block to confirm terminationaycabta
2019-06-02Suppress error of macro not foundaycabta
2019-06-01Update String#crypt tests to work on OpenBSDJeremy Evans
Skip the webrick httpauth tests that use crypt when testing on OpenBSD. Fixes [Bug #11363]
2019-06-02NEWS: move GC.compactNobuyoshi Nakada
From "Implementation improvements" to "Core classes updates".
2019-06-02NEWS: markup class and method namesNobuyoshi Nakada
2019-06-02* 2019-06-02git
2019-06-02delegate.rb: markup method namesNobuyoshi Nakada
2019-06-01Ignore warnings about mismatched indentations.Hiroshi SHIBATA