ruby/lib/irb
Stan Lo 2f0f95235a [ruby/irb] Fix SourceFinder's constant evaluation issue
(https://github.com/ruby/irb/pull/869)

Currently, if the signature's constant part is not defined, a NameError
would be raised.

```
irb(main):001> show_source Foo
(eval):1:in `<top (required)>': uninitialized constant Foo (NameError)

Foo
^^^
        from (irb):1:in `<main>'
```

This commit fixes the issue and simplifies the `edit` command's implementation.

https://github.com/ruby/irb/commit/8c16e029d1
2024-02-13 13:36:32 +00:00
..
cmd [ruby/irb] Fix SourceFinder's constant evaluation issue 2024-02-13 13:36:32 +00:00
debug [ruby/irb] Avoid locking the debug UI to a single thread 2023-10-11 14:16:39 +00:00
ext [ruby/irb] Refactor eval_path and `SourceFinder::Source` 2024-02-13 13:33:36 +00:00
lc [ruby/irb] Support disabling pager 2023-11-26 11:07:50 +00:00
.document [ruby/irb] Exclude useless files from RDoc 2020-02-01 17:03:59 +09:00
color.rb [ruby/irb] Add black and white color to IRB::Color 2023-08-11 16:03:11 +00:00
color_printer.rb [ruby/irb] Replace METHOD_IS_A with === 2023-03-13 18:11:58 +00:00
completion.rb [ruby/irb] Avoid completing empty input 2024-01-03 13:47:51 +00:00
context.rb [ruby/irb] Refactor eval_path and `SourceFinder::Source` 2024-02-13 13:33:36 +00:00
debug.rb [ruby/irb] Hide debugger hint after the input is submitted 2023-11-27 10:34:40 +00:00
easter-egg.rb [ruby/irb] Fix dancing-ruby Ctrl+C stop 2023-11-08 09:17:23 +09:00
extend-command.rb [ruby/irb] Polish the exit! command and its tests 2024-02-11 05:17:40 +00:00
frame.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
help.rb [ruby/irb] [DOC] RDoc for module IRB 2023-12-12 10:34:38 +00:00
history.rb [ruby/irb] Require pathname (https://github.com/ruby/irb/pull/860) 2024-02-02 22:25:33 +00:00
init.rb [ruby/irb] Polish tracer integration and tests 2024-02-07 14:59:10 +00:00
input-method.rb [ruby/irb] Fix display_document params in noautocomplete mode 2024-01-01 13:57:15 +00:00
inspector.rb [ruby/irb] Add rubocop with a few basic styling rules 2024-02-01 17:46:02 +00:00
irb.gemspec [ruby/irb] Require Reline v0.4.2+ 2024-01-06 12:16:12 +00:00
locale.rb [ruby/irb] Add rubocop with a few basic styling rules 2024-02-01 17:46:02 +00:00
nesting_parser.rb [ruby/irb] Fix undef and alias indent 2024-01-30 12:55:47 +00:00
notifier.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
output-method.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
pager.rb [ruby/irb] Disable pager when TERM is not set too 2023-12-05 16:32:13 +00:00
ruby-lex.rb [ruby/irb] Fix undef and alias indent 2024-01-30 12:55:47 +00:00
ruby_logo.aa [ruby/irb] Easter egg for autocomplete mode 2023-10-28 14:47:46 +00:00
source_finder.rb [ruby/irb] Fix SourceFinder's constant evaluation issue 2024-02-13 13:36:32 +00:00
statement.rb [ruby/irb] Improve help/show_cmds message during debugger 2023-08-29 18:36:16 +00:00
version.rb [ruby/irb] Bump version to v1.11.2 2024-02-07 16:57:33 +00:00
workspace.rb [ruby/irb] Fix exit! command warning and method behavior 2024-02-12 11:28:54 +00:00
ws-for-case-2.rb [ruby/irb] Formatting to header styles 2023-01-11 22:29:10 +00:00
xmp.rb [ruby/irb] [DOC] RDoc for module IRB 2023-12-12 10:34:38 +00:00