From 141d3399afe64da710b3fa22e251e1c702e2fc51 Mon Sep 17 00:00:00 2001 From: John Mettraux Date: Fri, 22 Nov 2024 18:26:57 +0900 Subject: [PATCH] Use Array.select for JRuby 9.2 --- lib/fugit/duration.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fugit/duration.rb b/lib/fugit/duration.rb index a0d3469..62841fa 100644 --- a/lib/fugit/duration.rb +++ b/lib/fugit/duration.rb @@ -79,8 +79,8 @@ def common_rewrite_dur(t) kes = KEYS.entries INFLA_KEYS, NON_INFLA_KEYS = - kes.filter { |_, v| v[:I] }.freeze, - kes.filter { |_, v| ! v[:I] }.freeze + kes.select { |_, v| v[:I] }.freeze, + kes.select { |_, v| ! v[:I] }.freeze def _to_s(key)