diff --git a/CHANGELOG.md b/CHANGELOG.md index 87bbde4d..9683202f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +### 2.1.82 + +2023-07-01 12:39 + +#### IMPROVED + +- Better handling of defaults for normalize functions + +#### FIXED + +- Allow value of 0 to be considered a good result when testing for good values + ### 2.1.81 2023-05-31 11:47 diff --git a/Gemfile.lock b/Gemfile.lock index 5d68b93f..7726dfaa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - doing (2.1.81) + doing (2.1.82) chronic (~> 0.10, >= 0.10.2) deep_merge (~> 1.2, >= 1.2.1) gli (~> 2.20, >= 2.20.1) @@ -40,17 +40,17 @@ GEM rdoc (6.3.3) redcarpet (3.6.0) rexml (3.2.5) - rouge (4.1.0) + rouge (4.1.2) safe_yaml (1.0.5) strings (0.2.1) strings-ansi (~> 0.2) unicode-display_width (>= 1.5, < 3.0) unicode_utils (~> 1.4) strings-ansi (0.2.0) - temple (0.10.0) + temple (0.10.2) test-unit (3.4.9) power_assert - tilt (2.1.0) + tilt (2.2.0) tty-color (0.6.0) tty-cursor (0.7.1) tty-link (0.1.1) diff --git a/README.md b/README.md index df5b12c8..6983acc9 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ _If you're one of the rare people like me who find this useful, feel free to -The current version of `doing` is 2.1.80. +The current version of `doing` is 2.1.81. Find all of the documentation in the [doing wiki][wiki]. diff --git a/bin/commands/show.rb b/bin/commands/show.rb index d4b2db96..dbd38843 100644 --- a/bin/commands/show.rb +++ b/bin/commands/show.rb @@ -68,7 +68,7 @@ when /^all$/i section = 'All' args.shift - when /^(choose|pick)$/i + when /^(choose|pick|menu)$/i section = @wwid.choose_section(include_all: true) args.shift @@ -98,11 +98,11 @@ end end else - if options[:section] && !options[:section].empty? - section = @wwid.guess_section(options[:section]) || 'All' - else - section = options[:menu] ? @wwid.choose_section(include_all: true) : Doing.setting('current_section') - end + section = if options[:section] && !options[:section].empty? + @wwid.guess_section(options[:section]) || 'All' + else + options[:menu] ? @wwid.choose_section(include_all: true) : Doing.setting('current_section') + end section ||= 'All' end @@ -111,11 +111,11 @@ options[:times] = true if options[:totals] template = Doing.setting(['templates', options[:config_template]]).deep_merge({ - 'wrap_width' => Doing.setting('wrap_width') || 0, - 'date_format' => Doing.setting('default_date_format'), - 'order' => Doing.setting('order')&.normalize_order || :asc, - 'tags_color' => Doing.setting('tags_color') - }) + 'wrap_width' => Doing.setting('wrap_width') || 0, + 'date_format' => Doing.setting('default_date_format'), + 'order' => Doing.setting('order')&.normalize_order || :asc, + 'tags_color' => Doing.setting('tags_color') + }) if options[:search] search = options[:search] diff --git a/docs/doc/Array.html b/docs/doc/Array.html index 50cd2b1c..5e3fa692 100644 --- a/docs/doc/Array.html +++ b/docs/doc/Array.html @@ -350,7 +350,7 @@
'2.1.81'
'2.1.82'
The current version of doing
is <!--VER-->2.1.80<!--END VER-->.
The current version of doing
is <!--VER-->2.1.81<!--END VER-->.
Find all of the documentation in the doing wiki.
@@ -153,7 +153,7 @@The current version of doing
is <!--VER-->2.1.80<!--END VER-->.
The current version of doing
is <!--VER-->2.1.81<!--END VER-->.
Find all of the documentation in the doing wiki.
@@ -153,7 +153,7 @@