From bf706fa1014c53859fe9d44836455f46c2fce937 Mon Sep 17 00:00:00 2001 From: Richard Peck Date: Sat, 10 Oct 2020 11:25:21 +0100 Subject: [PATCH] Update require_all.rb This fixes the problem with globbing. Despite what the readme says, "native" globbing support doesn't work - with this addition, it does. --- lib/require_all.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/require_all.rb b/lib/require_all.rb index d54c162..0862551 100644 --- a/lib/require_all.rb +++ b/lib/require_all.rb @@ -50,7 +50,7 @@ def require_all(*args) if File.directory? path Dir[File.join(path, '**', '*.rb')] else - path + Dir[path] end end.flatten else