diff options
author | tomoya ishida <[email protected]> | 2024-03-17 00:19:59 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-03-16 15:20:03 +0000 |
commit | bda5b099375d91274a5314aad2608f8e5b37e891 (patch) | |
tree | 5bcb4eec33c813bf311a72c5c8fc9b20c4c335d1 /lib/irb/lc | |
parent | aae9f5628c5af6a5eb8027e9f21b44fa80162d35 (diff) |
[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
Diffstat (limited to 'lib/irb/lc')
-rw-r--r-- | lib/irb/lc/error.rb | 5 | ||||
-rw-r--r-- | lib/irb/lc/ja/error.rb | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/lib/irb/lc/error.rb b/lib/irb/lc/error.rb index 9041ec4d6c..ee0f047822 100644 --- a/lib/irb/lc/error.rb +++ b/lib/irb/lc/error.rb @@ -47,11 +47,6 @@ module IRB super("Undefined prompt mode(#{val}).") end end - class IllegalRCGenerator < StandardError - def initialize - super("Define illegal RC_NAME_GENERATOR.") - end - end # :startdoc: end diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb index f7f2b13c45..9e2e5b8870 100644 --- a/lib/irb/lc/ja/error.rb +++ b/lib/irb/lc/ja/error.rb @@ -47,11 +47,6 @@ module IRB super("プロンプトモード(#{val})は定義されていません.") end end - class IllegalRCGenerator < StandardError - def initialize - super("RC_NAME_GENERATORが正しく定義されていません.") - end - end # :startdoc: end |