aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/reline] fix Reline::Windows.getconsolemode buffercremno2021-02-221-1/+1
| | | | | | use double quotes to properly convert the \000 escape sequence. https://github.com/ruby/reline/commit/236dfe5683
* [ruby/reline] Use UTF-8 only for width calc, rest uses original encodingaycabta2021-02-211-2/+3
| | | | | | | | | | I confirmed that libvterm supports only which are UTF-8, US ASCII, UK, and DEC graphics by reading source code, so can't test this patch by yamatanoorogi gem through vterm gem for now. This fixes ruby/irb#190. https://github.com/ruby/reline/commit/44596c0cc7
* [ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof ↵Yoshinao Muramatu2021-02-212-2/+26
| | | | | | processing https://github.com/ruby/reline/commit/3535676689
* [ruby/reline] We still need support new and legacy behavior.Yoshinao Muramatu2021-02-211-7/+15
| | | | | | | | Revert "Support for change in Windows-specific behavior at eol" This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82. https://github.com/ruby/reline/commit/646587fc2c
* [ruby/reline] Avoid tripping over nil promptEamonn Webster2021-02-211-0/+1
| | | | https://github.com/ruby/reline/commit/d4d9d3e3d4
* [ruby/reline] Return 1 when char width not foundaycabta2021-02-211-0/+1
| | | | | | This fixes ruby/reline#261. https://github.com/ruby/reline/commit/3cf1213014
* MSys is a variant of CygwinNobuyoshi Nakada2021-02-201-1/+1
|
* [ruby/irb] Fix inverse separator conditionNobuyoshi Nakada2021-02-121-4/+2
| | | | https://github.com/ruby/irb/commit/33f933196f
* [ruby/irb] The command "irb_info" should show RUBY_PLATFORMaycabta2021-02-111-0/+1
| | | | https://github.com/ruby/irb/commit/39d1cd874f
* [ruby/irb] Suppress colorize on Windows testsaycabta2021-02-111-1/+1
| | | | https://github.com/ruby/irb/commit/5be9354cf9
* [ruby/irb] Suppress error when File::ALT_SEPARATOR is nilaycabta2021-02-111-1/+3
| | | | https://github.com/ruby/irb/commit/96accf3b95
* [ruby/benchmark] Adds `Tms#to_h`Keith Bennett2021-02-071-0/+14
| | | | [Feature #17601]
* [ruby/reline] Version 0.2.3aycabta2021-02-071-1/+1
| | | | https://github.com/ruby/reline/commit/b26c7d60c8
* [ruby/irb] Version 1.3.3aycabta2021-02-071-2/+2
| | | | https://github.com/ruby/irb/commit/4c87035b7c
* [ruby/reline] Terminate correctly in the middle of lines higher than the screenaycabta2021-02-071-4/+18
| | | | https://github.com/ruby/reline/commit/e1d9240ada
* [ruby/reline] Autowrap correctly when inserting chars in the middle of a lineaycabta2021-02-071-1/+1
| | | | https://github.com/ruby/reline/commit/ebaf37255f
* [ruby/reline] The vi_histedit supports multilineaycabta2021-02-071-2/+14
| | | | | | This closes ruby/reline#253. https://github.com/ruby/reline/commit/f131f86d71
* [ruby/reline] Move cursor just after the last line when finishedaycabta2021-02-071-0/+1
| | | | https://github.com/ruby/reline/commit/ba06e4c480
* [ruby/reline] Update cursor info by inserting newline even if not in pastingaycabta2021-02-071-1/+1
| | | | https://github.com/ruby/reline/commit/92d314f514
* [ruby/reline] Handle past logs correctly when the code is higher than the screenaycabta2021-02-071-2/+7
| | | | https://github.com/ruby/reline/commit/f197139b4a
* [ruby/reline] Show all lines higher than the screen when finishedaycabta2021-02-071-0/+13
| | | | | | | | On Unix-like OSes, logs prior to the screen are not editable. When the code is higher than the screen, the code is only shown on the screen until input is finished, but when it is finished, all lines are outputted. https://github.com/ruby/reline/commit/8cd9132a39
* [ruby/reline] Scroll down when ^C is pressedaycabta2021-02-071-0/+8
| | | | https://github.com/ruby/reline/commit/6877a7e3f5
* [ruby/reline] Remove an unused variableaycabta2021-02-071-1/+0
| | | | https://github.com/ruby/reline/commit/123ea51166
* [ruby/reline] Initialize uninitialized variables in testsaycabta2021-02-071-0/+2
| | | | https://github.com/ruby/reline/commit/25af4bb64b
* [ruby/reline] Cache pasting state in processing a keyaycabta2021-02-072-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because it's too slow. The rendering time in IRB has been reduced as follows: start = Time.now def each_top_level_statement initialize_input catch(:TERM_INPUT) do loop do begin prompt unless l = lex throw :TERM_INPUT if @line == '' else @line_no += l.count("\n") next if l == "\n" @line.concat l if @code_block_open or @ltype or @continue or @indent > 0 next end end if @line != "\n" @line.force_encoding(@io.encoding) yield @line, @exp_line_no end break if @io.eof? @line = '' @exp_line_no = @line_no @indent = 0 rescue TerminateLineInput initialize_input prompt end end end end puts "Duration: #{Time.now - start} seconds" 0.22sec -> 0.14sec https://github.com/ruby/reline/commit/b8b3dd52c0
* [ruby/irb] Enable to reassign a new block with "measure" commandaycabta2021-02-061-0/+8
| | | | https://github.com/ruby/irb/commit/b444573aa2
* [ruby/irb] Allow "measure" command to take blockaycabta2021-02-063-7/+15
| | | | https://github.com/ruby/irb/commit/20f1ca23e9
* [ruby/irb] Add info.rb to gemspecima1zumi2021-02-041-0/+1
| | | | https://github.com/ruby/irb/commit/adbba19adf
* [ruby/irb] follow up the actual line numberNobuhiro IMAI2021-02-031-1/+4
| | | | https://github.com/ruby/irb/commit/7aed8fe3b1
* Fix absolute path predicate on WindowsNobuyoshi Nakada2021-01-291-1/+24
| | | | | A path starts with '/' is not an absolute path on Windows, because of drive letter or UNC.
* [ruby/irb] use `RubyLex::TerminateLineInput` appropriately [Bug #17564]Nobuhiro IMAI2021-01-272-2/+2
| | | | | | | | * using the appropriciate exception instead of `break` so that the session can be continue after the `irb_source` and `irb_load` commands * suppress extra new line due to one more `#prompt` call https://github.com/ruby/irb/commit/bdefaa7cfd
* [ruby/irb] add `IRB::FileInputMethod.open` to ensure closing associated FileNobuhiro IMAI2021-01-272-20/+40
| | | | | | | * tweak some methods not to raise exception after `#close` * use it in `IRB::IrbLoader#{source_file,load_file} https://github.com/ruby/irb/commit/ec2947acbd
* [ruby/rdoc] Support iso-strict format in git-logNobuyoshi Nakada2021-01-251-3/+3
| | | | https://github.com/ruby/rdoc/commit/2a6c22da63
* [ruby/rdoc] Support other date formats in git-logNobuyoshi Nakada2021-01-251-3/+3
| | | | https://github.com/ruby/rdoc/commit/ad8cf37d72
* Clear each test own temporary directoriesNobuyoshi Nakada2021-01-251-3/+2
|
* Revert "Remove temporary directory properly"Nobuyoshi Nakada2021-01-241-3/+10
| | | | | This reverts commit 80bad36989bbc4ad6167fe9670327f95b78089ce, because a few CI machines fail continuously.
* Remove temporary directory properlyNobuyoshi Nakada2021-01-241-10/+3
| | | | | | | | | For each `make check`, rubygems test makes "tmp" directory and some "gem_generate_index..." directories remain there. * Do not create a (fixed name) directory in the current working directory * Should remove its own temporary directory
* [ruby/rdoc] Skip non-date logs by git-logNobuyoshi Nakada2021-01-241-14/+22
| | | | | | | | | | `RDoc::Parser::ChangeLog` mis-parses ChangeLog generated by git-log, because of too heuristic `Time.parse`. For instance, "commit 8187228de0142d3ac7950b7d977c2849e934c637" results in "8187-08-16", that is, day 228 in the year 8187. https://github.com/ruby/rdoc/commit/9711e6f6d9
* [ruby/rdoc] Sort by CommitDate if availableNobuyoshi Nakada2021-01-241-3/+8
| | | | https://github.com/ruby/rdoc/commit/455715e930
* [ruby/rdoc] Add links to the commitsNobuyoshi Nakada2021-01-241-21/+86
| | | | https://github.com/ruby/rdoc/commit/1821628076
* [ruby/rdoc] Shorten commit hashesNobuyoshi Nakada2021-01-241-1/+1
| | | | https://github.com/ruby/rdoc/commit/5d3e153963
* [ruby/rdoc] Tweak log entry markdownNobuyoshi Nakada2021-01-241-1/+19
| | | | | | | * add 3 levels to headings * prefix commit log to labels to make unique IDs https://github.com/ruby/rdoc/commit/5074c13209
* [ruby/rdoc] Make each commit entries h3Nobuyoshi Nakada2021-01-241-6/+6
| | | | https://github.com/ruby/rdoc/commit/11eefb2ae9
* [ruby/rdoc] Support ChangeLog generated by `git log`Nobuyoshi Nakada2021-01-241-0/+35
| | | | https://github.com/ruby/rdoc/commit/5e0a123ca1
* [ruby/rdoc] Fix failing test by adding gettext as a development dependencyDorian Marié2021-01-241-0/+2
| | | | | | | | | | | The failing test was: ======================================================================================== rdoc/test/rdoc/test_rdoc_i18n_locale.rb:35:in `rescue in test_load_existent_po' Omission: gettext gem is not found [test_load_existent_po(TestRDocI18nLocale)] ======================================================================================== https://github.com/ruby/rdoc/commit/e5f85839e1
* [ruby/irb] Indent correctly with method calling with receiveraycabta2021-01-241-2/+19
| | | | https://github.com/ruby/irb/commit/e7c68e74a0
* [ruby/irb] Indent correctly with keyword "for" and "in"aycabta2021-01-241-1/+33
| | | | https://github.com/ruby/irb/commit/47c83ea724
* [ruby/net-http] Replace "iff" with "if and only if"Gannon McGibbon2021-01-231-1/+1
| | | | | | | | | iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" instead should suffice. https://github.com/ruby/net-http/commit/ffb87cad32
* [rubygems/rubygems] Replace "iff" with "whether" and "if and only if"Gannon McGibbon2021-01-232-2/+2
| | | | | | | | | iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" or "whether" should suffice. https://github.com/rubygems/rubygems/commit/88318ebc6d
* [ruby/irb] Delete a doodle-level memo comment...aycabta2021-01-221-2/+0
| | | | https://github.com/ruby/irb/commit/fc3e1d9e0c