Project

General

Profile

« Previous | Next » 

Revision bda5b099

Added by tompng (tomoya ishida) over 1 year ago

[ruby/irb] Fix irb_history saved to current directory
(https://github.com/ruby/irb/pull/901)

  • Always save irb_history in HOME or XDG_CONFIG_HOME

Also split irbrc search logic from irb_history search logic as a refactor

  • Remove IRB.conf[:RC_NAME_GENERATOR] because it's not configurable

This conf is used to specify which irbrc to load. Need to configure before irbrc is loaded, so it's actually not configurable.
This conf is also used for history file search, but it is configurable by conf[:HISTORY_FILE].

  • remove rc_file_test because it is tested with rc_files, remove useless test setup

  • Make internal irbrc searching method private

https://github.com/ruby/irb/commit/11d03a6ff7