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_relative "nop"
|
||||||
require "irb/ext/change-ws.rb"
|
require_relative "../ext/change-ws"
|
||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
module IRB
|
module IRB
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
require 'rdoc/ri/driver'
|
require 'rdoc/ri/driver'
|
||||||
|
|
||||||
require "irb/cmd/nop.rb"
|
require_relative "nop"
|
||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
module IRB
|
module IRB
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
require "irb/cmd/nop.rb"
|
require_relative "nop"
|
||||||
require_relative "../ext/loader"
|
require_relative "../ext/loader"
|
||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
require "irb/cmd/nop.rb"
|
require_relative "nop"
|
||||||
require "irb/ext/workspaces.rb"
|
require_relative "../ext/workspaces"
|
||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
module IRB
|
module IRB
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
require "irb/cmd/nop.rb"
|
require_relative "nop"
|
||||||
require "irb/ext/multi-irb"
|
require_relative "../ext/multi-irb"
|
||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
module IRB
|
module IRB
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
#
|
#
|
||||||
require_relative "workspace"
|
require_relative "workspace"
|
||||||
require_relative "inspector"
|
require_relative "inspector"
|
||||||
require "irb/input-method"
|
require_relative "input-method"
|
||||||
require "irb/output-method"
|
require_relative "output-method"
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
# A class that wraps the current state of the irb session, including the
|
# 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
|
module IRB
|
||||||
# Outputs the irb help message, see IRB@Command+line+options.
|
# Outputs the irb help message, see IRB@Command+line+options.
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
require_relative 'src_encoding'
|
require_relative 'src_encoding'
|
||||||
require 'irb/magic-file'
|
require_relative 'magic-file'
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
STDIN_FILE_NAME = "(line)" # :nodoc:
|
STDIN_FILE_NAME = "(line)" # :nodoc:
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
require "e2mmap"
|
require "e2mmap"
|
||||||
require "irb/output-method"
|
require_relative "output-method"
|
||||||
|
|
||||||
module IRB
|
module IRB
|
||||||
# An output formatter used internally by the lexer.
|
# An output formatter used internally by the lexer.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
require "e2mmap"
|
require "e2mmap"
|
||||||
require_relative "slex"
|
require_relative "slex"
|
||||||
require "irb/ruby-token"
|
require_relative "ruby-token"
|
||||||
|
|
||||||
# :stopdoc:
|
# :stopdoc:
|
||||||
class RubyLex
|
class RubyLex
|
||||||
|
|
|
@ -65,7 +65,7 @@ end
|
||||||
require "English"
|
require "English"
|
||||||
require_relative "utils"
|
require_relative "utils"
|
||||||
require_relative "converter"
|
require_relative "converter"
|
||||||
require "rss/xml-stylesheet"
|
require_relative "xml-stylesheet"
|
||||||
|
|
||||||
module RSS
|
module RSS
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ require "e2mmap"
|
||||||
|
|
||||||
require_relative "error"
|
require_relative "error"
|
||||||
require_relative "filter"
|
require_relative "filter"
|
||||||
require "shell/system-command"
|
require_relative "system-command"
|
||||||
require "shell/builtin-command"
|
require_relative "builtin-command"
|
||||||
|
|
||||||
class Shell
|
class Shell
|
||||||
# In order to execute a command on your OS, you need to define it as a
|
# 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
|
# content are purely an implementation detail, and should not be exposed in
|
||||||
# any test or spec or otherwise.
|
# any test or spec or otherwise.
|
||||||
|
|
||||||
require 'unicode_normalize/tables.rb'
|
require_relative 'tables'
|
||||||
|
|
||||||
|
|
||||||
module UnicodeNormalize # :nodoc:
|
module UnicodeNormalize # :nodoc:
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#
|
#
|
||||||
# $IPR: erbhandler.rb,v 1.25 2003/02/24 19:25:31 gotoyuzo Exp $
|
# $IPR: erbhandler.rb,v 1.25 2003/02/24 19:25:31 gotoyuzo Exp $
|
||||||
|
|
||||||
require 'webrick/httpservlet/abstract.rb'
|
require_relative 'abstract'
|
||||||
|
|
||||||
require 'erb'
|
require 'erb'
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
#
|
#
|
||||||
# $IPR: prochandler.rb,v 1.7 2002/09/21 12:23:42 gotoyuzo Exp $
|
# $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 WEBrick
|
||||||
module HTTPServlet
|
module HTTPServlet
|
||||||
|
|
Loading…
Reference in a new issue