doing 2.1.21 → 2.1.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +19 -16
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/CHANGELOG.md +51 -13
  6. data/Gemfile.lock +1 -1
  7. data/README.md +1 -1
  8. data/Rakefile +6 -3
  9. data/bin/doing +254 -103
  10. data/docs/doc/Array.html +74 -34
  11. data/docs/doc/BooleanTermParser/Clause.html +5 -5
  12. data/docs/doc/BooleanTermParser/Operator.html +4 -4
  13. data/docs/doc/BooleanTermParser/Query.html +8 -8
  14. data/docs/doc/BooleanTermParser/QueryParser.html +2 -2
  15. data/docs/doc/BooleanTermParser/QueryTransformer.html +2 -2
  16. data/docs/doc/BooleanTermParser.html +1 -1
  17. data/docs/doc/Doing/Color.html +4 -4
  18. data/docs/doc/Doing/Completion.html +2 -2
  19. data/docs/doc/Doing/Configuration.html +16 -18
  20. data/docs/doc/Doing/Errors/DoingNoTraceError.html +2 -2
  21. data/docs/doc/Doing/Errors/DoingRuntimeError.html +2 -2
  22. data/docs/doc/Doing/Errors/DoingStandardError.html +2 -2
  23. data/docs/doc/Doing/Errors/EmptyInput.html +2 -2
  24. data/docs/doc/Doing/Errors/NoResults.html +2 -2
  25. data/docs/doc/Doing/Errors/PluginException.html +3 -3
  26. data/docs/doc/Doing/Errors/UserCancelled.html +2 -2
  27. data/docs/doc/Doing/Errors/WrongCommand.html +2 -2
  28. data/docs/doc/Doing/Errors.html +1 -1
  29. data/docs/doc/Doing/Hooks.html +6 -6
  30. data/docs/doc/Doing/Item.html +50 -16
  31. data/docs/doc/Doing/Items.html +10 -10
  32. data/docs/doc/Doing/LogAdapter.html +24 -24
  33. data/docs/doc/Doing/Note.html +7 -7
  34. data/docs/doc/Doing/Pager.html +4 -4
  35. data/docs/doc/Doing/Plugins.html +7 -7
  36. data/docs/doc/Doing/Prompt.html +16 -16
  37. data/docs/doc/Doing/Section.html +6 -6
  38. data/docs/doc/Doing/TemplateString.html +8 -8
  39. data/docs/doc/Doing/Types.html +206 -0
  40. data/docs/doc/Doing/Util/Backup.html +10 -10
  41. data/docs/doc/Doing/Util.html +16 -19
  42. data/docs/doc/Doing/WWID.html +65 -53
  43. data/docs/doc/Doing.html +4 -4
  44. data/docs/doc/GLI/Commands/Help.html +185 -0
  45. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +17 -17
  46. data/docs/doc/GLI/Commands.html +5 -3
  47. data/docs/doc/GLI.html +4 -2
  48. data/docs/doc/Hash.html +119 -21
  49. data/docs/doc/Numeric.html +5 -5
  50. data/docs/doc/PhraseParser/Operator.html +4 -4
  51. data/docs/doc/PhraseParser/PhraseClause.html +5 -5
  52. data/docs/doc/PhraseParser/Query.html +10 -10
  53. data/docs/doc/PhraseParser/QueryParser.html +2 -2
  54. data/docs/doc/PhraseParser/QueryTransformer.html +2 -2
  55. data/docs/doc/PhraseParser/TermClause.html +5 -5
  56. data/docs/doc/PhraseParser.html +1 -1
  57. data/docs/doc/Status.html +7 -7
  58. data/docs/doc/String.html +206 -51
  59. data/docs/doc/Symbol.html +8 -8
  60. data/docs/doc/Time.html +6 -6
  61. data/docs/doc/_index.html +51 -14
  62. data/docs/doc/class_list.html +1 -1
  63. data/docs/doc/file.README.html +2 -2
  64. data/docs/doc/index.html +2 -2
  65. data/docs/doc/method_list.html +348 -252
  66. data/docs/doc/top-level-namespace.html +2 -93
  67. data/docs/index.md +1 -1
  68. data/doing.rdoc +177 -20
  69. data/example_plugin.rb +2 -2
  70. data/lib/completion/_doing.zsh +24 -24
  71. data/lib/completion/doing.bash +31 -20
  72. data/lib/completion/doing.fish +32 -10
  73. data/lib/doing/array.rb +5 -4
  74. data/lib/doing/array_chronify.rb +4 -3
  75. data/lib/doing/changelog/change.rb +115 -0
  76. data/lib/doing/changelog/changes.rb +73 -0
  77. data/lib/doing/changelog/entry.rb +21 -0
  78. data/lib/doing/changelog/version.rb +97 -0
  79. data/lib/doing/changelog.rb +6 -0
  80. data/lib/doing/completion/fish_completion.rb +2 -1
  81. data/lib/doing/configuration.rb +20 -14
  82. data/lib/doing/good.rb +64 -0
  83. data/lib/doing/hash.rb +28 -5
  84. data/lib/doing/help_monkey_patch.rb +31 -0
  85. data/lib/doing/hooks.rb +8 -4
  86. data/lib/doing/item.rb +24 -35
  87. data/lib/doing/log_adapter.rb +1 -1
  88. data/lib/doing/pager.rb +1 -1
  89. data/lib/doing/plugins/export/template_export.rb +9 -3
  90. data/lib/doing/plugins/import/calendar_import.rb +1 -1
  91. data/lib/doing/plugins/import/doing_import.rb +1 -1
  92. data/lib/doing/plugins/import/timing_import.rb +1 -1
  93. data/lib/doing/prompt.rb +4 -2
  94. data/lib/doing/string.rb +30 -12
  95. data/lib/doing/string_chronify.rb +1 -1
  96. data/lib/doing/template_string.rb +9 -2
  97. data/lib/doing/types.rb +23 -16
  98. data/lib/doing/util.rb +12 -11
  99. data/lib/doing/version.rb +1 -1
  100. data/lib/doing/wwid.rb +65 -46
  101. data/lib/doing.rb +3 -0
  102. data/lib/helpers/threaded_tests.rb +106 -99
  103. data/lib/helpers/threaded_tests_string.rb +50 -0
  104. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '06493492d12846e35ddd52120caa601f41113738aa0f927425136334c33f6d4f'
4
- data.tar.gz: 15b0c5c756b8961a162d16b026982a39b02a3e62a7a77f5af96bd7b29551c190
3
+ metadata.gz: 1210e69ba2e32a9e2c91d5e98c203f062c6b439bb37be2e675a8078a2ca34927
4
+ data.tar.gz: 95b84f63985564c18f4c352fdeb1dfc3ae02b1f78417159d83d354d87ab8df51
5
5
  SHA512:
6
- metadata.gz: f95259d7235e5f94d7d7b7f7aad0cd60be16ba56faf861d25bc5977f671a8150f6c57bb2c6d4db46cd855d0977401092cfc09985591d79a52bb97c93f766c866
7
- data.tar.gz: 12ffe984153d6540a471b48db7e82c15bb7d4290ac4e0abca40b58c0a2fefe637ebe8381ad101015e07fc1c0161b7ccd58ecda034467eff581b04bb5fd7266ac
6
+ metadata.gz: 2b3a4fae4e4b530809b4d580e258dbd1e7d9382bec476725af3e8c551188bb85c071859db50d7c4686ab8c5208332850276c40c0411592546e43718ec07c1d56
7
+ data.tar.gz: 9808b2d41cd54c0a7ce52c714cf8111ad3cc81bbd1332acad49979f0ab9785b817911eb3bf9ca889a90fbd5ec9960974234611ce05fe96f35eb8f83479510588
data/.yardoc/checksums CHANGED
@@ -1,31 +1,34 @@
1
- lib/doing/hash.rb ec25fdc045980e2498f2f034f29639f57d2fcf0c
2
- lib/doing/item.rb 276880933fef8a4e1ef7a80e92f0f2b029f8a6e7
1
+ lib/doing/good.rb de4a18a87ac6d316037750944f91f0a3739adafc
2
+ lib/doing/hash.rb 321c27f54f332260c6adced7e451016b79574d38
3
+ lib/doing/item.rb 8aec1775784e73fd7181efca4482dac94d466619
3
4
  lib/doing/note.rb bbadd9e34e6dc43a2af1110a5107f46c39d2547f
4
5
  lib/doing/time.rb 60183c3c31532ffea1440c766de0f90042e0fd10
5
- lib/doing/util.rb 33ad79455893213a0f2993edec0e158526657f09
6
- lib/doing/wwid.rb bcbcd790a0e6ba7f0c8678bcc720c4960eff44bc
7
- lib/doing/array.rb a17004c4811d239932254f9ed94a6eb10456c8e8
8
- lib/doing/hooks.rb acf6e0615ccf1949f84915c979297845242c1205
6
+ lib/doing/util.rb 183577d0d9dee966dcf65645b312b17b958e46d6
7
+ lib/doing/wwid.rb 1410410c6072cc330baedea27e30a371ec7d3136
8
+ lib/doing/array.rb b50c4604cb685dff87bc16bc20f21a5956b2b396
9
+ lib/doing/hooks.rb 1b75ca731f9e8cb0b7a32785d6e496ee67a70d5c
9
10
  lib/doing/items.rb 69c762d337d9dad2b780cd08cc1c8785310e23ba
10
- lib/doing/pager.rb 7e8475372ff059dd027b880c29fb6a2424c885dc
11
- lib/doing/types.rb e6a01d98e358345ea61437ac4045f0da4a04750c
11
+ lib/doing/pager.rb a5dc55e1163d1b8476617e924a3aee4f9bf8be00
12
+ lib/doing/types.rb df05c1282d5f6b8efda68c6f289499683a5cc7d1
12
13
  lib/doing/colors.rb b7239a69e10c5df9378a5843441af5b93c1872f8
13
14
  lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
14
- lib/doing/prompt.rb 1c48923fc61d8714e3fc1f24b52fb8f358a8cc24
15
- lib/doing/string.rb 82dcd4c1b3847defa844f2162ffe0af863d60be2
15
+ lib/doing/prompt.rb d241935b209e69a14c55a9c3a035f1751c576b4c
16
+ lib/doing/string.rb 32fd00cfdfb01a664e194e70ffcad199cd217741
16
17
  lib/doing/symbol.rb 309799458a1bc715c2707307c9a62ab26086275e
17
18
  lib/doing/section.rb 206e119cf818f1e76798753e611180fe77bc299a
18
- lib/doing/version.rb ba9c781ef9a612fecc0e0e96da29f463467b777b
19
+ lib/doing/version.rb 7ee8c2f346a5dc0402119b87bb46593f3e368254
20
+ lib/doing/changelog.rb f7d1bd424e63400ab0613ef3358e614fdf53e2b5
19
21
  lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
20
22
  lib/doing/completion.rb c658e7dc7898fb022a21b2bd77bedb958ca3b067
21
- lib/doing/log_adapter.rb 57d831259f48d0757307244d35b87e9ffa9099d9
23
+ lib/doing/log_adapter.rb 62ee66981878bd7285ccf0dfeca90a3d6d2af985
22
24
  lib/doing/util_backup.rb c13f71072581b1f0d2269853611ba09273261bf9
23
- lib/doing/configuration.rb 0eed57f4e26b643863d20f78675e7152d3f4f697
25
+ lib/doing/configuration.rb 390e07a32720bd6db576bf6ad909529a9228de8d
24
26
  lib/doing/phrase_parser.rb 8f1789d7cf8326d8cc231b4a21505a93f8de20d2
25
- lib/doing/array_chronify.rb 5852b38643aef2e7e796aaf19b2c052a52ee5e2b
27
+ lib/doing/array_chronify.rb b39b40268b1751b18acf6bae4e53885818e45f62
26
28
  lib/doing/plugin_manager.rb cb16a82c3182ef7008359670ab96ff6b39270ccc
27
- lib/doing/string_chronify.rb 79d3926e586b2ddeef508d778f76c777bc4ee811
28
- lib/doing/template_string.rb 5f6ef0495082339f2aa1b085ac4c1bdbfeb25be5
29
+ lib/doing/string_chronify.rb 888afa2175f3bb6cac0d68e3cb0f27cf162bb1bf
30
+ lib/doing/template_string.rb 3b35970f2a68112192d2bb97c1298b90cf717b3d
29
31
  lib/doing/numeric_chronify.rb bedeff62a95f8a8ff116e1bf0cc1d9eb2707a900
32
+ lib/doing/help_monkey_patch.rb 6aa514c249e519db507ae528de2604c18cc36045
30
33
  lib/doing/boolean_term_parser.rb 075977892ac5c6e3435cb8877d8b8b68eb1962e3
31
34
  lib/doing/markdown_document_listener.rb 45485f225068a34951ec818a345f642323e5ba35
data/.yardoc/object_types CHANGED
Binary file
Binary file
data/CHANGELOG.md CHANGED
@@ -1,26 +1,64 @@
1
- ### 2.1.21
1
+ ### 2.1.25
2
2
 
3
- 2022-01-20 12:05
3
+ 2022-01-23 09:20
4
4
 
5
5
  #### NEW
6
6
 
7
- - Autotag option for interactive `doing select` menu
8
- - (Breaking change) Made the later command an optional plugin, see wiki for how to install (and create) custom commands
9
- - Config setting doing_file_sort (asc or desc) determines the sort order of entries in the actual Doing file. Has no effect on other operations, just allows you to store the file with newest entries at top (desc) or bottom (asc).
7
+ - `doing now --from 'TIME [to TIME]'` flag, sets start date and optionally adds dated @done tag.
10
8
 
11
9
  #### IMPROVED
12
10
 
13
- - Autotag improvements
14
- - If doing is run without a command but with arguments, execute it as if you'd run `doing now`, passing the arguments to that. So you can just write "doing this thing" instead of "doing now this thing", as long as the first word of the arguments is not a recognized command.
11
+ - :post_entry_updated hook now receives both the updated item (mutable) and a copy of the original item
12
+
13
+ #### FIXED
14
+
15
+ - Regex warning on Ruby 2.7
16
+ - :post_entry_added hook was receiving new items couldn't be modified
17
+
18
+ ### 2.1.24
19
+
20
+ 2022-01-22 17:27
21
+
22
+ #### IMPROVED
23
+
24
+ - Minor update to Fish completion script
25
+
26
+ #### FIXED
27
+
28
+ - Changelog formatting issue # Please enter the commit message for your changes. Lines starting # with '#' will be ignored, and an empty message aborts the commit. # # On branch develop # Your branch is ahead of 'origin/develop' by 3 commits. # # Changes to be committed: # modified: CHANGELOG.md # # ------------------------ >8 ------------------------ # Do not modify or remove the line above. # Everything below it will be ignored. diff --git a/CHANGELOG.md b/CHANGELOG.md index 962cc74..81bde33 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Minor update to Fish completion script +#### FIXED + +- Fix changelog issue + ### 2.1.23 2022-01-22 15:52
29
+
30
+ ### 2.1.23
31
+
32
+ 2022-01-22 15:52
33
+
34
+ #### NEW
35
+
36
+ - All display commands (except view) now accept `--config_template TEMPLATE_KEY` to override that commands default template.
37
+ - Display commands accept `--template`, which takes a template string containing %placeholders and overrides the commands default template output. Affects grep, last, on, recent, show, since, today, yesterday
38
+
39
+ #### IMPROVED
40
+
41
+ - With complete examples in the help output for most commands, `doing help` almost always requires scrolling up. It now automatically paginates using your system $PAGER (or best detected option).
42
+ - `doing tags` takes a MAX_COUNT argument to limit results when searching
43
+ - `doing tags --line` flag to output tags in a single line
44
+ - Mostly for my own use, `doing changes` (which views the changelog) now accepts `--lookup VERSION` and `--search SEARCH_PATTERN`
45
+ - `doing changes --lookup` accepts `"< 2.1 > 2.0"`, `"2.1.10-2.2"`, a specific version, or a version number with wildcards
46
+ - When registering hooks, you can pass an array to register a block for multiple events, assuming the events provide the same block arguments (like post_entry_added and post_entry_updated)
47
+
48
+ #### FIXED
49
+
50
+ - Running `--tag "@doing"` wouldn't work where `--tag "doing"` would. Now properly ignoring @ symbols
51
+
52
+ ### 2.1.22
53
+
54
+ 2022-01-21 14:53
55
+
56
+ ### 2.1.21
57
+
58
+ 2022-01-20 12:05
15
59
 
16
60
  #### FIXED
17
61
 
18
- - `doing again` should only mark the original repeating entry @done, not search for the last unfinished entry
19
- - Error when using `doing finish --auto`
20
- - `doing on wed` when today is wednesday not returning results
21
- - Using `config set` with a false value deleted the key from config
22
- - `config set` with true or false value was inserting a quoted string
23
- - Entries were not being sorted (at all) within sections when writing the Doing file
24
62
  - Custom types not available to custom commands
25
63
 
26
64
  ### 2.1.20
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doing (2.1.21)
4
+ doing (2.1.25)
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)
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.20<!--END VER-->.
11
+ The current version of `doing` is <!--VER-->2.1.24<!--END VER-->.
12
12
 
13
13
  Find all of the documentation in the [doing wiki][wiki].
14
14
 
data/Rakefile CHANGED
@@ -52,9 +52,11 @@ end
52
52
 
53
53
  desc 'Run all tests, threaded'
54
54
  task :test, :pattern, :threads, :max_tests do |_, args|
55
- args.with_defaults(pattern: '*', threads: 24, max_tests: 0)
55
+ args.with_defaults(pattern: '*', threads: 8, max_tests: 0)
56
+ pattern = args[:pattern] =~ /(n[iu]ll?|0|\.)/i ? '*' : args[:pattern]
57
+
56
58
  require_relative 'lib/helpers/threaded_tests'
57
- ThreadedTests.new.run(pattern: args[:pattern], max_threads: args[:threads].to_i, max_tests: args[:max_tests])
59
+ ThreadedTests.new.run(pattern: pattern, max_threads: args[:threads].to_i, max_tests: args[:max_tests])
58
60
  end
59
61
 
60
62
  desc 'Run tests in Docker'
@@ -75,10 +77,11 @@ task :dockertest, :version, :login do |_, args|
75
77
  file = 'Dockerfile'
76
78
  end
77
79
 
78
- exec "docker run -it #{img} /bin/bash -l" if args[:login]
79
80
 
80
81
  puts `docker build . --file #{file} -t #{img}`
81
82
 
83
+ exec "docker run -it #{img} /bin/bash -l" if args[:login]
84
+
82
85
  spinner = TTY::Spinner.new('[:spinner] Running tests ...', hide_cursor: true)
83
86
 
84
87
  spinner.auto_spin