aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* [ruby/irb] Rescue Errno::EINVAL on IRB ppTakashi Kokubun2021-01-191-5/+15
| | | | | | | | | | | | | | http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20210119T070008Z.log.html.gz is caused by: /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline/ansi.rb:157:in `winsize': Invalid argument - <STDIN> (Errno::EINVAL) from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline/ansi.rb:157:in `get_screen_size' from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/reline.rb:168:in `get_screen_size' from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/forwardable.rb:238:in `get_screen_size' from /export/home/chkbuild/chkbuild-gcc/tmp/build/20210119T150010Z/ruby/lib/irb/color_printer.rb:7:in `pp' from -e:1:in `<main>' https://github.com/ruby/irb/commit/1719514598
* [ruby/irb] Use a real screen size for pp by defaultTakashi Kokubun2021-01-181-1/+1
| | | | https://github.com/ruby/irb/commit/9b9300dec2
* Use real-case version number for the result of `gem list`Hiroshi SHIBATA2021-01-191-1/+1
|
* Added empty ruby2_keywords gem to suffice dependenciesNobuyoshi Nakada2021-01-191-0/+10
|
* Added ruby2_keywords for Ruby 2.5 and 2.6Hiroshi SHIBATA2021-01-181-0/+2
|
* [ruby/irb] Version 1.3.2aycabta2021-01-181-2/+2
| | | | https://github.com/ruby/irb/commit/a7699026cc
* [ruby/irb] handle repeated exception separatelyNobuhiro IMAI2021-01-181-0/+2
| | | | https://github.com/ruby/irb/commit/fcf6b34bc5
* [ruby/irb] handle `__ENCODING__` as a keyword as wellNobuhiro IMAI2021-01-181-1/+1
| | | | https://github.com/ruby/irb/commit/a6a33d908f
* [ruby/irb] [ruby/irb] [ruby/reline] Version 0.2.2aycabta2021-01-181-1/+1
| | | | | | | | https://github.com/ruby/reline/commit/dfb710946f https://github.com/ruby/irb/commit/1a1cdf9628 https://github.com/ruby/irb/commit/fe99faf8bd
* [ruby/reline] Reline::Windows.erase_after_cursor erases attributes tooaycabta2021-01-181-0/+1
| | | | https://github.com/ruby/reline/commit/68b961dfc7
* [ruby/reline] Support for change in Windows-specific behavior at eolaycabta2021-01-181-15/+7
| | | | | | | The behavior of automatically moving the cursor to the next line when displaying a char at the eol on Windows suddenly disappeared. https://github.com/ruby/reline/commit/cad4de6ee8
* [ruby/reline] Initialize a variable just in caseaycabta2021-01-181-0/+1
| | | | https://github.com/ruby/reline/commit/29b10f6e98
* [ruby/fileutils] Removed code for dead versionsNobuyoshi Nakada2021-01-171-13/+3
| | | | https://github.com/ruby/fileutils/commit/1f707d8cc6
* [ruby/fileutils] Drop support for dead old versionsNobuyoshi Nakada2021-01-171-1/+1
| | | | https://github.com/ruby/fileutils/commit/4526148c67
* [ruby/time] Use Time#strftime to formatNobuyoshi Nakada2021-01-151-26/+2
| | | | https://github.com/ruby/time/commit/6b8cc4799e
* [ruby/time] No document for private methodsNobuyoshi Nakada2021-01-151-0/+2
| | | | https://github.com/ruby/time/commit/44a55daa70
* mkmf.rb: remove exts.mk at distcleanNobuyoshi Nakada2021-01-141-1/+1
|
* [ruby/ostruct] Bump versionMarc-Andre Lafortune2021-01-131-1/+1
|
* Fix method protection for modules in the ancestry chain.Marc-Andre Lafortune2021-01-121-1/+9
| | | | [Fixes ruby/ostruct#23]
* [ruby/reline] Version 0.2.1aycabta2021-01-131-1/+1
| | | | https://github.com/ruby/reline/commit/a3b3c6ee60
* [ruby/reline] Move the cursor correctly when deleting at eolaycabta2021-01-131-0/+3
| | | | | | This fixes ruby/reline#246. https://github.com/ruby/reline/commit/07a73ba601
* [ruby/reline] Handle ed_search_{prev,next}_history in multiline correctlyaycabta2021-01-131-2/+2
| | | | | | | The current line was being handled incorrectly when displaying the hit history, so it has been fixed to be correct. https://github.com/ruby/reline/commit/a3df4343b3
* [ruby/irb] Version 1.3.1aycabta2021-01-131-2/+2
| | | | https://github.com/ruby/irb/commit/c230d08911
* [ruby/matrix] Fix 0-th power [Bug #17521] (#4047)Marc-André Lafortune2021-01-101-1/+1
|
* [ruby/irb] Make IRB::ColorPrinter.pp compatible with PP.ppTakashi Kokubun2021-01-072-2/+2
| | | | | | | | | The incompatible interface is not helpful, again if you want to use it as a standalone library, falling it back to PP. Original PP.pp also ends with `out << "\n"`. https://github.com/ruby/irb/commit/4c74c7d84c
* [ruby/irb] Add missing requireTakashi Kokubun2021-01-071-0/+1
| | | | | | | | | | | | | | | This is useful if you want to use IRB::ColorPrinter as a library like: ``` begin require 'irb/color_printer' IRB::ColorPrinter.pp(obj) rescue LoadError pp(obj) end ``` https://github.com/ruby/irb/commit/f8461691c7
* [ruby/irb] Fix comment, irb gem supports 2.5.0 or olderaycabta2021-01-081-1/+1
| | | | https://github.com/ruby/irb/commit/36118015ba
* [ruby/reline] Add acknowledgments and license for rb-readlineaycabta2021-01-081-1/+1
| | | | https://github.com/ruby/reline/commit/19df59b916
* [ruby/reline] Suppress auto indent for adding newlines in pastingaycabta2021-01-081-1/+1
| | | | | | Co-authored-by: Juanito Fatas <me@juanitofatas.com> https://github.com/ruby/reline/commit/074bb017a7
* [ruby/reline] Suppress crashing when dynamic_prompt_proc returns a broken ↵aycabta2021-01-081-0/+7
| | | | | | | | prompt list Co-authored-by: Juanito Fatas <me@juanitofatas.com> https://github.com/ruby/reline/commit/558f7be168
* [ruby/reline] Suppress crashing when auto_indent_proc returns broken indent infoaycabta2021-01-081-0/+1
| | | | | | Co-authored-by: Juanito Fatas <me@juanitofatas.com> https://github.com/ruby/reline/commit/7c24276275
* [ruby/reline] Correct var names in Reline were different from vi-*-mode-stringaycabta2021-01-082-22/+22
| | | | https://github.com/ruby/reline/commit/8255fc93b9
* [ruby/reline] Update cursor correctly when just cursor movingaycabta2021-01-081-1/+3
| | | | | | This fixes ruby/reline#236 and ruby/reline#239. https://github.com/ruby/reline/commit/3e3c89d00b
* irb: Drop lines from backtrace for tests in Ruby repositoryaycabta2021-01-081-0/+1
|
* [ruby/irb] Fix BACK_TRACE_LIMIT logicaycabta2021-01-081-2/+2
| | | | https://github.com/ruby/irb/commit/30dc5d43fe
* [ruby/irb] Use Exception#full_message to show backtrace in the correct orderaycabta2021-01-081-40/+34
| | | | | | [Bug #17466] https://github.com/ruby/irb/commit/1c76845cca
* [ruby/irb] refactoring an error handling in `IRB::Inspector`Nobuhiro IMAI2021-01-081-9/+7
| | | | | | | | * moved rescue clause to `#inspect_value` to catch all failures in inspectors * test with all (currently five kind of) inspect modes - tweaked the input due to only `Marshal` can inspect(dump) a `BasicObject` https://github.com/ruby/irb/commit/9d112fab8e
* [ruby/irb] do not escape a predicate method for doc namespaceNobuhiro IMAI2021-01-081-11/+11
| | | | | | * Fixes #88 https://github.com/ruby/irb/commit/d431a30af4
* [ruby/irb] fix typo in `IRB::Irb#convert_invalid_byte_sequence`Nobuhiro IMAI2021-01-081-1/+1
| | | | https://github.com/ruby/irb/commit/d09d3c3d68
* We don't need "require 'uri'" after "require 'net/http'".Igor Zubkov2021-01-071-1/+0
|
* [ruby/ostruct] Bump versionMarc-Andre Lafortune2021-01-051-1/+1
|
* [ruby/ostruct] Allow ostruct to return a value on super (#4028)Adam Hess2021-01-051-0/+1
| | | | | This fixes cases where you can super in something that inherits from OpenStruct Co-authored-by: John Hawthorn <john@hawthorn.email>
* [ruby/irb] Ensure to restore $VERBOSENobuyoshi Nakada2021-01-052-1/+3
| | | | https://github.com/ruby/irb/commit/cef474a76a
* [ruby/irb] Use error tokens if there are no correct tokens in the same placeaycabta2021-01-051-6/+23
| | | | | | For example, the broken code "%www" will result in only one error token. https://github.com/ruby/irb/commit/9fa39a7cf3
* [ruby/irb] Use Ripper::Lexer#scan to take broken tokensaycabta2021-01-051-1/+11
| | | | | | ref. https://github.com/ruby/reline/pull/242 https://github.com/ruby/irb/commit/54f90cb6c9
* [ruby/irb] Heredoc may contain multiple newlines in a single tokenaycabta2021-01-051-2/+21
| | | | | | | | | Use the start token as the indentation criteria so that it works properly in heredoc. ref. https://github.com/ruby/reline/pull/242 https://github.com/ruby/irb/commit/9704808dfd
* [ruby/irb] Handle indentations related to keyword "do" correctlyaycabta2021-01-051-17/+47
| | | | | | This fixes ruby/irb#158. https://github.com/ruby/irb/commit/964643400b
* [ruby/irb] Escape invalid byte sequence in Exceptionaycabta2021-01-051-1/+25
| | | | | | This fixes ruby/irb#141. https://github.com/ruby/irb/commit/0815317d42
* [ruby/irb] Newline in oneliner def doesn't reset indentaycabta2021-01-051-6/+8
| | | | | | This closes ruby/irb#132. https://github.com/ruby/irb/commit/43456dcf5e
* [ruby/irb] Stringify when a non-object is passed to PP#textaycabta2021-01-041-1/+6
| | | | | | | | | | | | | | If a nested object is passed to #pp, it may be sometimes passed to the #text method as an object without being stringified. This is fixed on the Ruby main repository; https://github.com/ruby/ruby/commit/433a3be86a811de0b4adbb92e054ee3a6fc6b4d8 but it was a bug of Ripper so still needs this workaround for using irb as a gem on Ruby 3.0.0 or earlier. Co-authored-by: k0kubun <takashikkbn@gmail.com> https://github.com/ruby/irb/commit/8d13df22ee