From 32ab5e48168db3b52bde229a8aff5fc1078476da Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Sat, 21 Sep 2024 02:15:54 +0200 Subject: [PATCH] Fix matrix format --- Matrixfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Matrixfile b/Matrixfile index 1af448242a0..0252861bb88 100644 --- a/Matrixfile +++ b/Matrixfile @@ -283,10 +283,10 @@ 'graphql-2.0' => '✅ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby', 'graphql-1.13' => '❌ 2.5 / ✅ 2.6 / ✅ 2.7 / ✅ 3.0 / ✅ 3.1 / ✅ 3.2 / ✅ 3.3 / ✅ 3.4 / ✅ jruby', } -}.flat_map do |tasks, spec_metadata| - # Explode arrays of task names into individual tasks - # e.g. ['rails', 'railsdisableenv'] => {'...'} becomes [['rails7', '...'], ['railsdisableenv7', '...']] - Array(tasks).map { |task| [task, spec_metadata] } +}.each_with_object({}) do |(tasks, spec_metadata), hash| + Array(tasks).each do |task| + hash[task] = spec_metadata + end end.freeze # rubocop:enable Layout/HashAlignment