doing 2.1.29 → 2.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +4 -4
  3. data/.yardoc/objects/root.dat +0 -0
  4. data/CHANGELOG.md +13 -0
  5. data/Gemfile.lock +2 -1
  6. data/README.md +1 -1
  7. data/bin/commands/changes.rb +2 -2
  8. data/bin/commands/config.rb +7 -7
  9. data/bin/commands/open.rb +3 -3
  10. data/docs/doc/Array.html +1 -1
  11. data/docs/doc/BooleanTermParser/Clause.html +1 -1
  12. data/docs/doc/BooleanTermParser/Operator.html +1 -1
  13. data/docs/doc/BooleanTermParser/Query.html +1 -1
  14. data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
  15. data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
  16. data/docs/doc/BooleanTermParser.html +1 -1
  17. data/docs/doc/Doing/Color.html +1 -1
  18. data/docs/doc/Doing/Completion.html +1 -1
  19. data/docs/doc/Doing/Configuration.html +1 -1
  20. data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
  21. data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
  22. data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
  23. data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
  24. data/docs/doc/Doing/Errors/NoResults.html +1 -1
  25. data/docs/doc/Doing/Errors/PluginException.html +1 -1
  26. data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
  27. data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
  28. data/docs/doc/Doing/Errors.html +1 -1
  29. data/docs/doc/Doing/Hooks.html +1 -1
  30. data/docs/doc/Doing/Item.html +1 -1
  31. data/docs/doc/Doing/Items.html +1 -1
  32. data/docs/doc/Doing/LogAdapter.html +1 -1
  33. data/docs/doc/Doing/Note.html +1 -1
  34. data/docs/doc/Doing/Pager.html +1 -1
  35. data/docs/doc/Doing/Plugins.html +1 -1
  36. data/docs/doc/Doing/Prompt.html +1 -1
  37. data/docs/doc/Doing/Section.html +1 -1
  38. data/docs/doc/Doing/TemplateString.html +1 -1
  39. data/docs/doc/Doing/Types.html +1 -1
  40. data/docs/doc/Doing/Util/Backup.html +1 -1
  41. data/docs/doc/Doing/Util.html +1 -1
  42. data/docs/doc/Doing/WWID.html +1 -1
  43. data/docs/doc/Doing.html +2 -2
  44. data/docs/doc/FalseClass.html +1 -1
  45. data/docs/doc/GLI/Commands/Help.html +1 -1
  46. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  47. data/docs/doc/GLI/Commands.html +1 -1
  48. data/docs/doc/GLI.html +1 -1
  49. data/docs/doc/Hash.html +1 -1
  50. data/docs/doc/Object.html +1 -1
  51. data/docs/doc/PhraseParser/Operator.html +1 -1
  52. data/docs/doc/PhraseParser/PhraseClause.html +1 -1
  53. data/docs/doc/PhraseParser/Query.html +1 -1
  54. data/docs/doc/PhraseParser/QueryParser.html +1 -1
  55. data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
  56. data/docs/doc/PhraseParser/TermClause.html +1 -1
  57. data/docs/doc/PhraseParser.html +1 -1
  58. data/docs/doc/Status.html +1 -1
  59. data/docs/doc/String.html +1 -1
  60. data/docs/doc/Symbol.html +1 -1
  61. data/docs/doc/Time.html +1 -1
  62. data/docs/doc/TrueClass.html +1 -1
  63. data/docs/doc/_index.html +1 -1
  64. data/docs/doc/file.README.html +2 -2
  65. data/docs/doc/index.html +2 -2
  66. data/docs/doc/top-level-namespace.html +1 -1
  67. data/doing.gemspec +1 -0
  68. data/doing.rdoc +4 -4
  69. data/lib/doing/changelog/changes.rb +7 -5
  70. data/lib/doing/changelog/version.rb +11 -3
  71. data/lib/doing/completion/zsh_completion.rb +5 -0
  72. data/lib/doing/configuration.rb +5 -5
  73. data/lib/doing/section.rb +1 -1
  74. data/lib/doing/version.rb +1 -1
  75. data/lib/doing/wwid.rb +1 -1
  76. data/lib/doing.rb +1 -0
  77. metadata +22 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 762f003b3a725f6bbe26c4a2e9a505613b93eb684c55d83093835f2067e47eea
4
- data.tar.gz: ecdd3a0c9f358a29bf9b01e2e325a0c127271dc589af539f72dcb231ed78e97e
3
+ metadata.gz: b897cc1d14bff24b026ccfe6e66861da45d5cab9b842e896c108a80569945790
4
+ data.tar.gz: c90c0ce2ef63b3b6ae0fdf7b8980640b7e4802bef6d9325c95375b7cddc830db
5
5
  SHA512:
6
- metadata.gz: d73c3ba23abc5f280384458c4d6a73248716eec69d402fcdf0465c76aceacfa9702f83b2e850033f155bc2f683daf47c85563cd8a33b2a75b50c7f4b10e2166d
7
- data.tar.gz: bb7d42b918bef7d09c8090f06a60e3d955c4041ba37b95315ca23c1aa09215d3fbd234818d8e7338536d5607472c3f1bcf4127de070e7955e298e5d3081f8a89
6
+ metadata.gz: 7d895dd6fe2b1c21718f5d627fd7cc6b9d278f318a4cf456d15cd34562a81814048dd3fd570955fdbb9e5ac818b87b6093621e5c9c1c0827c3247d7c14827021
7
+ data.tar.gz: 41c1438c813c34e475ef69f28efa73473e4fbebff63839264000218d60a2e4feca67e37c981eba87840cce43a51bc269e40b84940107c4ba111cc3cb22deda3d
data/.yardoc/checksums CHANGED
@@ -4,7 +4,7 @@ lib/doing/item.rb b5c5cc0d1543b678ee2c4bc10d381e555e318b82
4
4
  lib/doing/note.rb bbadd9e34e6dc43a2af1110a5107f46c39d2547f
5
5
  lib/doing/time.rb 60183c3c31532ffea1440c766de0f90042e0fd10
6
6
  lib/doing/util.rb 3c5a795dce204584be149e9bbcf1d25f3368e901
7
- lib/doing/wwid.rb f7ea82f7f5becf9b83ab36d3932250f7bd5ac758
7
+ lib/doing/wwid.rb 5e6cd1fa0641a762e17a14c7e0fce09968dbe661
8
8
  lib/doing/hooks.rb 1b75ca731f9e8cb0b7a32785d6e496ee67a70d5c
9
9
  lib/doing/items.rb dbda21422a06828f221fe462ff159d228b942044
10
10
  lib/doing/pager.rb 7f9d5551c8f5411c3d39b3d984ac7118f98f5da5
@@ -12,15 +12,15 @@ lib/doing/types.rb 6263b1871efa1e8f6053d3bce69ebf678d27324e
12
12
  lib/doing/colors.rb 8c2d1c8c7e99022d33f1548c5456a0f02d570c4f
13
13
  lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
14
14
  lib/doing/prompt.rb 330b8e6e1e85f73b54f602a0aeac58b6b422fabb
15
- lib/doing/section.rb 206e119cf818f1e76798753e611180fe77bc299a
16
- lib/doing/version.rb 190db3d91371577707fd9f894fbf2fd118e015db
15
+ lib/doing/section.rb 48f200cf363a555b51d90d6477939cf3cf83f241
16
+ lib/doing/version.rb bcf0f3a6ad0a8d30d33f1f3f218d59a88ae6a915
17
17
  lib/doing/changelog.rb f7d1bd424e63400ab0613ef3358e614fdf53e2b5
18
18
  lib/doing/normalize.rb b9925102db5f19cae0e524ffd1be979ab5bc1199
19
19
  lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
20
20
  lib/doing/completion.rb c658e7dc7898fb022a21b2bd77bedb958ca3b067
21
21
  lib/doing/log_adapter.rb 1bc8cab3af769a0caa0c64e8ce63c7860a628578
22
22
  lib/doing/util_backup.rb c13f71072581b1f0d2269853611ba09273261bf9
23
- lib/doing/configuration.rb e47013cdc92ee5312cf0feddfb52ffac033c7f41
23
+ lib/doing/configuration.rb 649c0dbe9b3d661e1004a2367ec74fdc673c2e69
24
24
  lib/doing/phrase_parser.rb 8f1789d7cf8326d8cc231b4a21505a93f8de20d2
25
25
  lib/doing/plugin_manager.rb cb16a82c3182ef7008359670ab96ff6b39270ccc
26
26
  lib/doing/template_string.rb 5d7c7ac9bdf0d44bc32a0442b2fdd243bd1eee24
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ### 2.1.30
2
+
3
+ 2022-02-16 07:18
4
+
5
+ #### IMPROVED
6
+
7
+ - `doing changes` does a better job of parsing a lookup string like '>= 2.1.10 < 2.1.15'
8
+
9
+ #### FIXED
10
+
11
+ - System agnostic platform detection, so commands that check for Darwin won't error out on other systems
12
+ - `doing completions` debugging code
13
+
1
14
  ### 2.1.29
2
15
 
3
16
  2022-02-14 12:42
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doing (2.1.29)
4
+ doing (2.1.30)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  deep_merge (~> 1.2, >= 1.2.1)
7
7
  gli (~> 2.20, >= 2.20.1)
@@ -9,6 +9,7 @@ PATH
9
9
  parslet (~> 2.0, >= 2.0.0)
10
10
  plist (~> 3.6, >= 3.6.0)
11
11
  safe_yaml (~> 1.0)
12
+ sys-uname (~> 1.2, >= 1.2.2)
12
13
  tty-link (~> 0.1, >= 0.1.1)
13
14
  tty-markdown (~> 0.7, >= 0.7.0)
14
15
  tty-progressbar (~> 0.18, >= 0.18.2)
data/README.md CHANGED
@@ -8,7 +8,7 @@ _If you're one of the rare people like me who find this useful, feel free to
8
8
 
9
9
  <!--README-->
10
10
 
11
- The current version of `doing` is <!--VER-->2.1.28<!--END VER-->.
11
+ The current version of `doing` is <!--VER-->2.1.29<!--END VER-->.
12
12
 
13
13
  Find all of the documentation in the [doing wiki][wiki].
14
14
 
@@ -14,7 +14,7 @@ MARKDOWN_THEME = {
14
14
  comment: :bright_black
15
15
  }.deep_freeze
16
16
 
17
- CHANGE_RX = /^(?:(?:(?:[<>=]|p(?:rior)|b(?:efore)|o(?:lder)|s(?:ince)|a(?:fter)|n(?:ewer))? *[\d.*?]+ *)+|(?:[\d.]+ *-+ *[\d.]+))$/
17
+ CHANGE_RX = /^(?:(?:(?:[<>=]+|p(?:rior)|b(?:efore)|o(?:lder)|s(?:ince)|a(?:fter)|n(?:ewer))? *[0-9.*?]+ *)+|(?:[\d.]+ *(?:-|to)+ *[0-9.]+))$/
18
18
 
19
19
  desc 'List recent changes in Doing'
20
20
  long_desc %(Display a formatted list of changes in recent versions.
@@ -27,7 +27,7 @@ command %i[changes changelog] do |c|
27
27
 
28
28
  c.desc %(Look up a specific version. Specify versions as "MAJ.MIN.PATCH", MIN
29
29
  and PATCH are optional. Use > or < to see all changes since or prior
30
- to a version.)
30
+ to a version. Wildcards (*?) accepted unless using < or >.)
31
31
  c.arg_name 'VERSION'
32
32
  c.flag %i[l lookup], must_match: CHANGE_RX
33
33
 
@@ -45,7 +45,7 @@ command :config do |c|
45
45
  edit.arg_name 'EDITOR'
46
46
  edit.flag %i[e editor], default_value: nil
47
47
 
48
- if `uname` =~ /Darwin/
48
+ if Sys::Platform.mac?
49
49
  edit.desc 'Application to use'
50
50
  edit.arg_name 'APP_NAME'
51
51
  edit.flag %i[a app]
@@ -76,7 +76,7 @@ command :config do |c|
76
76
 
77
77
  config_file = @config.choose_config
78
78
 
79
- if `uname` =~ /Darwin/
79
+ if Sys::Platform.mac?
80
80
  if options[:default]
81
81
  editor = Doing::Util.find_default_editor('config')
82
82
  if editor
@@ -139,7 +139,7 @@ command :config do |c|
139
139
  dump.example 'doing config get', desc: 'Output the entire configuration'
140
140
  dump.example 'doing config get timer_format --output raw', desc: 'Output the value of timer_format as a plain string'
141
141
  dump.example 'doing config get doing_file', desc: 'Output the value of the doing_file setting, respecting local configurations'
142
- dump.example 'doing config get -o json plug.plugpath', desc: 'Key path is fuzzy matched: output the value of plugins->plugin_path as JSON'
142
+ dump.example 'doing config get -o json plug.plugpath', desc: 'Key path is fuzzy matched: output the value of plugins.plugin_path as JSON'
143
143
 
144
144
  dump.desc 'Format for output (json|yaml|raw)'
145
145
  dump.arg_name 'FORMAT'
@@ -188,7 +188,7 @@ command :config do |c|
188
188
  c.arg 'KEY VALUE'
189
189
  c.command :set do |set|
190
190
  set.example 'doing config set timer_format human', desc: 'Set the value of timer_format to "human"'
191
- set.example 'doing config set plug.plugpath ~/my_plugins', desc: 'Key path is fuzzy matched: set the value of plugins->plugin_path'
191
+ set.example 'doing config set plug.plugpath ~/my_plugins', desc: 'Key path is fuzzy matched: set the value of plugins.plugin_path'
192
192
 
193
193
  set.desc 'Delete specified key'
194
194
  set.switch %i[r remove], default_value: false, negatable: false
@@ -206,7 +206,7 @@ command :config do |c|
206
206
  old_type = old_value&.class.to_s || nil
207
207
 
208
208
  if old_value.is_a?(Hash) && !options[:remove]
209
- Doing.logger.log_now(:warn, 'Config:', "Config key must point to a single value, #{real_path.join('->').boldwhite} is a mapping")
209
+ Doing.logger.log_now(:warn, 'Config:', "Config key must point to a single value, #{real_path.join('.').boldwhite} is a mapping")
210
210
  didyou = 'Did you mean:'
211
211
  old_value.keys.each do |k|
212
212
  Doing.logger.log_now(:warn, "#{didyou}", "#{keypath}.#{k}?")
@@ -224,11 +224,11 @@ command :config do |c|
224
224
 
225
225
  if options[:remove]
226
226
  cfg.deep_set(real_path, nil)
227
- $stderr.puts "#{'Deleting key:'.yellow} #{real_path.join('->').boldwhite}"
227
+ $stderr.puts "#{'Deleting key:'.yellow} #{real_path.join('.').boldwhite}"
228
228
  else
229
229
  current_value = cfg.dig(*real_path)
230
230
  cfg.deep_set(real_path, value.set_type(old_type))
231
- $stderr.puts "#{' Key path:'.yellow} #{real_path.join('->').boldwhite}"
231
+ $stderr.puts "#{' Key path:'.yellow} #{real_path.join('.').boldwhite}"
232
232
  $stderr.puts "#{'Inherited:'.yellow} #{(old_value ? old_value.to_s : 'empty').boldwhite}"
233
233
  $stderr.puts "#{' Current:'.yellow} #{ (current_value ? current_value.to_s : 'empty').boldwhite }"
234
234
  $stderr.puts "#{' New:'.yellow} #{value.set_type(old_type).to_s.boldwhite}"
data/bin/commands/open.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # @@open
2
2
  desc 'Open the "doing" file in an editor'
3
- long_desc "`doing open` defaults to using the editors->doing_file setting
3
+ long_desc "`doing open` defaults to using the editors.doing_file setting
4
4
  in #{@config.config_file} (#{Doing::Util.find_default_editor('doing_file')})."
5
5
  command :open do |c|
6
6
  c.example 'doing open', desc: 'Open the doing file in the default editor'
@@ -8,7 +8,7 @@ command :open do |c|
8
8
  c.arg_name 'COMMAND'
9
9
  c.flag %i[e editor]
10
10
 
11
- if `uname` =~ /Darwin/
11
+ if Sys::Platform.mac?
12
12
  c.desc 'Open with app name'
13
13
  c.arg_name 'APP_NAME'
14
14
  c.flag %i[a app]
@@ -29,7 +29,7 @@ command :open do |c|
29
29
 
30
30
  editor = TTY::Which.which(options[:editor])
31
31
  system %(#{editor} "#{File.expand_path(@wwid.doing_file)}")
32
- elsif `uname` =~ /Darwin/
32
+ elsif Sys::Platform.mac?
33
33
  if options[:app]
34
34
  system %(open -a "#{options[:app]}" "#{File.expand_path(@wwid.doing_file)}")
35
35
  elsif options[:bundle_id]
data/docs/doc/Array.html CHANGED
@@ -195,7 +195,7 @@ has content</p>
195
195
  </div>
196
196
 
197
197
  <div id="footer">
198
- Generated on Mon Feb 14 14:34:40 2022 by
198
+ Generated on Wed Feb 16 07:23:35 2022 by
199
199
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
200
200
  0.9.27 (ruby-3.0.1).
201
201
  </div>
@@ -283,7 +283,7 @@
283
283
  </div>
284
284
 
285
285
  <div id="footer">
286
- Generated on Mon Feb 14 14:34:40 2022 by
286
+ Generated on Wed Feb 16 07:23:35 2022 by
287
287
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
288
288
  0.9.27 (ruby-3.0.1).
289
289
  </div>
@@ -162,7 +162,7 @@
162
162
  </div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Mon Feb 14 14:34:40 2022 by
165
+ Generated on Wed Feb 16 07:23:35 2022 by
166
166
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
167
  0.9.27 (ruby-3.0.1).
168
168
  </div>
@@ -407,7 +407,7 @@
407
407
  </div>
408
408
 
409
409
  <div id="footer">
410
- Generated on Mon Feb 14 14:34:40 2022 by
410
+ Generated on Wed Feb 16 07:23:35 2022 by
411
411
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
412
412
  0.9.27 (ruby-3.0.1).
413
413
  </div>
@@ -125,7 +125,7 @@ parser. In order to do that, a new &quot;clause&quot; node is added to the parse
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Mon Feb 14 14:34:40 2022 by
128
+ Generated on Wed Feb 16 07:23:35 2022 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.9.27 (ruby-3.0.1).
131
131
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Mon Feb 14 14:34:40 2022 by
117
+ Generated on Wed Feb 16 07:23:35 2022 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.27 (ruby-3.0.1).
120
120
  </div>
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Mon Feb 14 14:34:40 2022 by
108
+ Generated on Wed Feb 16 07:23:35 2022 by
109
109
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
110
  0.9.27 (ruby-3.0.1).
111
111
  </div>
@@ -518,7 +518,7 @@ ANSI-sequences are stripped from the string.</p>
518
518
  </div>
519
519
 
520
520
  <div id="footer">
521
- Generated on Mon Feb 14 14:34:40 2022 by
521
+ Generated on Wed Feb 16 07:23:35 2022 by
522
522
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
523
523
  0.9.27 (ruby-3.0.1).
524
524
  </div>
@@ -206,7 +206,7 @@ stdout</p>
206
206
  </div>
207
207
 
208
208
  <div id="footer">
209
- Generated on Mon Feb 14 14:34:40 2022 by
209
+ Generated on Wed Feb 16 07:23:35 2022 by
210
210
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
211
211
  0.9.27 (ruby-3.0.1).
212
212
  </div>
@@ -1139,7 +1139,7 @@ matched, first match wins)</p>
1139
1139
  </div>
1140
1140
 
1141
1141
  <div id="footer">
1142
- Generated on Mon Feb 14 14:34:40 2022 by
1142
+ Generated on Wed Feb 16 07:23:35 2022 by
1143
1143
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1144
1144
  0.9.27 (ruby-3.0.1).
1145
1145
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Mon Feb 14 14:34:40 2022 by
179
+ Generated on Wed Feb 16 07:23:35 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.27 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Mon Feb 14 14:34:40 2022 by
179
+ Generated on Wed Feb 16 07:23:35 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.27 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Mon Feb 14 14:34:40 2022 by
179
+ Generated on Wed Feb 16 07:23:35 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.27 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Mon Feb 14 14:34:40 2022 by
179
+ Generated on Wed Feb 16 07:23:35 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.27 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Mon Feb 14 14:34:40 2022 by
179
+ Generated on Wed Feb 16 07:23:35 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.27 (ruby-3.0.1).
182
182
  </div>
@@ -238,7 +238,7 @@
238
238
  </div>
239
239
 
240
240
  <div id="footer">
241
- Generated on Mon Feb 14 14:34:40 2022 by
241
+ Generated on Wed Feb 16 07:23:35 2022 by
242
242
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
243
243
  0.9.27 (ruby-3.0.1).
244
244
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Mon Feb 14 14:34:40 2022 by
179
+ Generated on Wed Feb 16 07:23:35 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.27 (ruby-3.0.1).
182
182
  </div>
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
 
178
178
  <div id="footer">
179
- Generated on Mon Feb 14 14:34:40 2022 by
179
+ Generated on Wed Feb 16 07:23:35 2022 by
180
180
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
181
  0.9.27 (ruby-3.0.1).
182
182
  </div>
@@ -181,7 +181,7 @@
181
181
  </div>
182
182
 
183
183
  <div id="footer">
184
- Generated on Mon Feb 14 14:34:40 2022 by
184
+ Generated on Wed Feb 16 07:23:35 2022 by
185
185
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
186
186
  0.9.27 (ruby-3.0.1).
187
187
  </div>
@@ -354,7 +354,7 @@
354
354
  </div>
355
355
 
356
356
  <div id="footer">
357
- Generated on Mon Feb 14 14:34:40 2022 by
357
+ Generated on Wed Feb 16 07:23:35 2022 by
358
358
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
359
359
  0.9.27 (ruby-3.0.1).
360
360
  </div>
@@ -2229,7 +2229,7 @@ thus should not receive a date on the @done tag</p>
2229
2229
  </div>
2230
2230
 
2231
2231
  <div id="footer">
2232
- Generated on Mon Feb 14 14:34:40 2022 by
2232
+ Generated on Wed Feb 16 07:23:35 2022 by
2233
2233
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2234
2234
  0.9.27 (ruby-3.0.1).
2235
2235
  </div>
@@ -890,7 +890,7 @@ specified section</p>
890
890
  </div>
891
891
 
892
892
  <div id="footer">
893
- Generated on Mon Feb 14 14:34:40 2022 by
893
+ Generated on Wed Feb 16 07:23:35 2022 by
894
894
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
895
895
  0.9.27 (ruby-3.0.1).
896
896
  </div>
@@ -1797,7 +1797,7 @@ message (optional)</p>
1797
1797
  </div>
1798
1798
 
1799
1799
  <div id="footer">
1800
- Generated on Mon Feb 14 14:34:40 2022 by
1800
+ Generated on Wed Feb 16 07:23:35 2022 by
1801
1801
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1802
1802
  0.9.27 (ruby-3.0.1).
1803
1803
  </div>
@@ -627,7 +627,7 @@ content</p>
627
627
  </div>
628
628
 
629
629
  <div id="footer">
630
- Generated on Mon Feb 14 14:34:40 2022 by
630
+ Generated on Wed Feb 16 07:23:35 2022 by
631
631
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
632
632
  0.9.27 (ruby-3.0.1).
633
633
  </div>
@@ -296,7 +296,7 @@ STDOUT</p>
296
296
  </div>
297
297
 
298
298
  <div id="footer">
299
- Generated on Mon Feb 14 14:34:40 2022 by
299
+ Generated on Wed Feb 16 07:23:35 2022 by
300
300
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
301
301
  0.9.27 (ruby-3.0.1).
302
302
  </div>
@@ -1235,7 +1235,7 @@ e.g. :imp =&gt; :import</p>
1235
1235
  </div>
1236
1236
 
1237
1237
  <div id="footer">
1238
- Generated on Mon Feb 14 14:34:40 2022 by
1238
+ Generated on Wed Feb 16 07:23:35 2022 by
1239
1239
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1240
1240
  0.9.27 (ruby-3.0.1).
1241
1241
  </div>
@@ -977,7 +977,7 @@ response if no input</p>
977
977
  </div>
978
978
 
979
979
  <div id="footer">
980
- Generated on Mon Feb 14 14:34:40 2022 by
980
+ Generated on Wed Feb 16 07:23:35 2022 by
981
981
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
982
982
  0.9.27 (ruby-3.0.1).
983
983
  </div>
@@ -344,7 +344,7 @@
344
344
  </div>
345
345
 
346
346
  <div id="footer">
347
- Generated on Mon Feb 14 14:34:40 2022 by
347
+ Generated on Wed Feb 16 07:23:35 2022 by
348
348
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
349
349
  0.9.27 (ruby-3.0.1).
350
350
  </div>
@@ -703,7 +703,7 @@ of colors and string locations</p>
703
703
  </div>
704
704
 
705
705
  <div id="footer">
706
- Generated on Mon Feb 14 14:34:40 2022 by
706
+ Generated on Wed Feb 16 07:23:35 2022 by
707
707
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
708
708
  0.9.27 (ruby-3.0.1).
709
709
  </div>
@@ -236,7 +236,7 @@
236
236
  </div>
237
237
 
238
238
  <div id="footer">
239
- Generated on Mon Feb 14 14:34:40 2022 by
239
+ Generated on Wed Feb 16 07:23:35 2022 by
240
240
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
241
241
  0.9.27 (ruby-3.0.1).
242
242
  </div>
@@ -836,7 +836,7 @@ in a hidden directory</p>
836
836
  </div>
837
837
 
838
838
  <div id="footer">
839
- Generated on Mon Feb 14 14:34:40 2022 by
839
+ Generated on Wed Feb 16 07:23:35 2022 by
840
840
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
841
841
  0.9.27 (ruby-3.0.1).
842
842
  </div>
@@ -925,7 +925,7 @@ other_hash - the other hash whose values will be persisted after the merge</p>
925
925
  </div>
926
926
 
927
927
  <div id="footer">
928
- Generated on Mon Feb 14 14:34:40 2022 by
928
+ Generated on Wed Feb 16 07:23:35 2022 by
929
929
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
930
930
  0.9.27 (ruby-3.0.1).
931
931
  </div>
@@ -4766,7 +4766,7 @@ json, or text)</p>
4766
4766
  </div>
4767
4767
 
4768
4768
  <div id="footer">
4769
- Generated on Mon Feb 14 14:34:40 2022 by
4769
+ Generated on Wed Feb 16 07:23:35 2022 by
4770
4770
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4771
4771
  0.9.27 (ruby-3.0.1).
4772
4772
  </div>
data/docs/doc/Doing.html CHANGED
@@ -119,7 +119,7 @@
119
119
  <dt id="VERSION-constant" class="">VERSION =
120
120
 
121
121
  </dt>
122
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>2.1.29</span><span class='tstring_end'>&#39;</span></span></pre></dd>
122
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>2.1.30</span><span class='tstring_end'>&#39;</span></span></pre></dd>
123
123
 
124
124
  </dl>
125
125
 
@@ -135,7 +135,7 @@
135
135
  </div>
136
136
 
137
137
  <div id="footer">
138
- Generated on Mon Feb 14 14:34:40 2022 by
138
+ Generated on Wed Feb 16 07:23:35 2022 by
139
139
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
140
140
  0.9.27 (ruby-3.0.1).
141
141
  </div>
@@ -225,7 +225,7 @@ has content</p>
225
225
  </div>
226
226
 
227
227
  <div id="footer">
228
- Generated on Mon Feb 14 14:34:40 2022 by
228
+ Generated on Wed Feb 16 07:23:35 2022 by
229
229
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
230
230
  0.9.27 (ruby-3.0.1).
231
231
  </div>
@@ -175,7 +175,7 @@
175
175
  </div>
176
176
 
177
177
  <div id="footer">
178
- Generated on Mon Feb 14 14:34:40 2022 by
178
+ Generated on Wed Feb 16 07:23:35 2022 by
179
179
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
180
180
  0.9.27 (ruby-3.0.1).
181
181
  </div>
@@ -753,7 +753,7 @@
753
753
  </div>
754
754
 
755
755
  <div id="footer">
756
- Generated on Mon Feb 14 14:34:40 2022 by
756
+ Generated on Wed Feb 16 07:23:35 2022 by
757
757
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
758
758
  0.9.27 (ruby-3.0.1).
759
759
  </div>
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Mon Feb 14 14:34:40 2022 by
110
+ Generated on Wed Feb 16 07:23:35 2022 by
111
111
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.27 (ruby-3.0.1).
113
113
  </div>
data/docs/doc/GLI.html CHANGED
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
 
109
109
  <div id="footer">
110
- Generated on Mon Feb 14 14:34:40 2022 by
110
+ Generated on Wed Feb 16 07:23:35 2022 by
111
111
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
112
  0.9.27 (ruby-3.0.1).
113
113
  </div>
data/docs/doc/Hash.html CHANGED
@@ -516,7 +516,7 @@
516
516
  </div>
517
517
 
518
518
  <div id="footer">
519
- Generated on Mon Feb 14 14:34:40 2022 by
519
+ Generated on Wed Feb 16 07:23:35 2022 by
520
520
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
521
521
  0.9.27 (ruby-3.0.1).
522
522
  </div>
data/docs/doc/Object.html CHANGED
@@ -193,7 +193,7 @@ has content</p>
193
193
  </div>
194
194
 
195
195
  <div id="footer">
196
- Generated on Mon Feb 14 14:34:40 2022 by
196
+ Generated on Wed Feb 16 07:23:35 2022 by
197
197
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
198
198
  0.9.27 (ruby-3.0.1).
199
199
  </div>
@@ -162,7 +162,7 @@
162
162
  </div>
163
163
 
164
164
  <div id="footer">
165
- Generated on Mon Feb 14 14:34:40 2022 by
165
+ Generated on Wed Feb 16 07:23:35 2022 by
166
166
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
167
167
  0.9.27 (ruby-3.0.1).
168
168
  </div>
@@ -293,7 +293,7 @@
293
293
  </div>
294
294
 
295
295
  <div id="footer">
296
- Generated on Mon Feb 14 14:34:40 2022 by
296
+ Generated on Wed Feb 16 07:23:35 2022 by
297
297
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
298
298
  0.9.27 (ruby-3.0.1).
299
299
  </div>
@@ -485,7 +485,7 @@
485
485
  </div>
486
486
 
487
487
  <div id="footer">
488
- Generated on Mon Feb 14 14:34:40 2022 by
488
+ Generated on Wed Feb 16 07:23:35 2022 by
489
489
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
490
490
  0.9.27 (ruby-3.0.1).
491
491
  </div>
@@ -126,7 +126,7 @@ A phrase clause generates an Elasticsearch match_phrase query.</p>
126
126
  </div>
127
127
 
128
128
  <div id="footer">
129
- Generated on Mon Feb 14 14:34:40 2022 by
129
+ Generated on Wed Feb 16 07:23:35 2022 by
130
130
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
131
131
  0.9.27 (ruby-3.0.1).
132
132
  </div>
@@ -114,7 +114,7 @@
114
114
  </div>
115
115
 
116
116
  <div id="footer">
117
- Generated on Mon Feb 14 14:34:40 2022 by
117
+ Generated on Wed Feb 16 07:23:35 2022 by
118
118
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
119
  0.9.27 (ruby-3.0.1).
120
120
  </div>
@@ -283,7 +283,7 @@
283
283
  </div>
284
284
 
285
285
  <div id="footer">
286
- Generated on Mon Feb 14 14:34:40 2022 by
286
+ Generated on Wed Feb 16 07:23:35 2022 by
287
287
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
288
288
  0.9.27 (ruby-3.0.1).
289
289
  </div>
@@ -105,7 +105,7 @@
105
105
  </div>
106
106
 
107
107
  <div id="footer">
108
- Generated on Mon Feb 14 14:34:40 2022 by
108
+ Generated on Wed Feb 16 07:23:35 2022 by
109
109
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
110
  0.9.27 (ruby-3.0.1).
111
111
  </div>
data/docs/doc/Status.html CHANGED
@@ -316,7 +316,7 @@
316
316
  </div>
317
317
 
318
318
  <div id="footer">
319
- Generated on Mon Feb 14 14:34:40 2022 by
319
+ Generated on Wed Feb 16 07:23:35 2022 by
320
320
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
321
321
  0.9.27 (ruby-3.0.1).
322
322
  </div>
data/docs/doc/String.html CHANGED
@@ -1129,7 +1129,7 @@ be recognized, e.g. %greensomething still finds
1129
1129
  </div>
1130
1130
 
1131
1131
  <div id="footer">
1132
- Generated on Mon Feb 14 14:34:40 2022 by
1132
+ Generated on Wed Feb 16 07:23:35 2022 by
1133
1133
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1134
1134
  0.9.27 (ruby-3.0.1).
1135
1135
  </div>
data/docs/doc/Symbol.html CHANGED
@@ -342,7 +342,7 @@
342
342
  </div>
343
343
 
344
344
  <div id="footer">
345
- Generated on Mon Feb 14 14:34:40 2022 by
345
+ Generated on Wed Feb 16 07:23:35 2022 by
346
346
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
347
347
  0.9.27 (ruby-3.0.1).
348
348
  </div>
data/docs/doc/Time.html CHANGED
@@ -240,7 +240,7 @@
240
240
  </div>
241
241
 
242
242
  <div id="footer">
243
- Generated on Mon Feb 14 14:34:40 2022 by
243
+ Generated on Wed Feb 16 07:23:35 2022 by
244
244
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
245
245
  0.9.27 (ruby-3.0.1).
246
246
  </div>
@@ -225,7 +225,7 @@ has content</p>
225
225
  </div>
226
226
 
227
227
  <div id="footer">
228
- Generated on Mon Feb 14 14:34:40 2022 by
228
+ Generated on Wed Feb 16 07:23:35 2022 by
229
229
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
230
230
  0.9.27 (ruby-3.0.1).
231
231
  </div>
data/docs/doc/_index.html CHANGED
@@ -587,7 +587,7 @@
587
587
  </div>
588
588
 
589
589
  <div id="footer">
590
- Generated on Mon Feb 14 14:34:40 2022 by
590
+ Generated on Wed Feb 16 07:23:35 2022 by
591
591
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
592
592
  0.9.27 (ruby-3.0.1).
593
593
  </div>
@@ -67,7 +67,7 @@ you&#39;ve done.</strong></p>
67
67
 
68
68
  <!--README-->
69
69
 
70
- <p>The current version of <code>doing</code> is &lt;!--VER--&gt;2.1.28&lt;!--END VER--&gt;.</p>
70
+ <p>The current version of <code>doing</code> is &lt;!--VER--&gt;2.1.29&lt;!--END VER--&gt;.</p>
71
71
 
72
72
  <p>Find all of the documentation in the <a href="https://github.com/ttscoff/doing/wiki">doing wiki</a>.</p>
73
73
 
@@ -149,7 +149,7 @@ with changes. Please target the <code>develop</code> branch with pull requests.<
149
149
  </div></div>
150
150
 
151
151
  <div id="footer">
152
- Generated on Mon Feb 14 14:34:40 2022 by
152
+ Generated on Wed Feb 16 07:23:35 2022 by
153
153
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
154
154
  0.9.27 (ruby-3.0.1).
155
155
  </div>
data/docs/doc/index.html CHANGED
@@ -67,7 +67,7 @@ you&#39;ve done.</strong></p>
67
67
 
68
68
  <!--README-->
69
69
 
70
- <p>The current version of <code>doing</code> is &lt;!--VER--&gt;2.1.28&lt;!--END VER--&gt;.</p>
70
+ <p>The current version of <code>doing</code> is &lt;!--VER--&gt;2.1.29&lt;!--END VER--&gt;.</p>
71
71
 
72
72
  <p>Find all of the documentation in the <a href="https://github.com/ttscoff/doing/wiki">doing wiki</a>.</p>
73
73
 
@@ -149,7 +149,7 @@ with changes. Please target the <code>develop</code> branch with pull requests.<
149
149
  </div></div>
150
150
 
151
151
  <div id="footer">
152
- Generated on Mon Feb 14 14:34:40 2022 by
152
+ Generated on Wed Feb 16 07:23:35 2022 by
153
153
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
154
154
  0.9.27 (ruby-3.0.1).
155
155
  </div>
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Mon Feb 14 14:34:40 2022 by
105
+ Generated on Wed Feb 16 07:23:35 2022 by
106
106
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
107
  0.9.27 (ruby-3.0.1).
108
108
  </div>
data/doing.gemspec CHANGED
@@ -44,5 +44,6 @@ spec = Gem::Specification.new do |s|
44
44
  s.add_runtime_dependency('tty-screen', '~> 0.8', '>= 0.8.1')
45
45
  s.add_runtime_dependency('parslet', '~> 2.0', '>= 2.0.0')
46
46
  s.add_runtime_dependency('plist', '~> 3.6', '>= 3.6.0')
47
+ s.add_runtime_dependency('sys-uname', '~> 1.2', '>= 1.2.2')
47
48
  # s.add_runtime_dependency('amatch', '~> 0.4', '>= 0.4.0')
48
49
  end
data/doing.rdoc CHANGED
@@ -5,7 +5,7 @@ record of what you've been doing, complete with tag-based time tracking. The
5
5
  command line tool allows you to add entries, annotate with tags and notes, and
6
6
  view your entries with myriad options, with a focus on a "natural" language syntax.
7
7
 
8
- v2.1.29
8
+ v2.1.30
9
9
 
10
10
  === Global Options
11
11
  === --config_file arg
@@ -440,10 +440,10 @@ Display a formatted list of changes in recent versions.
440
440
 
441
441
  Look up a specific version. Specify versions as "MAJ.MIN.PATCH", MIN
442
442
  and PATCH are optional. Use > or < to see all changes since or prior
443
- to a version.
443
+ to a version. Wildcards (*?) accepted unless using < or >.
444
444
 
445
445
  [Default Value] None
446
- [Must Match] (?-mix:^(?:(?:(?:[<>=]|p(?:rior)|b(?:efore)|o(?:lder)|s(?:ince)|a(?:fter)|n(?:ewer))? *[\d.*?]+ *)+|(?:[\d.]+ *-+ *[\d.]+))$)
446
+ [Must Match] (?-mix:^(?:(?:(?:[<>=]+|p(?:rior)|b(?:efore)|o(?:lder)|s(?:ince)|a(?:fter)|n(?:ewer))? *[0-9.*?]+ *)+|(?:[\d.]+ *(?:-|to)+ *[0-9.]+))$)
447
447
 
448
448
 
449
449
  ===== -s|--search arg
@@ -1530,7 +1530,7 @@ Show time totals at the end of output
1530
1530
  ==== Command: <tt>open </tt>
1531
1531
  Open the "doing" file in an editor
1532
1532
 
1533
- `doing open` defaults to using the editors->doing_file setting
1533
+ `doing open` defaults to using the editors.doing_file setting
1534
1534
  in /Users/ttscoff/.config/doing/config.yml (TaskPaper).
1535
1535
  ===== Options
1536
1536
  ===== -a|--app APP_NAME
@@ -36,6 +36,7 @@ module Doing
36
36
  fzf_args: [
37
37
  %(--preview='doing changes --render -l {1}'),
38
38
  '--disabled',
39
+ '--height=50',
39
40
  '--preview-window="right,70%"'
40
41
  ])
41
42
  end
@@ -65,18 +66,19 @@ module Doing
65
66
  def lookup(lookup_version)
66
67
  range = []
67
68
 
68
- if lookup_version =~ /([\d.]+) *-+ *([\d.]+)/
69
+ if lookup_version =~ /([\d.]+) *(?:-|to)+ *([\d.]+)/
69
70
  m = Regexp.last_match
70
71
  lookup("> #{m[1]}")
71
72
  lookup("< #{m[2]}")
72
- elsif lookup_version.scan(/[<>]/).count > 1
73
- params = lookup_version.scan(/[<>] [\d.]+/)
73
+ elsif lookup_version.scan(/(?:<=?|prior|before|older|>=?|since|after|newer) *[0-9*?.]+/).count > 1
74
+ params = lookup_version.scan(/(?:<=?|prior|before|older|>=?|since|after|newer) *[0-9*?.]+/)
74
75
  params.each { |query| lookup(query) }
75
76
  else
77
+ inclusive = lookup_version =~ /=/ ? true : false
76
78
  comp = case lookup_version
77
79
  when /(<|prior|before|older)/
78
80
  :older
79
- when />|since|after|newer/
81
+ when /(>|since|after|newer)/
80
82
  :newer
81
83
  else
82
84
  :equal
@@ -84,7 +86,7 @@ module Doing
84
86
  version = Version.new(lookup_version)
85
87
 
86
88
  @changes.select! do |change|
87
- change.version.compare(version, comp)
89
+ change.version.compare(version, comp, inclusive: inclusive)
88
90
  end
89
91
  end
90
92
  end
@@ -37,7 +37,7 @@ module Doing
37
37
  end
38
38
 
39
39
 
40
- def compare(other, comp)
40
+ def compare(other, comp, inclusive: false)
41
41
  case comp
42
42
  when :older
43
43
  if @maj <= other.maj
@@ -46,7 +46,11 @@ module Doing
46
46
  elsif @maj == other.maj && (other.min.nil? || @min < other.min)
47
47
  true
48
48
  elsif @maj == other.maj && @min == other.min
49
- other.patch.nil? ? false : @patch < other.patch
49
+ if other.patch.nil?
50
+ false
51
+ else
52
+ inclusive ? @patch <= other.patch : @patch < other.patch
53
+ end
50
54
  else
51
55
  false
52
56
  end
@@ -60,7 +64,11 @@ module Doing
60
64
  elsif @maj == other.maj && (other.min.nil? || @min > other.min)
61
65
  true
62
66
  elsif @maj == other.maj && @min == other.min
63
- other.patch.nil? || @patch >= other.patch
67
+ if other.patch.nil?
68
+ false
69
+ else
70
+ inclusive ? @patch >= other.patch : @patch > other.patch
71
+ end
64
72
  else
65
73
  false
66
74
  end
@@ -68,6 +68,11 @@ module Doing
68
68
 
69
69
  def parse_command(command)
70
70
  res = command.match(/^(?<cmd>[^, \t]+)(?<alias>(?:, [^, \t]+)*)?\s+- (?<desc>.*?)$/)
71
+ if res.nil?
72
+ Doing.logger.error('Completion:', "Error parsing #{command}")
73
+ return nil
74
+
75
+ end
71
76
  commands = [res['cmd']]
72
77
  commands.concat(res['alias'].split(/, /).delete_if(&:empty?)) if res['alias']
73
78
 
@@ -220,9 +220,9 @@ module Doing
220
220
  return nil unless create
221
221
  end
222
222
 
223
- resolved = real_path.count.positive? ? "Resolved #{real_path.join('->')}, but " : ''
223
+ resolved = real_path.count.positive? ? "Resolved #{real_path.join('.')}, but " : ''
224
224
  Doing.logger.log_now(:warn, "#{resolved}#{path} is unknown")
225
- new_path = [*real_path, path, *paths].join('->')
225
+ new_path = [*real_path, path, *paths].join('.')
226
226
  Doing.logger.log_now(:warn, "Continuing will create the path #{new_path}")
227
227
  res = Prompt.yn('Key path not found, create it?', default_response: true)
228
228
  raise InvalidArgument, 'Invalid key path' unless res
@@ -374,7 +374,7 @@ module Doing
374
374
  deprecated = true
375
375
  config['editors']['default'] ||= config['editor']
376
376
  config.delete('editor')
377
- Doing.logger.debug('Deprecated:', "config key 'editor' is now 'editors->default', please update your config.")
377
+ Doing.logger.debug('Deprecated:', "config key 'editor' is now 'editors.default', please update your config.")
378
378
  end
379
379
 
380
380
  if config.key?('config_editor_app') && !config['editors']['config']
@@ -382,7 +382,7 @@ module Doing
382
382
  config['editors']['config'] = config['config_editor_app']
383
383
  config.delete('config_editor_app')
384
384
  Doing.logger.debug('Deprecated:',
385
- "config key 'config_editor_app' is now 'editors->config', please update your config.")
385
+ "config key 'config_editor_app' is now 'editors.config', please update your config.")
386
386
  end
387
387
 
388
388
  if config.key?('editor_app') && !config['editors']['doing_file']
@@ -390,7 +390,7 @@ module Doing
390
390
  config['editors']['doing_file'] = config['editor_app']
391
391
  config.delete('editor_app')
392
392
  Doing.logger.debug('Deprecated:',
393
- "config key 'editor_app' is now 'editors->doing_file', please update your config.")
393
+ "config key 'editor_app' is now 'editors.doing_file', please update your config.")
394
394
  end
395
395
 
396
396
  Doing.logger.warn('Deprecated:', 'outdated keys found, please run `doing config --update`.') if deprecated
data/lib/doing/section.rb CHANGED
@@ -13,7 +13,7 @@ module Doing
13
13
  @original = if original.nil?
14
14
  "#{title}:"
15
15
  else
16
- original =~ /:(\s+@\S+(\(.*?\))?)*$/ ? original : "#{original}:"
16
+ original =~ /:(\s+@[^ (]+(\([^)]*\))?)*?$/ ? original : "#{original}:"
17
17
  end
18
18
  end
19
19
 
data/lib/doing/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Doing
2
- VERSION = '2.1.29'
2
+ VERSION = '2.1.30'
3
3
  end
data/lib/doing/wwid.rb CHANGED
@@ -77,7 +77,7 @@ module Doing
77
77
  lines.each do |line|
78
78
  next if line =~ /^\s*$/
79
79
 
80
- if line =~ /^(\S[\S ]+):\s*(@\S+\s*)*$/
80
+ if line =~ /^(\S[\S ]+):( .*)?$/
81
81
  section = Regexp.last_match(1)
82
82
  @content.add_section(Section.new(section, original: line), log: false)
83
83
  elsif line =~ /^\s*- (\d{4}-\d\d-\d\d \d\d:\d\d) \| (.*)/
data/lib/doing.rb CHANGED
@@ -22,6 +22,7 @@ require 'tty-which'
22
22
  require 'tty-markdown'
23
23
  require 'tty-reader'
24
24
  require 'tty-screen'
25
+ require 'sys-uname'
25
26
 
26
27
  require_relative 'doing/changelog'
27
28
  require_relative 'doing/hash'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doing
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.29
4
+ version: 2.1.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-14 00:00:00.000000000 Z
11
+ date: 2022-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: safe_yaml
@@ -426,6 +426,26 @@ dependencies:
426
426
  - - ">="
427
427
  - !ruby/object:Gem::Version
428
428
  version: 3.6.0
429
+ - !ruby/object:Gem::Dependency
430
+ name: sys-uname
431
+ requirement: !ruby/object:Gem::Requirement
432
+ requirements:
433
+ - - "~>"
434
+ - !ruby/object:Gem::Version
435
+ version: '1.2'
436
+ - - ">="
437
+ - !ruby/object:Gem::Version
438
+ version: 1.2.2
439
+ type: :runtime
440
+ prerelease: false
441
+ version_requirements: !ruby/object:Gem::Requirement
442
+ requirements:
443
+ - - "~>"
444
+ - !ruby/object:Gem::Version
445
+ version: '1.2'
446
+ - - ">="
447
+ - !ruby/object:Gem::Version
448
+ version: 1.2.2
429
449
  description: A tool for managing a TaskPaper-like file of recent activites. Perfect
430
450
  for the late-night hacker on too much caffeine to remember what they accomplished
431
451
  at 2 in the morning.