ruby-changes:62614
From: Nobuyoshi <ko1@a...>
Date: Tue, 18 Aug 2020 18:57:10 +0900 (JST)
Subject: [ruby-changes:62614] d32229e338 (master): [ruby/irb] Prefer require_relative to load the files in this library
https://git.ruby-lang.org/ruby.git/commit/?id=d32229e338 From d32229e33872d3c64d21dd016ec85a6b3e605890 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 12 Aug 2020 11:20:35 +0900 Subject: [ruby/irb] Prefer require_relative to load the files in this library https://github.com/ruby/irb/commit/0ac3bc7296 diff --git a/lib/irb.rb b/lib/irb.rb index f0bbb3c..ed2b336 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -11,17 +11,17 @@ https://github.com/ruby/ruby/blob/trunk/lib/irb.rb#L11 # require "ripper" -require "irb/init" -require "irb/context" -require "irb/extend-command" +require_relative "irb/init" +require_relative "irb/context" +require_relative "irb/extend-command" -require "irb/ruby-lex" -require "irb/input-method" -require "irb/locale" -require "irb/color" +require_relative "irb/ruby-lex" +require_relative "irb/input-method" +require_relative "irb/locale" +require_relative "irb/color" -require "irb/version" -require "irb/easter-egg" +require_relative "irb/version" +require_relative "irb/easter-egg" # IRB stands for "interactive Ruby" and is a tool to interactively execute Ruby # expressions read from the standard input. diff --git a/lib/irb/xmp.rb b/lib/irb/xmp.rb index 60cf3b4..88cbd88 100644 --- a/lib/irb/xmp.rb +++ b/lib/irb/xmp.rb @@ -10,7 +10,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/irb/xmp.rb#L10 # # -require "irb" +require_relative "../irb" require_relative "frame" # An example printer for irb. -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/