mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
lib/*: Prefer require_relative over require, remove explicit extension
[#15206] [Fix GH-1976] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e859e668d2
commit
b9d42af0f2
15 changed files with 20 additions and 20 deletions
|
@ -10,8 +10,8 @@
|
|||
#
|
||||
#
|
||||
|
||||
require "irb/cmd/nop.rb"
|
||||
require "irb/ext/change-ws.rb"
|
||||
require_relative "nop"
|
||||
require_relative "../ext/change-ws"
|
||||
|
||||
# :stopdoc:
|
||||
module IRB
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
require 'rdoc/ri/driver'
|
||||
|
||||
require "irb/cmd/nop.rb"
|
||||
require_relative "nop"
|
||||
|
||||
# :stopdoc:
|
||||
module IRB
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
#
|
||||
|
||||
require "irb/cmd/nop.rb"
|
||||
require_relative "nop"
|
||||
require_relative "../ext/loader"
|
||||
|
||||
# :stopdoc:
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
#
|
||||
#
|
||||
|
||||
require "irb/cmd/nop.rb"
|
||||
require "irb/ext/workspaces.rb"
|
||||
require_relative "nop"
|
||||
require_relative "../ext/workspaces"
|
||||
|
||||
# :stopdoc:
|
||||
module IRB
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#
|
||||
#
|
||||
|
||||
require "irb/cmd/nop.rb"
|
||||
require "irb/ext/multi-irb"
|
||||
require_relative "nop"
|
||||
require_relative "../ext/multi-irb"
|
||||
|
||||
# :stopdoc:
|
||||
module IRB
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
#
|
||||
require_relative "workspace"
|
||||
require_relative "inspector"
|
||||
require "irb/input-method"
|
||||
require "irb/output-method"
|
||||
require_relative "input-method"
|
||||
require_relative "output-method"
|
||||
|
||||
module IRB
|
||||
# A class that wraps the current state of the irb session, including the
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
#
|
||||
|
||||
require 'irb/magic-file'
|
||||
require_relative 'magic-file'
|
||||
|
||||
module IRB
|
||||
# Outputs the irb help message, see IRB@Command+line+options.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
#
|
||||
require_relative 'src_encoding'
|
||||
require 'irb/magic-file'
|
||||
require_relative 'magic-file'
|
||||
|
||||
module IRB
|
||||
STDIN_FILE_NAME = "(line)" # :nodoc:
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
|
||||
require "e2mmap"
|
||||
require "irb/output-method"
|
||||
require_relative "output-method"
|
||||
|
||||
module IRB
|
||||
# An output formatter used internally by the lexer.
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
require "e2mmap"
|
||||
require_relative "slex"
|
||||
require "irb/ruby-token"
|
||||
require_relative "ruby-token"
|
||||
|
||||
# :stopdoc:
|
||||
class RubyLex
|
||||
|
|
|
@ -65,7 +65,7 @@ end
|
|||
require "English"
|
||||
require_relative "utils"
|
||||
require_relative "converter"
|
||||
require "rss/xml-stylesheet"
|
||||
require_relative "xml-stylesheet"
|
||||
|
||||
module RSS
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ require "e2mmap"
|
|||
|
||||
require_relative "error"
|
||||
require_relative "filter"
|
||||
require "shell/system-command"
|
||||
require "shell/builtin-command"
|
||||
require_relative "system-command"
|
||||
require_relative "builtin-command"
|
||||
|
||||
class Shell
|
||||
# In order to execute a command on your OS, you need to define it as a
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
# content are purely an implementation detail, and should not be exposed in
|
||||
# any test or spec or otherwise.
|
||||
|
||||
require 'unicode_normalize/tables.rb'
|
||||
require_relative 'tables'
|
||||
|
||||
|
||||
module UnicodeNormalize # :nodoc:
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
# $IPR: erbhandler.rb,v 1.25 2003/02/24 19:25:31 gotoyuzo Exp $
|
||||
|
||||
require 'webrick/httpservlet/abstract.rb'
|
||||
require_relative 'abstract'
|
||||
|
||||
require 'erb'
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
# $IPR: prochandler.rb,v 1.7 2002/09/21 12:23:42 gotoyuzo Exp $
|
||||
|
||||
require 'webrick/httpservlet/abstract.rb'
|
||||
require_relative 'abstract'
|
||||
|
||||
module WEBrick
|
||||
module HTTPServlet
|
||||
|
|
Loading…
Reference in a new issue