Граф коммитов

56 Коммитов

Автор SHA1 Сообщение Дата
aycabta e2512cff05 Move a test file of Reline to test/reline/ 2019-07-15 10:40:06 +09:00
manga_osyo 04e6b90d5b Remove unused method. 2019-07-15 00:33:16 +09:00
aycabta 6c2b59f923 Support Control- and Meta- 2019-07-04 20:58:11 +09:00
aycabta 6fa7ed453e Check commented out line in inputrc correctly 2019-07-04 19:29:07 +09:00
Nobuyoshi Nakada 265b9a0edf
Parse key sequence more strictly 2019-07-04 18:54:50 +09:00
Nobuyoshi Nakada ee861e43f7
Skip indented comment lines [Bug #15981] 2019-07-04 18:47:22 +09:00
aycabta 19977cc761 Remove unnecessary variables 2019-06-08 00:14: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 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
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
aycabta 486a2c26d6 Add Reline test for unknown macro 2019-06-02 08:50:01 +09:00
aycabta e360688c4d Add new test for Reline within pipe 2019-06-02 07:39:12 +09:00
aycabta de01c4ec00 Reset Config at Reline::Config::Test#teardown 2019-06-01 16:47:59 +09:00
aycabta 7df65ef676 Use inputrc data for keystroke setting 2019-06-01 09:06:27 +09:00
aycabta 3f13297923 Remove extra items because Reline::HISTORY is a sized queue 2019-05-29 10:04:58 +09:00
Takashi Kokubun 98ba116d40
Revert 3b7862c8e8 causing various CI hangs
and dependent commits c67934b1c3 and
f0d1dc5cee.

RubyCI and ci.rvm.jp are almost dead by timeout since this commit.

---

Revert "Skip a reline test hanging on Wercker since 3b7862c8e8"

This reverts commit f0d1dc5cee.

Revert "Remove extra items because Reline::HISTORY is a sized queue"

This reverts commit c67934b1c3.

Revert "Use existing instances for LineEditor and Config"

This reverts commit 3b7862c8e8.
2019-05-29 09:05:26 +09:00
aycabta c67934b1c3 Remove extra items because Reline::HISTORY is a sized queue 2019-05-29 05:58:33 +09:00
aycabta 3b7862c8e8 Use existing instances for LineEditor and Config 2019-05-29 05:53:44 +09:00
aycabta 57b4df07bc Use Reline.completer_quote_characters to complete 2019-05-28 08:38:55 +09:00
aycabta eb4e774711 Support Meta key in Reline 2019-05-24 23:38:40 +09:00
aycabta ca435ed04a Use Reline.test_mode in Reline's test too 2019-05-22 03:12:37 +09:00
aycabta 6d93baaedd Support DEL key 2019-05-21 17:46:41 +09:00
aycabta 80c968c571 Rename Reline's test file name because of typo 2019-05-14 17:06:38 +09:00
aycabta 1e65196b54 Check encoding when Readline completion 2019-05-14 14:53:34 +09:00
aycabta bb56b89900 Add ed_search_prev_history to Reline 2019-05-13 01:51:05 +09:00
aycabta 33bce2585f Use LineEditor#reset on test 2019-05-13 00:31:32 +09:00
aycabta fc57e10569 Revert "Add a test for em_capitol_case of Reline"
This reverts commit b1767e56b1.
2019-05-12 20:43:38 +09:00
aycabta b1767e56b1 Add a test for em_capitol_case of Reline 2019-05-12 17:25:28 +09:00
Nobuyoshi Nakada 71952440ad
Silence a (probable) debug print 2019-05-01 20:55:08 +09:00
aycabta 567cb1ae1d Use Encoding::UTF_8 if RELINE_TEST_ENCODING doesn't exist 2019-04-30 12:53:24 +09:00
aycabta 319eee0f4a Use Encoding::UTF_8 if Encoding.default_external is Encoding::IBM437 2019-04-30 12:33:24 +09:00
aycabta 17350c7e55 Add Reline as a fallback library for Readline
* lib/reine.rb, lib/reline/*: Reline is a readline stdlib compatible
  library.
* lib/readline.rb: Readline uses a fallback to Reline when ext/readline
  doesn't exist.
* tool/sync_default_gems.rb: add ruby/reline as a default gem.
* appveyor.yml: add "set RELINE_TEST_ENCODING=Windows-31J" for test suit
  of Reline, and add "--exclude readline" to "nmake test-all" on Visual
  Studio builds because of strange behavior.
* spec/ruby/library/readline/spec_helper.rb: skip Reline as with
  RbReadline.
2019-04-30 11:44:20 +09:00
Nobuyoshi Nakada f4f66bd11c
Revert "IRB is improved with Reline and RDoc, take 2"
Accidentally merged when 89271d4a37
"Adjusted indents".
2019-04-23 21:55:29 +09:00
aycabta f2cd4f4cd0
IRB is improved with Reline and RDoc, take 2 2019-04-23 20:08:02 +09:00
aycabta 51cec00953 Revert "IRB is improved with Reline and RDoc"
This reverts commit 7f273ac6d0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 09:13:49 +00:00
aycabta 9c51ef5bc4 Merge upstream of Reline
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 07:37:34 +00:00
aycabta 221e293733 Add test/reline/ again, I'm back
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 07:08:26 +00:00
aycabta 2dc51bf447 Remove test/reline temporary, I'll come back
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 03:51:26 +00:00
ko1 2a5ea43507 add ensure to restore $stdout correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-21 03:46:25 +00:00