mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
c8c66bcf92
commit
e859e668d2
126 changed files with 256 additions and 256 deletions
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
require 'cgi/util'
|
||||
require_relative 'util'
|
||||
class CGI
|
||||
# Class representing an HTTP cookie.
|
||||
#
|
||||
|
|
|
@ -862,24 +862,24 @@ class CGI
|
|||
|
||||
case @options[:tag_maker]
|
||||
when "html3"
|
||||
require 'cgi/html'
|
||||
require_relative 'html'
|
||||
extend Html3
|
||||
extend HtmlExtension
|
||||
when "html4"
|
||||
require 'cgi/html'
|
||||
require_relative 'html'
|
||||
extend Html4
|
||||
extend HtmlExtension
|
||||
when "html4Tr"
|
||||
require 'cgi/html'
|
||||
require_relative 'html'
|
||||
extend Html4Tr
|
||||
extend HtmlExtension
|
||||
when "html4Fr"
|
||||
require 'cgi/html'
|
||||
require_relative 'html'
|
||||
extend Html4Tr
|
||||
extend Html4Fr
|
||||
extend HtmlExtension
|
||||
when "html5"
|
||||
require 'cgi/html'
|
||||
require_relative 'html'
|
||||
extend Html5
|
||||
extend HtmlExtension
|
||||
end
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
# persistent of session data on top of the pstore library. See
|
||||
# cgi/session.rb for more details on session storage managers.
|
||||
|
||||
require 'cgi/session'
|
||||
require_relative '../session'
|
||||
require 'pstore'
|
||||
|
||||
class CGI
|
||||
|
|
|
@ -55,7 +55,7 @@ module CGI::Util
|
|||
end
|
||||
|
||||
begin
|
||||
require 'cgi/escape'
|
||||
require_relative 'escape'
|
||||
rescue LoadError
|
||||
end
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
require 'socket'
|
||||
require 'io/wait'
|
||||
require 'drb/eq'
|
||||
require_relative 'eq'
|
||||
|
||||
#
|
||||
# == Overview
|
||||
|
@ -1638,7 +1638,7 @@ module DRb
|
|||
|
||||
end
|
||||
|
||||
require 'drb/invokemethod'
|
||||
require_relative 'invokemethod'
|
||||
class InvokeMethod
|
||||
include InvokeMethod18Mixin
|
||||
end
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Copyright (c) 2000,2002 Masatoshi SEKI
|
||||
=end
|
||||
|
||||
require 'drb/drb'
|
||||
require_relative 'drb'
|
||||
require 'monitor'
|
||||
|
||||
module DRb
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
Copyright (c) 2000 Masatoshi SEKI
|
||||
=end
|
||||
|
||||
require 'drb/drb'
|
||||
require_relative 'drb'
|
||||
require 'monitor'
|
||||
|
||||
module DRb
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'drb/drb'
|
||||
require_relative 'drb'
|
||||
require 'monitor'
|
||||
|
||||
module DRb
|
||||
|
@ -109,7 +109,7 @@ s2.thread.join
|
|||
=begin
|
||||
# foo.rb
|
||||
|
||||
require 'drb/drb'
|
||||
require_relative 'drb'
|
||||
|
||||
class Foo
|
||||
include DRbUndumped
|
||||
|
@ -127,7 +127,7 @@ end
|
|||
|
||||
=begin
|
||||
# gw_a.rb
|
||||
require 'drb/unix'
|
||||
require_relative 'unix'
|
||||
require 'foo'
|
||||
|
||||
obj = Foo.new('a')
|
||||
|
@ -141,7 +141,7 @@ DRb.thread.join
|
|||
|
||||
=begin
|
||||
# gw_c.rb
|
||||
require 'drb/unix'
|
||||
require_relative 'unix'
|
||||
require 'foo'
|
||||
|
||||
foo = Foo.new('c', nil)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'socket'
|
||||
require 'openssl'
|
||||
require 'drb/drb'
|
||||
require_relative 'drb'
|
||||
require 'singleton'
|
||||
|
||||
module DRb
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'drb/drb'
|
||||
require_relative 'drb'
|
||||
require 'monitor'
|
||||
|
||||
module DRb
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'socket'
|
||||
require 'drb/drb'
|
||||
require_relative 'drb'
|
||||
require 'tmpdir'
|
||||
|
||||
raise(LoadError, "UNIXServer is required") unless defined?(UNIXServer)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
|
||||
require "irb/cmd/nop.rb"
|
||||
require "irb/ext/loader"
|
||||
require_relative "../ext/loader"
|
||||
|
||||
# :stopdoc:
|
||||
module IRB
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
#
|
||||
#
|
||||
#
|
||||
require "irb/workspace"
|
||||
require "irb/inspector"
|
||||
require_relative "workspace"
|
||||
require_relative "inspector"
|
||||
require "irb/input-method"
|
||||
require "irb/output-method"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 "--"
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#
|
||||
#
|
||||
#
|
||||
require 'irb/src_encoding'
|
||||
require_relative 'src_encoding'
|
||||
require 'irb/magic-file'
|
||||
|
||||
module IRB
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
|
||||
require "e2mmap"
|
||||
require "irb/slex"
|
||||
require_relative "slex"
|
||||
require "irb/ruby-token"
|
||||
|
||||
# :stopdoc:
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
|
||||
require "e2mmap"
|
||||
require "irb/notifier"
|
||||
require_relative "notifier"
|
||||
|
||||
# :stopdoc:
|
||||
module IRB
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
|
||||
require "irb"
|
||||
require "irb/frame"
|
||||
require_relative "frame"
|
||||
|
||||
# An example printer for irb.
|
||||
#
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
require "socket"
|
||||
require "monitor"
|
||||
require "net/protocol"
|
||||
require_relative "protocol"
|
||||
require "time"
|
||||
begin
|
||||
require "openssl"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'net/http'
|
||||
require_relative '../http'
|
||||
|
||||
if $0 == __FILE__
|
||||
require 'open-uri'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= net/https -- SSL/TLS enhancement for Net::HTTP.
|
||||
|
||||
This file has been merged with net/http. There is no longer any need to
|
||||
require 'net/https' to use HTTPS.
|
||||
require_relative 'https' to use HTTPS.
|
||||
|
||||
See Net::HTTP for details on how to make HTTPS connections.
|
||||
|
||||
|
@ -19,5 +19,5 @@
|
|||
|
||||
=end
|
||||
|
||||
require 'net/http'
|
||||
require_relative 'http'
|
||||
require 'openssl'
|
||||
|
|
|
@ -18,7 +18,7 @@ require "socket"
|
|||
require "monitor"
|
||||
require "digest/md5"
|
||||
require "strscan"
|
||||
require 'net/protocol'
|
||||
require_relative 'protocol'
|
||||
begin
|
||||
require "openssl"
|
||||
rescue LoadError
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
# See Net::POP3 for documentation.
|
||||
#
|
||||
|
||||
require 'net/protocol'
|
||||
require_relative 'protocol'
|
||||
require 'digest/md5'
|
||||
require 'timeout'
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
# See Net::SMTP for documentation.
|
||||
#
|
||||
|
||||
require 'net/protocol'
|
||||
require_relative 'protocol'
|
||||
require 'digest/md5'
|
||||
require 'timeout'
|
||||
begin
|
||||
|
|
|
@ -187,7 +187,7 @@ module Racc
|
|||
Racc_Runtime_Core_Version_R = '1.4.6'
|
||||
Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1]
|
||||
begin
|
||||
require 'racc/cparse'
|
||||
require_relative 'cparse'
|
||||
# Racc_Runtime_Core_Version_C = (defined in extension)
|
||||
Racc_Runtime_Core_Revision_C = Racc_Runtime_Core_Id_C.split[2]
|
||||
unless new.respond_to?(:_racc_do_parse_c, true)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
#vim:ts=2 sw=2 noexpandtab:
|
||||
require 'rexml/child'
|
||||
require 'rexml/source'
|
||||
require_relative 'child'
|
||||
require_relative 'source'
|
||||
|
||||
module REXML
|
||||
# This class needs:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/namespace"
|
||||
require 'rexml/text'
|
||||
require_relative "namespace"
|
||||
require_relative 'text'
|
||||
|
||||
module REXML
|
||||
# Defines an Element Attribute; IE, a attribute=value pair, as in:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/text"
|
||||
require_relative "text"
|
||||
|
||||
module REXML
|
||||
class CData < Text
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/node"
|
||||
require_relative "node"
|
||||
|
||||
module REXML
|
||||
##
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/child"
|
||||
require_relative "child"
|
||||
|
||||
module REXML
|
||||
##
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/parent"
|
||||
require "rexml/parseexception"
|
||||
require "rexml/namespace"
|
||||
require 'rexml/entity'
|
||||
require 'rexml/attlistdecl'
|
||||
require 'rexml/xmltokens'
|
||||
require_relative "parent"
|
||||
require_relative "parseexception"
|
||||
require_relative "namespace"
|
||||
require_relative 'entity'
|
||||
require_relative 'attlistdecl'
|
||||
require_relative 'xmltokens'
|
||||
|
||||
module REXML
|
||||
# Represents an XML DOCTYPE declaration; that is, the contents of <!DOCTYPE
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/security"
|
||||
require "rexml/element"
|
||||
require "rexml/xmldecl"
|
||||
require "rexml/source"
|
||||
require "rexml/comment"
|
||||
require "rexml/doctype"
|
||||
require "rexml/instruction"
|
||||
require "rexml/rexml"
|
||||
require "rexml/parseexception"
|
||||
require "rexml/output"
|
||||
require "rexml/parsers/baseparser"
|
||||
require "rexml/parsers/streamparser"
|
||||
require "rexml/parsers/treeparser"
|
||||
require_relative "security"
|
||||
require_relative "element"
|
||||
require_relative "xmldecl"
|
||||
require_relative "source"
|
||||
require_relative "comment"
|
||||
require_relative "doctype"
|
||||
require_relative "instruction"
|
||||
require_relative "rexml"
|
||||
require_relative "parseexception"
|
||||
require_relative "output"
|
||||
require_relative "parsers/baseparser"
|
||||
require_relative "parsers/streamparser"
|
||||
require_relative "parsers/treeparser"
|
||||
|
||||
module REXML
|
||||
# Represents a full XML document, including PIs, a doctype, etc. A
|
||||
|
@ -226,7 +226,7 @@ module REXML
|
|||
end
|
||||
formatter = if indent > -1
|
||||
if transitive
|
||||
require "rexml/formatters/transitive"
|
||||
require_relative "formatters/transitive"
|
||||
REXML::Formatters::Transitive.new( indent, ie_hack )
|
||||
else
|
||||
REXML::Formatters::Pretty.new( indent, ie_hack )
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/child"
|
||||
require_relative "../child"
|
||||
module REXML
|
||||
module DTD
|
||||
class AttlistDecl < Child
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/dtd/elementdecl"
|
||||
require "rexml/dtd/entitydecl"
|
||||
require "rexml/comment"
|
||||
require "rexml/dtd/notationdecl"
|
||||
require "rexml/dtd/attlistdecl"
|
||||
require "rexml/parent"
|
||||
require_relative "elementdecl"
|
||||
require_relative "entitydecl"
|
||||
require_relative "../comment"
|
||||
require_relative "notationdecl"
|
||||
require_relative "attlistdecl"
|
||||
require_relative "../parent"
|
||||
|
||||
module REXML
|
||||
module DTD
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/child"
|
||||
require_relative "../child"
|
||||
module REXML
|
||||
module DTD
|
||||
class ElementDecl < Child
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/child"
|
||||
require_relative "../child"
|
||||
module REXML
|
||||
module DTD
|
||||
class EntityDecl < Child
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/child"
|
||||
require_relative "../child"
|
||||
module REXML
|
||||
module DTD
|
||||
class NotationDecl < Child
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/parent"
|
||||
require "rexml/namespace"
|
||||
require "rexml/attribute"
|
||||
require "rexml/cdata"
|
||||
require "rexml/xpath"
|
||||
require "rexml/parseexception"
|
||||
require_relative "parent"
|
||||
require_relative "namespace"
|
||||
require_relative "attribute"
|
||||
require_relative "cdata"
|
||||
require_relative "xpath"
|
||||
require_relative "parseexception"
|
||||
|
||||
module REXML
|
||||
# An implementation note about namespaces:
|
||||
|
@ -713,7 +713,7 @@ module REXML
|
|||
Kernel.warn("#{self.class.name}.write is deprecated. See REXML::Formatters", uplevel: 1)
|
||||
formatter = if indent > -1
|
||||
if transitive
|
||||
require "rexml/formatters/transitive"
|
||||
require_relative "formatters/transitive"
|
||||
REXML::Formatters::Transitive.new( indent, ie_hack )
|
||||
else
|
||||
REXML::Formatters::Pretty.new( indent, ie_hack )
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/child'
|
||||
require 'rexml/source'
|
||||
require 'rexml/xmltokens'
|
||||
require_relative 'child'
|
||||
require_relative 'source'
|
||||
require_relative 'xmltokens'
|
||||
|
||||
module REXML
|
||||
class Entity < Child
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/formatters/default'
|
||||
require_relative 'default'
|
||||
|
||||
module REXML
|
||||
module Formatters
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/formatters/pretty'
|
||||
require_relative 'pretty'
|
||||
|
||||
module REXML
|
||||
module Formatters
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/child"
|
||||
require "rexml/source"
|
||||
require_relative "child"
|
||||
require_relative "source"
|
||||
|
||||
module REXML
|
||||
# Represents an XML Instruction; IE, <? ... ?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/xmltokens'
|
||||
require_relative '../xmltokens'
|
||||
|
||||
# [ :element, parent, name, attributes, children* ]
|
||||
# a = Node.new
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/xmltokens'
|
||||
require_relative 'xmltokens'
|
||||
|
||||
module REXML
|
||||
# Adds named attributes to an object.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/parseexception"
|
||||
require "rexml/formatters/pretty"
|
||||
require "rexml/formatters/default"
|
||||
require_relative "parseexception"
|
||||
require_relative "formatters/pretty"
|
||||
require_relative "formatters/default"
|
||||
|
||||
module REXML
|
||||
# Represents a node in the tree. Nodes are never encountered except as
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/encoding'
|
||||
require_relative 'encoding'
|
||||
|
||||
module REXML
|
||||
class Output
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/child"
|
||||
require_relative "child"
|
||||
|
||||
module REXML
|
||||
# A parent has children, and has methods for accessing them. The Parent
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/parseexception'
|
||||
require 'rexml/undefinednamespaceexception'
|
||||
require 'rexml/source'
|
||||
require_relative '../parseexception'
|
||||
require_relative '../undefinednamespaceexception'
|
||||
require_relative '../source'
|
||||
require 'set'
|
||||
|
||||
module REXML
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/parsers/streamparser'
|
||||
require 'rexml/parsers/baseparser'
|
||||
require 'rexml/light/node'
|
||||
require_relative 'streamparser'
|
||||
require_relative 'baseparser'
|
||||
require_relative '../light/node'
|
||||
|
||||
module REXML
|
||||
module Parsers
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# frozen_string_literal: false
|
||||
require 'forwardable'
|
||||
|
||||
require 'rexml/parseexception'
|
||||
require 'rexml/parsers/baseparser'
|
||||
require 'rexml/xmltokens'
|
||||
require_relative '../parseexception'
|
||||
require_relative 'baseparser'
|
||||
require_relative '../xmltokens'
|
||||
|
||||
module REXML
|
||||
module Parsers
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/parsers/baseparser'
|
||||
require 'rexml/parseexception'
|
||||
require 'rexml/namespace'
|
||||
require 'rexml/text'
|
||||
require_relative 'baseparser'
|
||||
require_relative '../parseexception'
|
||||
require_relative '../namespace'
|
||||
require_relative '../text'
|
||||
|
||||
module REXML
|
||||
module Parsers
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/parsers/baseparser"
|
||||
require_relative "baseparser"
|
||||
|
||||
module REXML
|
||||
module Parsers
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/validation/validationexception'
|
||||
require 'rexml/undefinednamespaceexception'
|
||||
require_relative '../validation/validationexception'
|
||||
require_relative '../undefinednamespaceexception'
|
||||
|
||||
module REXML
|
||||
module Parsers
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/parsers/streamparser'
|
||||
require 'rexml/parsers/baseparser'
|
||||
require_relative 'streamparser'
|
||||
require_relative 'baseparser'
|
||||
|
||||
module REXML
|
||||
module Parsers
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/namespace'
|
||||
require 'rexml/xmltokens'
|
||||
require_relative '../namespace'
|
||||
require_relative '../xmltokens'
|
||||
|
||||
module REXML
|
||||
module Parsers
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/functions'
|
||||
require 'rexml/xmltokens'
|
||||
require_relative 'functions'
|
||||
require_relative 'xmltokens'
|
||||
|
||||
module REXML
|
||||
class QuickPath
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# coding: US-ASCII
|
||||
# frozen_string_literal: false
|
||||
require 'rexml/encoding'
|
||||
require_relative 'encoding'
|
||||
|
||||
module REXML
|
||||
# Generates Source-s. USE THIS CLASS.
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/security'
|
||||
require 'rexml/entity'
|
||||
require 'rexml/doctype'
|
||||
require 'rexml/child'
|
||||
require 'rexml/doctype'
|
||||
require 'rexml/parseexception'
|
||||
require_relative 'security'
|
||||
require_relative 'entity'
|
||||
require_relative 'doctype'
|
||||
require_relative 'child'
|
||||
require_relative 'doctype'
|
||||
require_relative 'parseexception'
|
||||
|
||||
module REXML
|
||||
# Represents text nodes in an XML document
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/parseexception'
|
||||
require_relative 'parseexception'
|
||||
module REXML
|
||||
class UndefinedNamespaceException < ParseException
|
||||
def initialize( prefix, source, parser )
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require "rexml/validation/validation"
|
||||
require "rexml/parsers/baseparser"
|
||||
require_relative "validation"
|
||||
require_relative "../parsers/baseparser"
|
||||
|
||||
module REXML
|
||||
module Validation
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/validation/validationexception'
|
||||
require_relative 'validationexception'
|
||||
|
||||
module REXML
|
||||
module Validation
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/encoding'
|
||||
require 'rexml/source'
|
||||
require_relative 'encoding'
|
||||
require_relative 'source'
|
||||
|
||||
module REXML
|
||||
# NEEDS DOCUMENTATION
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/functions'
|
||||
require 'rexml/xpath_parser'
|
||||
require_relative 'functions'
|
||||
require_relative 'xpath_parser'
|
||||
|
||||
module REXML
|
||||
# Wrapper class. Use this class to access the XPath functions.
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rexml/namespace'
|
||||
require 'rexml/xmltokens'
|
||||
require 'rexml/attribute'
|
||||
require 'rexml/syncenumerator'
|
||||
require 'rexml/parsers/xpathparser'
|
||||
require_relative 'namespace'
|
||||
require_relative 'xmltokens'
|
||||
require_relative 'attribute'
|
||||
require_relative 'syncenumerator'
|
||||
require_relative 'parsers/xpathparser'
|
||||
|
||||
class Object
|
||||
# provides a unified +clone+ operation, for REXML::XPathParser
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Note: Rinda::Ring API is unstable.
|
||||
#
|
||||
require 'drb/drb'
|
||||
require 'rinda/rinda'
|
||||
require_relative 'rinda'
|
||||
require 'ipaddr'
|
||||
|
||||
module Rinda
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'monitor'
|
||||
require 'drb/drb'
|
||||
require 'rinda/rinda'
|
||||
require_relative 'rinda'
|
||||
require 'forwardable'
|
||||
|
||||
module Rinda
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/parser"
|
||||
require_relative "parser"
|
||||
|
||||
module RSS
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/parser"
|
||||
require_relative "parser"
|
||||
|
||||
module RSS
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/parser'
|
||||
require_relative 'parser'
|
||||
|
||||
module RSS
|
||||
##
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/rss"
|
||||
require_relative "rss"
|
||||
|
||||
module RSS
|
||||
# The prefix for the Content XML namespace.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/utils"
|
||||
require_relative "utils"
|
||||
|
||||
module RSS
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/rss"
|
||||
require_relative "rss"
|
||||
|
||||
module RSS
|
||||
# The prefix for the Dublin Core XML namespace.
|
||||
|
@ -161,4 +161,4 @@ end
|
|||
|
||||
require 'rss/dublincore/1.0'
|
||||
require 'rss/dublincore/2.0'
|
||||
require 'rss/dublincore/atom'
|
||||
require_relative 'dublincore/atom'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/atom"
|
||||
require_relative "../atom"
|
||||
|
||||
module RSS
|
||||
module Atom
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/1.0'
|
||||
require 'rss/dublincore'
|
||||
require_relative 'dublincore'
|
||||
|
||||
module RSS
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/rss"
|
||||
require_relative "rss"
|
||||
|
||||
module RSS
|
||||
##
|
||||
|
@ -67,13 +67,13 @@ end
|
|||
|
||||
require "rss/maker/1.0"
|
||||
require "rss/maker/2.0"
|
||||
require "rss/maker/feed"
|
||||
require "rss/maker/entry"
|
||||
require "rss/maker/content"
|
||||
require "rss/maker/dublincore"
|
||||
require "rss/maker/slash"
|
||||
require "rss/maker/syndication"
|
||||
require "rss/maker/taxonomy"
|
||||
require "rss/maker/trackback"
|
||||
require "rss/maker/image"
|
||||
require "rss/maker/itunes"
|
||||
require_relative "maker/feed"
|
||||
require_relative "maker/entry"
|
||||
require_relative "maker/content"
|
||||
require_relative "maker/dublincore"
|
||||
require_relative "maker/slash"
|
||||
require_relative "maker/syndication"
|
||||
require_relative "maker/taxonomy"
|
||||
require_relative "maker/trackback"
|
||||
require_relative "maker/image"
|
||||
require_relative "maker/itunes"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/0.9"
|
||||
|
||||
require "rss/maker/base"
|
||||
require_relative "base"
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/1.0"
|
||||
|
||||
require "rss/maker/base"
|
||||
require_relative "base"
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/atom"
|
||||
require_relative "../atom"
|
||||
|
||||
require "rss/maker/base"
|
||||
require_relative "base"
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'forwardable'
|
||||
|
||||
require 'rss/rss'
|
||||
require_relative '../rss'
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/content'
|
||||
require_relative '../content'
|
||||
require 'rss/maker/1.0'
|
||||
require 'rss/maker/2.0'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/dublincore'
|
||||
require_relative '../dublincore'
|
||||
require 'rss/maker/1.0'
|
||||
|
||||
module RSS
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/maker/atom"
|
||||
require "rss/maker/feed"
|
||||
require_relative "atom"
|
||||
require_relative "feed"
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/maker/atom"
|
||||
require_relative "atom"
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/image'
|
||||
require_relative '../image'
|
||||
require 'rss/maker/1.0'
|
||||
require 'rss/maker/dublincore'
|
||||
require_relative 'dublincore'
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/itunes'
|
||||
require_relative '../itunes'
|
||||
require 'rss/maker/2.0'
|
||||
|
||||
module RSS
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/slash'
|
||||
require_relative '../slash'
|
||||
require 'rss/maker/1.0'
|
||||
|
||||
module RSS
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/syndication'
|
||||
require_relative '../syndication'
|
||||
require 'rss/maker/1.0'
|
||||
|
||||
module RSS
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/taxonomy'
|
||||
require_relative '../taxonomy'
|
||||
require 'rss/maker/1.0'
|
||||
require 'rss/maker/dublincore'
|
||||
require_relative 'dublincore'
|
||||
|
||||
module RSS
|
||||
module Maker
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'rss/trackback'
|
||||
require_relative '../trackback'
|
||||
require 'rss/maker/1.0'
|
||||
require 'rss/maker/2.0'
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
require "forwardable"
|
||||
require "open-uri"
|
||||
|
||||
require "rss/rss"
|
||||
require "rss/xml"
|
||||
require_relative "rss"
|
||||
require_relative "xml"
|
||||
|
||||
module RSS
|
||||
|
||||
|
|
|
@ -63,8 +63,8 @@ end
|
|||
|
||||
|
||||
require "English"
|
||||
require "rss/utils"
|
||||
require "rss/converter"
|
||||
require_relative "utils"
|
||||
require_relative "converter"
|
||||
require "rss/xml-stylesheet"
|
||||
|
||||
module RSS
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/1.0"
|
||||
require "rss/dublincore"
|
||||
require_relative "dublincore"
|
||||
|
||||
module RSS
|
||||
# The prefix for the Taxonomy XML namespace.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/utils"
|
||||
require_relative "utils"
|
||||
|
||||
module RSS
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require "rss/utils"
|
||||
require_relative "utils"
|
||||
|
||||
module RSS
|
||||
module XML
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
#
|
||||
|
||||
require "shell/filter"
|
||||
require_relative "filter"
|
||||
|
||||
class Shell
|
||||
class BuiltInCommand < Filter
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
|
||||
require "e2mmap"
|
||||
|
||||
require "shell/error"
|
||||
require "shell/filter"
|
||||
require_relative "error"
|
||||
require_relative "filter"
|
||||
require "shell/system-command"
|
||||
require "shell/builtin-command"
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
#
|
||||
|
||||
require "shell/filter"
|
||||
require_relative "filter"
|
||||
|
||||
class Shell
|
||||
class SystemCommand < Filter
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
# See URI for general documentation
|
||||
#
|
||||
|
||||
require "uri/rfc2396_parser"
|
||||
require "uri/rfc3986_parser"
|
||||
require_relative "rfc2396_parser"
|
||||
require_relative "rfc3986_parser"
|
||||
|
||||
module URI
|
||||
REGEXP = RFC2396_REGEXP
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'uri/generic'
|
||||
require_relative 'generic'
|
||||
|
||||
module URI
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue