]> source.dussan.org Git - redmine.git/commitdiff
Fix `rake yard` does not work with Ruby >= 3.2 due to nested array issue (#39576).
authorGo MAEDA <maeda@farend.jp>
Sat, 18 Nov 2023 04:18:59 +0000 (04:18 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 18 Nov 2023 04:18:59 +0000 (04:18 +0000)
Patch by Go MAEDA.

git-svn-id: https://svn.redmine.org/redmine/trunk@22456 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/yardoc.rake

index 60d3a644aa3489c2d80671cd42debe392e8ac8bb..efa05fd1fce5c29765a78d31ce765d88ad23d938 100644 (file)
@@ -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',