From 72dcb6a570dde4c90434d6397804a59ce8ae95f2 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 18 Nov 2023 04:18:59 +0000 Subject: [PATCH] Fix `rake yard` does not work with Ruby >= 3.2 due to nested array issue (#39576). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22456 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/yardoc.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/yardoc.rake b/lib/tasks/yardoc.rake index 60d3a644a..efa05fd1f 100644 --- a/lib/tasks/yardoc.rake +++ b/lib/tasks/yardoc.rake @@ -3,7 +3,7 @@ begin YARD::Rake::YardocTask.new do |t| files = ['app/**/*.rb'] - files << Dir['lib/**/*.rb', 'plugins/**/*.rb'].reject {|f| f.match(/test/) } + files += Dir['lib/**/*.rb', 'plugins/**/*.rb'].reject {|f| f.match(/test/)} t.files = files static_files = ['doc/CHANGELOG',