summaryrefslogtreecommitdiff
path: root/lib/irb
AgeCommit message (Collapse)Author
2024-12-19[ruby/irb] Bump version to v1.14.3Stan Lo
(https://github.com/ruby/irb/pull/1050) https://github.com/ruby/irb/commit/49050f9bf3 Notes: Merged: https://github.com/ruby/ruby/pull/12394
2024-12-16Exclude irb from documentation generationStan Lo
- IRB has its own documentation in the project readme and https://ruby.github.io/irb/ already. - As a tool, its internal implementation details are not relevant to the user. - Excluding it from the documentation generation reduces the size of the generated documentation and makes search results more relevant. I also checked the there are no references to IRB so it should not break any links. Notes: Merged: https://github.com/ruby/ruby/pull/12325
2024-12-13[ruby/irb] Avoid generating documentation pages for internalStan Lo
components (https://github.com/ruby/irb/pull/1047) https://github.com/ruby/irb/commit/f57025a35e
2024-12-12[ruby/irb] Load history when starting a direct debug sessionJames Reid-Smith
(https://github.com/ruby/irb/pull/1046) * Load history when starting a direct debug session When starting a debug session directly with RUBY_DEBUG_IRB_CONSOLE=1 and `require 'debug'; debugger`, IRB's history wasn't loaded. This commit ensures history is loaded in this case by calling `load_history` when configuring IRB for the debugger. Fixes ruby/irb#975 * Update test/irb/test_history.rb * Update lib/irb/debug.rb --------- https://github.com/ruby/irb/commit/7f851b5353 Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-12-12[ruby/irb] Bump version to v1.14.2Stan Lo
(https://github.com/ruby/irb/pull/1045) https://github.com/ruby/irb/commit/dd31884657
2024-12-11[ruby/irb] Page the output in irb:rdbg sessions tooStan Lo
(https://github.com/ruby/irb/pull/1043) IRB started to page its evaluation output and it became a useful feature for users. However, in `irb:rdbg` sessions, the output is not paged so the sudden change in behavior is surprising and inconvenient. This commit makes `irb:rdbg` sessions page the output of the debugger too. https://github.com/ruby/irb/commit/8241ec9a0c
2024-12-03[ruby/irb] Don't show 'Maybe IRB bug!' in show_source and ls commandtomoya ishida
(https://github.com/ruby/irb/pull/1039) https://github.com/ruby/irb/commit/9eb14a3a0b
2024-11-30[ruby/irb] Prevent cursor flickeringMari Imaizumi
(https://github.com/ruby/irb/pull/1041) https://github.com/ruby/irb/commit/0506ed0e11
2024-11-26[ruby/irb] Fix indentation of xstring literaltomoya ishida
(https://github.com/ruby/irb/pull/1038) Fixes indent calculation of this input ``` if false p `ls` end ``` https://github.com/ruby/irb/commit/4217a46f5d
2024-11-20[ruby/irb] Store method objects in constantsStan Lo
(https://github.com/ruby/irb/pull/1033) It probably won't speed up things significantly, but these are hot paths and we can save a few method calls per completion/input call. https://github.com/ruby/irb/commit/f1e25ec7ae
2024-11-20[ruby/irb] Move main object's safe call logic to ContextStan Lo
(https://github.com/ruby/irb/pull/1034) https://github.com/ruby/irb/commit/9750fa23cc
2024-11-19[ruby/irb] Don't use delegator to install helper methods to maintomoya ishida
object (https://github.com/ruby/irb/pull/1031) IRB used delegator to install command as a method of frozen main object. Command is not a method now. We can drop it. https://github.com/ruby/irb/commit/2f1c593801
2024-11-07[ruby/irb] Correct ja/help-message for --context-mode and --promptKouhei Yanagita
(https://github.com/ruby/irb/pull/1029) https://github.com/ruby/irb/commit/b21432daf7
2024-11-05[ruby/irb] windows does not support Process.kill("TERM", pid)YO4
(https://github.com/ruby/irb/pull/1026) https://github.com/ruby/irb/commit/7bbb885163
2024-10-18[ruby/irb] Always use alternate sceen on alt-dtomoya ishida
(https://github.com/ruby/irb/pull/988) https://github.com/ruby/irb/commit/db0a923d62
2024-10-13[ruby/irb] Remove bignum check from save_historytomoya ishida
(https://github.com/ruby/irb/pull/1018) IRB need to accept bignum history size, but we don't want explicit bignum checks because threshold of bignum and fixnum depends on platform. https://github.com/ruby/irb/commit/5151467e6a
2024-10-11[ruby/irb] History refactors (https://github.com/ruby/irb/pull/1013)Gert Goet
* Extract logic save_history in separate helper * Extract logic history_file in helper * Allow for readonly history https://github.com/ruby/irb/commit/52307f9026
2024-10-08[ruby/irb] Change debug test workaround to use ENVtomoya ishida
RUBY_DEBUG_TEST_UI (https://github.com/ruby/irb/pull/1014) https://github.com/ruby/irb/commit/9933584754
2024-10-06[ruby/irb] Change default completor from regexp to auto, trytomoya ishida
TypeCompletor and fallback to RegexpCompletor. (https://github.com/ruby/irb/pull/1010) https://github.com/ruby/irb/commit/bb6a99d815
2024-10-02[ruby/irb] Use correct binding in debug modetomoya ishida
(https://github.com/ruby/irb/pull/1007) In debug command, IRB's context was using wrong binding. Some code colorization, command detection failed because binding.local_variable returned wrong value. https://github.com/ruby/irb/commit/68f718de21
2024-09-26[ruby/irb] Bump version to v1.14.1Stan Lo
(https://github.com/ruby/irb/pull/1009) https://github.com/ruby/irb/commit/04cd2317ef
2024-09-20[ruby/irb] Fix debug command in nomultiline modetomoya ishida
(https://github.com/ruby/irb/pull/1006) * Fix debug command in nomultiline mode * context.colorize_code -> context.colorize_input https://github.com/ruby/irb/commit/71f4d6bfb5
2024-09-16[ruby/irb] Use InstructionSequence#script_lines to get method sourcetomoya ishida
(https://github.com/ruby/irb/pull/1005) It works with both prism and parse.y https://github.com/ruby/irb/commit/bcfaa72d5a
2024-09-12[ruby/irb] Remove KEYWORD_ALIASES which handled special alias nametomoya ishida
of irb_break irb_catch and irb_next command (https://github.com/ruby/irb/pull/1004) * Remove KEYWORD_ALIASES which handled special alias name of irb_break irb_catch and irb_next command * Remove unused instance variable user_aliases Co-authored-by: Stan Lo <stan001212@gmail.com> --------- https://github.com/ruby/irb/commit/f256d7899f Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-09-03[ruby/irb] Fix easter_egg run without RDoc, fix input-method testtomoya ishida
run without RDoc (https://github.com/ruby/irb/pull/998) * EasterEgg no longer depend on RDoc * Run most of the input-method tests even if RDoc is not avialable https://github.com/ruby/irb/commit/30fa1595d9
2024-08-28[ruby/irb] Colorize command inputtomoya ishida
(https://github.com/ruby/irb/pull/983) https://github.com/ruby/irb/commit/0e64136e76
2024-08-27[ruby/irb] Move parse_command method to ContextStan Lo
(https://github.com/ruby/irb/pull/993) Since Context dictates whether a line is a command or an expression, moving the parse_command method to Context makes the relationship more explicit. https://github.com/ruby/irb/commit/9a4487af61
2024-08-14[ruby/irb] Fix kill pager pid throwing Errno::ESRCH when pagertomoya ishida
process already terminated (https://github.com/ruby/irb/pull/989) https://github.com/ruby/irb/commit/949f032e9b
2024-08-14[ruby/irb] Improve easter_egg logo resolutiontomoya ishida
(https://github.com/ruby/irb/pull/987) https://github.com/ruby/irb/commit/ab394db93f
2024-07-16[ruby/irb] Group class methods under `class << self`Stan Lo
(https://github.com/ruby/irb/pull/981) https://github.com/ruby/irb/commit/cdaa356df2
2024-07-06[ruby/irb] Bump version to v1.14.0Stan Lo
(https://github.com/ruby/irb/pull/980) https://github.com/ruby/irb/commit/6a9e129714
2024-07-05[ruby/irb] Return only commands when completing help command'sStan Lo
argument (https://github.com/ruby/irb/pull/973) The command only takes command names as arguments, so we should only return command names as candidates. This will help users find a command faster as completion will be another useful hint too. https://github.com/ruby/irb/commit/7b6557cc24
2024-07-03[ruby/irb] Introduce cd commandStan Lo
(https://github.com/ruby/irb/pull/971) It's essentially a combination of pushws and popws commands that are easier to use. Help message: ``` Usage: cd ([target]|..) IRB uses a stack of workspaces to keep track of context(s), with `pushws` and `popws` commands to manipulate the stack. The `cd` command is an attempt to simplify the operation and will be subject to change. When given: - an object, cd will use that object as the new context by pushing it onto the workspace stack. - "..", cd will leave the current context by popping the top workspace off the stack. - no arguments, cd will move to the top workspace on the stack by popping off all workspaces. Examples: cd Foo cd Foo.new cd @ivar cd .. cd ``` https://github.com/ruby/irb/commit/4a0e0e89b7
2024-06-18[ruby/irb] Improve how command calls' return value is handledStan Lo
(https://github.com/ruby/irb/pull/972) In #934, we changed command calls to return nil only. This PR improves the behaviour even further by: - Not echoing the `nil` returned by command calls - Not overriding previous return value stored in `_` with the `nil` from commands https://github.com/ruby/irb/commit/c844176842
2024-06-15[ruby/irb] Bump version to v1.13.2Stan Lo
(https://github.com/ruby/irb/pull/970) https://github.com/ruby/irb/commit/35de7dacd4
2024-06-05[ruby/irb] Add accidentally dropped disable_irb command backStan Lo
(https://github.com/ruby/irb/pull/964) * Add accidentally dropped disable_irb command back * Sort command files require by name https://github.com/ruby/irb/commit/1d627cebca
2024-06-04[ruby/irb] Remove useless Reline::Key.new and update wrong commenttomoya ishida
for alt+d (https://github.com/ruby/irb/pull/963) https://github.com/ruby/irb/commit/a572180b3a
2024-05-17[ruby/irb] Reorder ruby lex clauses for unrecoverable firstKevin Newton
(https://github.com/ruby/irb/pull/956) When a syntax error includes multiple error messages, we want to check for unrecoverable messages first so that we do not accidentally match a recoverable error later in the message. https://github.com/ruby/irb/commit/2f42b2360d
2024-05-10[ruby/irb] Add a new initialization step to validate IRB.conf'sStan Lo
values (https://github.com/ruby/irb/pull/953) Currently, users can only find out that they have set a wrong value for IRB configs when the value is used, with opaque error messages like "comparison of Integer with true failed (TypeError)". This commit adds a new initialization step to validate the values of some IRB configs, so that users can find out about the wrong values during the initialization of IRB. https://github.com/ruby/irb/commit/af8ef2948b
2024-05-10[ruby/irb] Simplify regexp to account for prism error messagesKevin Newton
(https://github.com/ruby/irb/pull/954) https://github.com/ruby/irb/commit/e0c29be074 Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-05-05[ruby/irb] Bump version to v1.13.1Stan Lo
(https://github.com/ruby/irb/pull/951) https://github.com/ruby/irb/commit/66318d0a34
2024-05-05[ruby/irb] Clarify that the context is IRB contextStan Lo
(https://github.com/ruby/irb/pull/950) https://github.com/ruby/irb/commit/8cde57f55a
2024-05-04[ruby/irb] Change debug test workaround only enabled when output istomoya ishida
tty (https://github.com/ruby/irb/pull/949) https://github.com/ruby/irb/commit/3f231b8622
2024-05-04[ruby/irb] Improve help message for no meta commandsStan Lo
(https://github.com/ruby/irb/pull/948) * Remove unnecessary code from command tests * Improve help message for no meta commands 1. Add placeholder values for both command category and description 2. Update help command's output to give different types of categories more explicit ordering https://github.com/ruby/irb/commit/b1ef58aeff
2024-05-04[ruby/irb] Use flag instead of caller for `debug`'s binding.irbStan Lo
check (https://github.com/ruby/irb/pull/947) https://github.com/ruby/irb/commit/4a4d7a4279
2024-05-03[ruby/irb] Avoid raising errors while running help for customKenichi Kamiya
commands (https://github.com/ruby/irb/pull/944) * Avoid raising errors while running help for custom commands Raising an error from the help command is not a pleasure for the end user, even if the command does not define any attributes * Update test/irb/command/test_custom_command.rb --------- https://github.com/ruby/irb/commit/c8bba9f8dc Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-05-02Sync IRB 241e061Stan Lo
2024-05-02[ruby/irb] Add workaround for ruby/debug/test/console/irb_testtomoya ishida
failing with StdioInputMethod (https://github.com/ruby/irb/pull/943) https://github.com/ruby/irb/commit/acf3c1816e
2024-05-01[ruby/irb] Bump version to v1.13.0Stan Lo
(https://github.com/ruby/irb/pull/941) * Bump version to v1.13.0 * Add Documentation category to changelog https://github.com/ruby/irb/commit/b9b1f35c99
2024-05-01[ruby/irb] Let IRB::Color.colorable? always return true|falsetomoya ishida
(https://github.com/ruby/irb/pull/940) https://github.com/ruby/irb/commit/0bbe435ffe