Commit graph

67695 commits

Author SHA1 Message Date
aycabta
30203a6fd9 [ruby/reline] Use Symbol for method names
479eee5393
2021-09-07 02:42:49 +09:00
aycabta
cec50ec8d6 [ruby/reline] Remove SIG prefix because don't use it in any other signal processing
37648042e8
2021-09-07 02:42:42 +09:00
aycabta
f927614e55 [ruby/reline] Use String for the value to be passed because Signal.trap also returns String
b908fe4439
2021-09-07 02:42:38 +09:00
git
8d9e767f1a * 2021-09-07 [ci skip] 2021-09-07 01:59:29 +09:00
aycabta
4885a61b12 [ruby/reline] Rescue ArgumentError from Signal.trap(:TSTP) on Windows
8da8182d1c
2021-09-07 01:59:13 +09:00
aycabta
e8ad881336 [ruby/reline] Trap TSTP to handle C-z
ebbd0076b8
2021-09-07 01:59:05 +09:00
aycabta
966ed206a6 [ruby/reline] Limit number of chars only when completion source text (pointer == -1)
1d7b603811
2021-09-06 22:50:11 +09:00
Hiroshi SHIBATA
afd7d1672f
Removed obsoleted comment 2021-09-06 19:36:04 +09:00
Hiroshi SHIBATA
ecfbf1df33
Use Test::Unit::PendedError instead of MiniTest::Skip for test-unit migration 2021-09-06 19:33:56 +09:00
Hiroshi SHIBATA
544e37f184
Simplify conditions for CoreAssertion initialization 2021-09-06 19:31:24 +09:00
Hiroshi SHIBATA
940a19e4b3
Use Test::Unit::AssertionFailedError instead of MiniTest::Assertion for test-unit migration 2021-09-06 18:34:15 +09:00
aycabta
8baac078bc [ruby/irb] Version 1.3.8.pre.8
9ff0b1bba0
2021-09-06 16:11:50 +09:00
aycabta
692e7147b4 [ruby/irb] Update dependency, reline >= 0.2.8.pre.8
79ad1f5a6d
2021-09-06 16:11:45 +09:00
aycabta
3cef8869b0 [ruby/reline] Version 0.2.8.pre.8
967e19786d
2021-09-06 16:10:22 +09:00
Kenta Murata
f8bb2d9b27
memory_view.c: Rename private to private_data for C++ (#4812)
* memory_view.c: Rename private to private_data for C++

* doc/memory_view.md: Update document

* Fix doc/memory_view.md

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>

Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
2021-09-06 16:01:52 +09:00
Nobuyoshi Nakada
a5e323f5ed
Schedule to update bundled_gems 2021-09-06 15:17:04 +09:00
Yusuke Endoh
f336a3eb6c Use free instead of xfree to free altstack
The altstack memory of a thread may be free'ed even after the VM is
destructed. After that, GC is no longer available, so calling xfree
may lead to a segfault.

This changeset uses the bare free function to free the altstack memory
instead of xfree. [Bug #18126]
2021-09-06 14:22:24 +09:00
Hiroshi SHIBATA
13dd07e397 Removed redundant tests 2021-09-06 13:11:29 +09:00
Hiroshi SHIBATA
a68a1b0b7d Removed MiniTest::Assertion from test/rdoc 2021-09-06 13:11:29 +09:00
aycabta
540eea39dd [ruby/reline] Add a test for key bindings with Reline::Key
cadbd576c7
2021-09-06 08:10:08 +09:00
aycabta
83a0807b3b [ruby/reline] Add a test for oneshot key bindings
42ebea82b7
2021-09-06 08:10:02 +09:00
aycabta
14cc611133 [ruby/reline] Rename a temporary test name to appropriate one
26ebecde5c
2021-09-06 08:09:57 +09:00
aycabta
168bd4f356 [ruby/reline] Add a test for Reline::Unicode#take_range
af7953ff93
2021-09-06 08:09:50 +09:00
Filip Pyda
be5159c2f8 [ruby/irb] Pass RI options to help
9b98d1afab
2021-09-06 07:10:27 +09:00
manga_osyo
97a569c648 [ruby/reline] Memoize path of .inputrc [Ref #319]
When `ENV["HOME"] = "foo"` on irb, an exception is raised when retrieving the path of `.inputrc`.
Memoize the path of `.inputrc` and don't get the path after the second time.

7b90b16165
2021-09-06 07:05:52 +09:00
aycabta
2a4bacce8c [ruby/irb] Add comments for Alt+d key sequences
4cb5f7e546
2021-09-06 06:39:02 +09:00
aycabta
32ff4a8c93 [ruby/reline] Set scrollbar color
d7962e420d
2021-09-06 05:35:03 +09:00
aycabta
991eb4894d [ruby/irb] Use multiple trap_key
416abe2524
2021-09-06 05:24:41 +09:00
aycabta
348bb62331 [ruby/reline] Cut out read_2nd_character_of_key_sequence
92518d1dee
2021-09-06 05:24:15 +09:00
aycabta
79652c5873 [ruby/reline] Support multiple trap_key
b0207fa049
2021-09-06 05:24:05 +09:00
aycabta
d07060c42a [ruby/reline] No need to use max_by when array.size == 1
7e56c8af05
2021-09-06 05:23:55 +09:00
aycabta
8913b9b742 [ruby/reline] Use sort.last instead of sort.reverse.first
67f1d8d2d2
2021-09-06 05:23:46 +09:00
aycabta
7de2c9a966 [ruby/reline] Use combined_key if it exists when comparing Reline::Key and Integer
8fca5f6f9c
2021-09-06 05:23:36 +09:00
aycabta
3773296bfc [ruby/reline] Allow Reline::KeyStroke to compare raw and meta-key processed key sequences
731103f9c9
2021-09-06 05:23:27 +09:00
aycabta
56ab22ab3d [ruby/reline] Support for key bindings result Symbol in Reline::Key
cf78a38064
2021-09-06 05:23:18 +09:00
aycabta
bbb3162dd2 [ruby/reline] Add Reline::Key#== as an alias to Reline::Key#match?
1fc3276c01
2021-09-06 05:23:11 +09:00
aycabta
544cd3fb91 [ruby/reline] Support oneshot key bindings config for key_trap of dialog callbacks
5f1141b693
2021-09-06 05:23:06 +09:00
aycabta
bb6d45cfee [ruby/reline] Reline::Key supports the comparison with Integer
ebc3e0f673
2021-09-06 05:23:01 +09:00
aycabta
e68a586263 [ruby/reline] Add that Reline::Unicode.take_range is cutting based on width
18405d9594
2021-09-06 05:22:36 +09:00
aycabta
1fe604a675 [ruby/reline] Add comments about optimizing chars in ASCII range of UTF-8
3c13d93486
2021-09-06 05:22:29 +09:00
git
f831ecd8d5 * 2021-09-06 [ci skip] 2021-09-06 01:12:13 +09:00
Soutaro Matsumoto
6bae5ac955
Bundle RBS 1.6.0 (#4809)
* Bundle RBS 1.6.0

* Specify bundled rbs commit hash to fix test

ref https://github.com/ruby/rbs/pull/778

* Bundle RBS 1.6.1

Co-authored-by: Masataka Pocke Kuwabara <kuwabara@pocke.me>
2021-09-06 01:11:50 +09:00
S-H-GAMELINKS
bdd6d8746f Replace RBOOL macro 2021-09-05 23:01:27 +09:00
Hiroshi SHIBATA
8f752c95d2
[ruby/fiddle] Use test-unit gem (https://github.com/ruby/fiddle/pull/69)
e08c4c635e

Co-authored-by: Sutou Kouhei <kou@clear-code.com>
2021-09-05 17:43:48 +09:00
Nobuyoshi Nakada
afa33da72b [ruby/fiddle] Create extconf header for MSVC
Not to include parenthesized argument.

c2c921e16a
2021-09-05 17:31:46 +09:00
git
521aea9a76 * 2021-09-05 [ci skip] 2021-09-05 00:33:51 +09:00
Kazuhiro NISHIYAMA
f91f82ca30
Update bundled_gems 2021-09-05 00:33:26 +09:00
aycabta
5f771f4f02 [ruby/irb] Remove commeted out code
7dda1f803e
2021-09-04 21:59:39 +09:00
aycabta
c8bf45f23c [ruby/irb] Show doc at the same height as the autocompletion dialog
a9db71e6bc
2021-09-04 21:57:11 +09:00
aycabta
f7d9dd2e4c [ruby/irb] Render properly if both autocomplete and show doc dialogs are left of the cursor
0090203107
2021-09-04 21:55:55 +09:00