diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-02 17:52:33 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-02 17:52:33 +0000 |
commit | e859e668d2eb59f34ad18edb7458ce90076617e9 (patch) | |
tree | 0c2866cf07670dbcea797ee96a620e5d761af417 /lib/irb | |
parent | c8c66bcf92b94951fd2035761f91e6cde3145d7f (diff) | |
download | ruby-e859e668d2eb59f34ad18edb7458ce90076617e9.tar.gz |
lib/*: Prefer require_relative over require.
[#15206] [Fix GH-1976]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/cmd/load.rb | 2 | ||||
-rw-r--r-- | lib/irb/context.rb | 4 | ||||
-rw-r--r-- | lib/irb/ext/use-loader.rb | 4 | ||||
-rw-r--r-- | lib/irb/init.rb | 2 | ||||
-rw-r--r-- | lib/irb/input-method.rb | 2 | ||||
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 | ||||
-rw-r--r-- | lib/irb/slex.rb | 2 | ||||
-rw-r--r-- | lib/irb/xmp.rb | 2 |
8 files changed, 10 insertions, 10 deletions
diff --git a/lib/irb/cmd/load.rb b/lib/irb/cmd/load.rb index f800b741eb..1bd3d3275a 100644 --- a/lib/irb/cmd/load.rb +++ b/lib/irb/cmd/load.rb @@ -11,7 +11,7 @@ # require "irb/cmd/nop.rb" -require "irb/ext/loader" +require_relative "../ext/loader" # :stopdoc: module IRB diff --git a/lib/irb/context.rb b/lib/irb/context.rb index b82aaea6a6..606d744e1e 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -9,8 +9,8 @@ # # # -require "irb/workspace" -require "irb/inspector" +require_relative "workspace" +require_relative "inspector" require "irb/input-method" require "irb/output-method" diff --git a/lib/irb/ext/use-loader.rb b/lib/irb/ext/use-loader.rb index 571dd25d17..cc71706671 100644 --- a/lib/irb/ext/use-loader.rb +++ b/lib/irb/ext/use-loader.rb @@ -10,8 +10,8 @@ # # -require "irb/cmd/load" -require "irb/ext/loader" +require_relative "../cmd/load" +require_relative "loader" class Object alias __original__load__IRB_use_loader__ load diff --git a/lib/irb/init.rb b/lib/irb/init.rb index a971b75ac3..2066d8cb64 100644 --- a/lib/irb/init.rb +++ b/lib/irb/init.rb @@ -197,7 +197,7 @@ module IRB # :nodoc: print IRB.version, "\n" exit 0 when "-h", "--help" - require "irb/help" + require_relative "help" IRB.print_usage exit 0 when "--" diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index f7b1aac3bf..7db602947b 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -9,7 +9,7 @@ # # # -require 'irb/src_encoding' +require_relative 'src_encoding' require 'irb/magic-file' module IRB diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index fb7e08099f..659b15f402 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -11,7 +11,7 @@ # require "e2mmap" -require "irb/slex" +require_relative "slex" require "irb/ruby-token" # :stopdoc: diff --git a/lib/irb/slex.rb b/lib/irb/slex.rb index 039b214a8d..e584b312bd 100644 --- a/lib/irb/slex.rb +++ b/lib/irb/slex.rb @@ -11,7 +11,7 @@ # require "e2mmap" -require "irb/notifier" +require_relative "notifier" # :stopdoc: module IRB diff --git a/lib/irb/xmp.rb b/lib/irb/xmp.rb index 3234cff7f3..60cf3b4e4d 100644 --- a/lib/irb/xmp.rb +++ b/lib/irb/xmp.rb @@ -11,7 +11,7 @@ # require "irb" -require "irb/frame" +require_relative "frame" # An example printer for irb. # |