summaryrefslogtreecommitdiff
path: root/lib/irb/lc/error.rb
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2024-03-17 00:19:59 +0900
committergit <svn-admin@ruby-lang.org>2024-03-16 15:20:03 +0000
commitbda5b099375d91274a5314aad2608f8e5b37e891 (patch)
tree5bcb4eec33c813bf311a72c5c8fc9b20c4c335d1 /lib/irb/lc/error.rb
parentaae9f5628c5af6a5eb8027e9f21b44fa80162d35 (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/error.rb')
-rw-r--r--lib/irb/lc/error.rb5
1 files changed, 0 insertions, 5 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