mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00

* [ruby/irb] Suppress error when File::ALT_SEPARATOR is nil96accf3b95
* [ruby/irb] Suppress colorize on Windows tests5be9354cf9
* [ruby/irb] The command "irb_info" should show RUBY_PLATFORM39d1cd874f
* [ruby/irb] Fix inverse separator condition33f933196f
* [ruby/reline] Return 1 when char width not found This fixes ruby/reline#261.3cf1213014
* [ruby/reline] Avoid tripping over nil promptd4d9d3e3d4
* [ruby/reline] Move script files for yamatanooroti tests03031b885d
* [ruby/reline] Add a test for suppressing crash when dynamic prompt returns empty ref. https://github.com/ruby/reline/pull/262b98bc3c329
* [ruby/reline] We still need support new and legacy behavior. Revert "Support for change in Windows-specific behavior at eol" This reverts commit cad4de6ee841b43f3f0e441626f9415c3eda0f82.646587fc2c
* [ruby/reline] check ENABLE_VIRTUAL_TERMINAL_PROCESSING flag and switch eof processing3535676689
* [ruby/reline] Use UTF-8 only for width calc, rest uses original encoding 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.44596c0cc7
* [ruby/reline] fix Reline::Windows.getconsolemode buffer use double quotes to properly convert the \000 escape sequence.236dfe5683
* [ruby/irb] Version 1.3.4ab9852ccc5
* [ruby/reline] Version 0.2.4462f971bd3
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Co-authored-by: Eamonn Webster <eamonn.webster@gmail.com> Co-authored-by: Yoshinao Muramatu <ysno@ac.auone-net.jp> Co-authored-by: cremno <cremno@mail.ru>
25 lines
614 B
Ruby
25 lines
614 B
Ruby
# frozen_string_literal: false
|
|
|
|
require_relative "nop"
|
|
|
|
# :stopdoc:
|
|
module IRB
|
|
module ExtendCommand
|
|
class Info < Nop
|
|
def execute
|
|
Class.new {
|
|
def inspect
|
|
str = "Ruby version: #{RUBY_VERSION}\n"
|
|
str += "IRB version: #{IRB.version}\n"
|
|
str += "InputMethod: #{IRB.CurrentContext.io.inspect}\n"
|
|
str += ".irbrc path: #{IRB.rc_file}\n" if File.exist?(IRB.rc_file)
|
|
str += "RUBY_PLATFORM: #{RUBY_PLATFORM}\n"
|
|
str
|
|
end
|
|
alias_method :to_s, :inspect
|
|
}.new
|
|
end
|
|
end
|
|
end
|
|
end
|
|
# :startdoc:
|