From 69413f8c8aceeb9ac25bcac597b98e301723b4b3 Mon Sep 17 00:00:00 2001 From: Brett Terpstra Date: Mon, 8 Aug 2022 12:19:34 -0500 Subject: [PATCH] Comparison of Doing::Section to string - FIXED: comparison of Doing::Section to string --- lib/doing/items/filter.rb | 2 +- lib/doing/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/doing/items/filter.rb b/lib/doing/items/filter.rb index 5a2465c9..f9caa8e5 100644 --- a/lib/doing/items/filter.rb +++ b/lib/doing/items/filter.rb @@ -11,7 +11,7 @@ class Items < Array # def in_section(section) sect = section.is_a?(Section) ? section.title : section - if section =~ /^all$/i + if sect =~ /^all$/i dup else items = Items.new.concat(select { |item| !item.nil? && item.section == section }) diff --git a/lib/doing/version.rb b/lib/doing/version.rb index 03f3efb9..53707004 100644 --- a/lib/doing/version.rb +++ b/lib/doing/version.rb @@ -1,3 +1,3 @@ module Doing - VERSION = '2.1.67' + VERSION = '2.1.68' end