ruby-changes:56656
From: Nobuyoshi <ko1@a...>
Date: Thu, 25 Jul 2019 17:01:05 +0900 (JST)
Subject: [ruby-changes:56656] Nobuyoshi Nakada: 46771abfe5 (master): Use libraries in the base directory if given
https://git.ruby-lang.org/ruby.git/commit/?id=46771abfe5 From 46771abfe53d95e8cecf917a5c999e32388be184 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 25 Jul 2019 16:52:03 +0900 Subject: Use libraries in the base directory if given diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index a3e41a8..37c17ba 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -1123,10 +1123,11 @@ module Test https://github.com/ruby/ruby/blob/trunk/tool/lib/test/unit.rb#L1123 def initialize(force_standalone = false, default_dir = nil, argv = ARGV) @force_standalone = force_standalone @runner = Runner.new do |files, options| - options[:base_directory] ||= default_dir + base = options[:base_directory] ||= default_dir files << default_dir if files.empty? and default_dir @to_run = files yield self if block_given? + $LOAD_PATH.unshift base if base files end Runner.runner = @runner -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/