Skip to content

Backport lib/reline, ext/readline, and lib/irb for 3.0.1#4085

Merged
nurse merged 50 commits intoruby:ruby_3_0from
aycabta:reline-backport-for-3.0.1
Jan 19, 2021
Merged

Backport lib/reline, ext/readline, and lib/irb for 3.0.1#4085
nurse merged 50 commits intoruby:ruby_3_0from
aycabta:reline-backport-for-3.0.1

Conversation

@aycabta
Copy link
Member

@aycabta aycabta commented Jan 17, 2021

No description provided.

nobu and others added 30 commits January 18, 2021 02:31
This is to prevent a yellow-mixed output for ActiveSupport::TimeWithZone.

Follows up ruby/irb#159 and ruby#3967.

ruby/irb@a5804c3
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;
ruby@433a3be
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>

ruby/irb@8d13df22ee
Use the start token as the indentation criteria so that it works properly in
heredoc.

ref. ruby/reline#242

ruby/irb@9704808dfd
…e place

For example, the broken code "%www" will result in only one error token.

ruby/irb@9fa39a7cf3
* 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`

ruby/irb@9d112fab8e
…indent info

Co-authored-by: Juanito Fatas <me@juanitofatas.com>

ruby/reline@7c24276275
…oken prompt list

Co-authored-by: Juanito Fatas <me@juanitofatas.com>

ruby/reline@558f7be168
aycabta and others added 20 commits January 18, 2021 02:31
Random ordering test can introduce antoher candidate so it should be
`assert_include`.
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
```

ruby/irb@f8461691c7
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"`.

ruby/irb@4c74c7d84c
…ctly

The current line was being handled incorrectly when displaying the hit
history, so it has been fixed to be correct.

ruby/reline@a3df4343b3
Because of chdir, log files ware created in temporary directries on Windows.

ruby/reline@200b469a68
The behavior of automatically moving the cursor to the next line when
displaying a char at the eol on Windows suddenly disappeared.

ruby/reline@cad4de6ee8
* due to the difference of backtrace pointed out by @aycabta

ruby/irb@5e00a0ae61
@nurse nurse merged commit 5850976 into ruby:ruby_3_0 Jan 19, 2021
@aycabta aycabta deleted the reline-backport-for-3.0.1 branch February 6, 2021 21:08
@hsbt hsbt added the Backport label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants