doing 2.1.19 → 2.1.24

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 +70 -0
  6. data/Gemfile.lock +11 -11
  7. data/README.md +1 -1
  8. data/Rakefile +12 -4
  9. data/bin/doing +297 -234
  10. data/docs/doc/Array.html +7 -30
  11. data/docs/doc/BooleanTermParser/Clause.html +3 -3
  12. data/docs/doc/BooleanTermParser/Operator.html +3 -3
  13. data/docs/doc/BooleanTermParser/Query.html +3 -3
  14. data/docs/doc/BooleanTermParser/QueryParser.html +3 -3
  15. data/docs/doc/BooleanTermParser/QueryTransformer.html +3 -3
  16. data/docs/doc/BooleanTermParser.html +3 -3
  17. data/docs/doc/Doing/Color.html +3 -3
  18. data/docs/doc/Doing/Completion.html +3 -3
  19. data/docs/doc/Doing/Configuration.html +6 -5
  20. data/docs/doc/Doing/Errors/DoingNoTraceError.html +3 -3
  21. data/docs/doc/Doing/Errors/DoingRuntimeError.html +3 -3
  22. data/docs/doc/Doing/Errors/DoingStandardError.html +3 -3
  23. data/docs/doc/Doing/Errors/EmptyInput.html +3 -3
  24. data/docs/doc/Doing/Errors/NoResults.html +3 -3
  25. data/docs/doc/Doing/Errors/PluginException.html +3 -3
  26. data/docs/doc/Doing/Errors/UserCancelled.html +3 -3
  27. data/docs/doc/Doing/Errors/WrongCommand.html +3 -3
  28. data/docs/doc/Doing/Errors.html +3 -3
  29. data/docs/doc/Doing/Hooks.html +3 -3
  30. data/docs/doc/Doing/Item.html +3 -3
  31. data/docs/doc/Doing/Items.html +3 -3
  32. data/docs/doc/Doing/LogAdapter.html +3 -3
  33. data/docs/doc/Doing/Note.html +3 -3
  34. data/docs/doc/Doing/Pager.html +3 -3
  35. data/docs/doc/Doing/Plugins.html +3 -3
  36. data/docs/doc/Doing/Prompt.html +7 -7
  37. data/docs/doc/Doing/Section.html +3 -3
  38. data/docs/doc/Doing/TemplateString.html +4 -4
  39. data/docs/doc/Doing/Types.html +201 -0
  40. data/docs/doc/Doing/Util/Backup.html +3 -3
  41. data/docs/doc/Doing/Util.html +4 -7
  42. data/docs/doc/Doing/WWID.html +66 -8
  43. data/docs/doc/Doing.html +6 -6
  44. data/docs/doc/GLI/Commands/Help.html +185 -0
  45. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +3 -3
  46. data/docs/doc/GLI/Commands.html +7 -5
  47. data/docs/doc/GLI.html +6 -4
  48. data/docs/doc/Hash.html +80 -16
  49. data/docs/doc/Numeric.html +3 -3
  50. data/docs/doc/PhraseParser/Operator.html +3 -3
  51. data/docs/doc/PhraseParser/PhraseClause.html +3 -3
  52. data/docs/doc/PhraseParser/Query.html +3 -3
  53. data/docs/doc/PhraseParser/QueryParser.html +3 -3
  54. data/docs/doc/PhraseParser/QueryTransformer.html +3 -3
  55. data/docs/doc/PhraseParser/TermClause.html +3 -3
  56. data/docs/doc/PhraseParser.html +3 -3
  57. data/docs/doc/Status.html +3 -3
  58. data/docs/doc/String.html +195 -26
  59. data/docs/doc/Symbol.html +3 -3
  60. data/docs/doc/Time.html +3 -3
  61. data/docs/doc/_index.html +22 -8
  62. data/docs/doc/class_list.html +1 -1
  63. data/docs/doc/file.README.html +4 -4
  64. data/docs/doc/frames.html +1 -1
  65. data/docs/doc/index.html +4 -4
  66. data/docs/doc/method_list.html +334 -270
  67. data/docs/doc/top-level-namespace.html +3 -3
  68. data/docs/index.md +1 -1
  69. data/doing.gemspec +1 -1
  70. data/doing.rdoc +173 -15
  71. data/lib/completion/_doing.zsh +20 -20
  72. data/lib/completion/doing.bash +37 -26
  73. data/lib/completion/doing.fish +116 -17
  74. data/lib/doing/array.rb +5 -4
  75. data/lib/doing/array_chronify.rb +4 -3
  76. data/lib/doing/changelog/change.rb +115 -0
  77. data/lib/doing/changelog/changes.rb +73 -0
  78. data/lib/doing/changelog/entry.rb +21 -0
  79. data/lib/doing/changelog/version.rb +97 -0
  80. data/lib/doing/changelog.rb +6 -0
  81. data/lib/doing/completion/fish_completion.rb +82 -12
  82. data/lib/doing/configuration.rb +17 -8
  83. data/lib/doing/hash.rb +25 -6
  84. data/lib/doing/help_monkey_patch.rb +31 -0
  85. data/lib/doing/hooks.rb +5 -1
  86. data/lib/doing/item.rb +10 -25
  87. data/lib/doing/items.rb +3 -1
  88. data/lib/doing/log_adapter.rb +1 -1
  89. data/lib/doing/pager.rb +2 -2
  90. data/lib/doing/plugins/export/dayone_export.rb +1 -1
  91. data/lib/doing/plugins/export/markdown_export.rb +1 -1
  92. data/lib/doing/plugins/export/template_export.rb +9 -3
  93. data/lib/doing/prompt.rb +4 -2
  94. data/lib/doing/string.rb +40 -11
  95. data/lib/doing/string_chronify.rb +56 -18
  96. data/lib/doing/template_string.rb +7 -0
  97. data/lib/doing/types.rb +25 -0
  98. data/lib/doing/util.rb +2 -1
  99. data/lib/doing/version.rb +1 -1
  100. data/lib/doing/wwid.rb +91 -67
  101. data/lib/doing.rb +2 -0
  102. data/lib/examples/commands/later.rb +32 -0
  103. data/lib/helpers/threaded_tests.rb +286 -0
  104. metadata +17 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c163209b980c6cbe1435e08c96f38b2879b4470c0556fff9f1a367eb63a73fd3
4
- data.tar.gz: 99e8e1e927234cd58a69ea8bacc43a3dcea842bda76663eed4d3b3d3e4ec4384
3
+ metadata.gz: 19f61c0a50ba9d72b2513bfa7c12e90a0b7d1dc63d0f478b7530a1a5be603418
4
+ data.tar.gz: 2239357f17bc9ac71e85447062bafae9e1e7e176fb8dfe41370f5ff621b400d0
5
5
  SHA512:
6
- metadata.gz: 3eb207208acdb7817eac2cf9991ccbf918947e6e0d81888ea8e33c106112e17e1290cf6c5b3712b1b126ba907bc9060a45caf140797eb1d4828e2a40671c0a6a
7
- data.tar.gz: c049f9c1d06055a65a03508462538e12d58d545e514c7f118aba9d5dcd8ef566ddff8a5c629f9e2e8de8f6c6f817447b3b9f5d19ce6858cacd988f034abe2b52
6
+ metadata.gz: 474677211983ca71287f1eef0bfe1de455e97f5123a4947ec5b533fd3148d0e21a27697337748ef1a3e20a422de0e0d0db3da9d243943ce37340be2375ea7e8f
7
+ data.tar.gz: 69f35f030a2b761e26ba9b81668c6f03abcd8f6e45400f07ddca4bc8c632cfdb4cc9f6b974837327dd0073f38aaf40cc349632200586832c4894314e5e434856
data/.yardoc/checksums CHANGED
@@ -1,30 +1,33 @@
1
- lib/doing/hash.rb c2960de9603dcf90be85ce423d9430de27f4f893
2
- lib/doing/item.rb 276880933fef8a4e1ef7a80e92f0f2b029f8a6e7
1
+ lib/doing/hash.rb 48b7ed855f33b2f10b4be41b09cee1efcb855b4b
2
+ lib/doing/item.rb b508a3da515f86981b30d61083e0dbb8549f894c
3
3
  lib/doing/note.rb bbadd9e34e6dc43a2af1110a5107f46c39d2547f
4
4
  lib/doing/time.rb 60183c3c31532ffea1440c766de0f90042e0fd10
5
- lib/doing/util.rb 33ad79455893213a0f2993edec0e158526657f09
6
- lib/doing/wwid.rb d19e494bc42eb031d8e5e570c76c12c1d180fc9e
7
- lib/doing/array.rb a17004c4811d239932254f9ed94a6eb10456c8e8
8
- lib/doing/hooks.rb acf6e0615ccf1949f84915c979297845242c1205
9
- lib/doing/items.rb 8cda7caaef10645893267262f5eee681e35046ce
10
- lib/doing/pager.rb b58e478b0cb8d400ddb97988ba741e3a127b53c3
5
+ lib/doing/util.rb 170f0eb8ac4cb0f47d517eb6a87f94850b7f1f41
6
+ lib/doing/wwid.rb 0c879394cb2ae617bda567b00dab17ff0b3c8254
7
+ lib/doing/array.rb b50c4604cb685dff87bc16bc20f21a5956b2b396
8
+ lib/doing/hooks.rb 9ffc1f719b06b18d64e548f52f7d2eaf6c21b06a
9
+ lib/doing/items.rb 69c762d337d9dad2b780cd08cc1c8785310e23ba
10
+ lib/doing/pager.rb a5dc55e1163d1b8476617e924a3aee4f9bf8be00
11
+ lib/doing/types.rb eed3ee1071ffa4a2f9caf50beb7523a24146cd1d
11
12
  lib/doing/colors.rb b7239a69e10c5df9378a5843441af5b93c1872f8
12
13
  lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
13
- lib/doing/prompt.rb 1c48923fc61d8714e3fc1f24b52fb8f358a8cc24
14
- lib/doing/string.rb d24f0972d0304e3d3bd3c38f14dd873165e7ebff
14
+ lib/doing/prompt.rb d241935b209e69a14c55a9c3a035f1751c576b4c
15
+ lib/doing/string.rb 443e238f1c4e205a61734b4be3d22f41388e9713
15
16
  lib/doing/symbol.rb 309799458a1bc715c2707307c9a62ab26086275e
16
17
  lib/doing/section.rb 206e119cf818f1e76798753e611180fe77bc299a
17
- lib/doing/version.rb f1ee23047a433e9ce6fe3cbae1c16d634e230cc0
18
+ lib/doing/version.rb 7a231babfa24987f2616244664899d7e39d293ea
19
+ lib/doing/changelog.rb f7d1bd424e63400ab0613ef3358e614fdf53e2b5
18
20
  lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
19
21
  lib/doing/completion.rb c658e7dc7898fb022a21b2bd77bedb958ca3b067
20
- lib/doing/log_adapter.rb 57d831259f48d0757307244d35b87e9ffa9099d9
22
+ lib/doing/log_adapter.rb 62ee66981878bd7285ccf0dfeca90a3d6d2af985
21
23
  lib/doing/util_backup.rb c13f71072581b1f0d2269853611ba09273261bf9
22
- lib/doing/configuration.rb b8667ff80c7c8830108e5089a5d309356af64151
24
+ lib/doing/configuration.rb 26c86add1bf9ab00bec24ba0c01774b5617fe2d9
23
25
  lib/doing/phrase_parser.rb 8f1789d7cf8326d8cc231b4a21505a93f8de20d2
24
- lib/doing/array_chronify.rb 5852b38643aef2e7e796aaf19b2c052a52ee5e2b
26
+ lib/doing/array_chronify.rb b39b40268b1751b18acf6bae4e53885818e45f62
25
27
  lib/doing/plugin_manager.rb cb16a82c3182ef7008359670ab96ff6b39270ccc
26
- lib/doing/string_chronify.rb 62635041c94482927fb661ac0caa2eb9bdd1c17c
27
- lib/doing/template_string.rb 5f6ef0495082339f2aa1b085ac4c1bdbfeb25be5
28
+ lib/doing/string_chronify.rb 888afa2175f3bb6cac0d68e3cb0f27cf162bb1bf
29
+ lib/doing/template_string.rb 736f6e7645160f75061db1856a62101238fe8c56
28
30
  lib/doing/numeric_chronify.rb bedeff62a95f8a8ff116e1bf0cc1d9eb2707a900
31
+ lib/doing/help_monkey_patch.rb 6aa514c249e519db507ae528de2604c18cc36045
29
32
  lib/doing/boolean_term_parser.rb 075977892ac5c6e3435cb8877d8b8b68eb1962e3
30
33
  lib/doing/markdown_document_listener.rb 45485f225068a34951ec818a345f642323e5ba35
data/.yardoc/object_types CHANGED
Binary file
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,73 @@
1
+ ### 2.1.24
2
+
3
+ 2022-01-22 17:27
4
+
5
+ #### IMPROVED
6
+
7
+ - Minor update to Fish completion script
8
+
9
+ #### FIXED
10
+
11
+ - 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
12
+
13
+ ### 2.1.23
14
+
15
+ 2022-01-22 15:52
16
+
17
+ #### NEW
18
+
19
+ - All display commands (except view) now accept `--config_template TEMPLATE_KEY` to override that commands default template.
20
+ - 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
21
+
22
+ #### IMPROVED
23
+
24
+ - 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).
25
+ - `doing tags` takes a MAX_COUNT argument to limit results when searching
26
+ - `doing tags --line` flag to output tags in a single line
27
+ - Mostly for my own use, `doing changes` (which views the changelog) now accepts `--lookup VERSION` and `--search SEARCH_PATTERN`
28
+ - `doing changes --lookup` accepts `"< 2.1 > 2.0"`, `"2.1.10-2.2"`, a specific version, or a version number with wildcards
29
+ - 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)
30
+
31
+ #### FIXED
32
+
33
+ - Running `--tag "@doing"` wouldn't work where `--tag "doing"` would. Now properly ignoring @ symbols
34
+
35
+ ### 2.1.22
36
+
37
+ 2022-01-21 14:53
38
+
39
+ ### 2.1.21
40
+
41
+ 2022-01-20 12:05
42
+
43
+ #### FIXED
44
+
45
+ - Custom types not available to custom commands
46
+
47
+ ### 2.1.20
48
+
49
+ 2022-01-20 11:49
50
+
51
+ #### NEW
52
+
53
+ - Autotag option for interactive `doing select` menu
54
+ - (Breaking change) Made the later command an optional plugin, see wiki for how to install (and create) custom commands
55
+ - 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).
56
+
57
+ #### IMPROVED
58
+
59
+ - Autotag improvements
60
+ - 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.
61
+
62
+ #### FIXED
63
+
64
+ - `doing again` should only mark the original repeating entry @done, not search for the last unfinished entry
65
+ - Error when using `doing finish --auto`
66
+ - `doing on wed` when today is wednesday not returning results
67
+ - Using `config set` with a false value deleted the key from config
68
+ - `config set` with true or false value was inserting a quoted string
69
+ - Entries were not being sorted (at all) within sections when writing the Doing file
70
+
1
71
  ### 2.1.19
2
72
 
3
73
  2022-01-18 08:40
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doing (2.1.19)
4
+ doing (2.1.24)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  deep_merge (~> 1.2, >= 1.2.1)
7
- gli (~> 2.19, >= 2.19.2)
7
+ gli (~> 2.20, >= 2.20.1)
8
8
  haml (~> 5.0.0, >= 5.0.0)
9
9
  parslet (~> 2.0, >= 2.0.0)
10
10
  plist (~> 3.6, >= 3.6.0)
@@ -19,12 +19,11 @@ PATH
19
19
  GEM
20
20
  remote: http://rubygems.org/
21
21
  specs:
22
- activesupport (6.1.4.1)
22
+ activesupport (7.0.1)
23
23
  concurrent-ruby (~> 1.0, >= 1.0.2)
24
24
  i18n (>= 1.6, < 2)
25
25
  minitest (>= 5.1)
26
26
  tzinfo (~> 2.0)
27
- zeitwerk (~> 2.3)
28
27
  aruba (1.0.4)
29
28
  childprocess (>= 2.0, < 5.0)
30
29
  contracts (~> 0.16.0)
@@ -68,8 +67,8 @@ GEM
68
67
  cucumber-cucumber-expressions (~> 10.3, >= 10.3.0)
69
68
  cucumber-messages (~> 13.0, >= 13.0.1)
70
69
  deep_merge (1.2.2)
71
- diff-lcs (1.4.4)
72
- ffi (1.15.4)
70
+ diff-lcs (1.5.0)
71
+ ffi (1.15.5)
73
72
  github-markup (4.0.0)
74
73
  gli (2.20.1)
75
74
  haml (5.0.4)
@@ -80,7 +79,7 @@ GEM
80
79
  kramdown (2.3.1)
81
80
  rexml
82
81
  middleware (0.1.0)
83
- minitest (5.14.4)
82
+ minitest (5.15.0)
84
83
  multi_test (0.1.2)
85
84
  parallel (1.21.0)
86
85
  parallel_tests (3.7.3)
@@ -100,7 +99,7 @@ GEM
100
99
  redcarpet (3.5.1)
101
100
  rexml (3.2.5)
102
101
  rouge (3.27.0)
103
- rspec-expectations (3.10.1)
102
+ rspec-expectations (3.10.2)
104
103
  diff-lcs (>= 1.2.0, < 2.0)
105
104
  rspec-support (~> 3.10.0)
106
105
  rspec-support (3.10.3)
@@ -115,7 +114,7 @@ GEM
115
114
  temple (0.8.2)
116
115
  test-unit (3.4.9)
117
116
  power_assert
118
- thor (1.1.0)
117
+ thor (1.2.1)
119
118
  thread_safe (0.3.6)
120
119
  tilt (2.0.10)
121
120
  tty-color (0.6.0)
@@ -145,9 +144,10 @@ GEM
145
144
  concurrent-ruby (~> 1.0)
146
145
  unicode-display_width (2.1.0)
147
146
  unicode_utils (1.4.0)
147
+ webrick (1.7.0)
148
148
  wisper (2.0.1)
149
- yard (0.9.26)
150
- zeitwerk (2.5.1)
149
+ yard (0.9.27)
150
+ webrick (~> 1.7.0)
151
151
 
152
152
  PLATFORMS
153
153
  ruby
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.18<!--END VER-->.
11
+ The current version of `doing` is <!--VER-->2.1.22<!--END VER-->.
12
12
 
13
13
  Find all of the documentation in the [doing wiki][wiki].
14
14
 
data/Rakefile CHANGED
@@ -37,7 +37,6 @@ end
37
37
  # end
38
38
 
39
39
  namespace :test do
40
-
41
40
  FileList['test/*_test.rb'].each do |rakefile|
42
41
  test_name = File.basename(rakefile, '.rb').sub(/^.*?_(.*?)_.*?$/, '\1')
43
42
 
@@ -51,6 +50,15 @@ namespace :test do
51
50
  end
52
51
  end
53
52
 
53
+ desc 'Run all tests, threaded'
54
+ task :test, :pattern, :threads, :max_tests do |_, args|
55
+ args.with_defaults(pattern: '*', threads: 8, max_tests: 0)
56
+ pattern = args[:pattern] =~ /(n[iu]ll?|0|\.)/i ? '*' : args[:pattern]
57
+
58
+ require_relative 'lib/helpers/threaded_tests'
59
+ ThreadedTests.new.run(pattern: pattern, max_threads: args[:threads].to_i, max_tests: args[:max_tests])
60
+ end
61
+
54
62
  desc 'Run tests in Docker'
55
63
  task :dockertest, :version, :login do |_, args|
56
64
  args.with_defaults(version: '2.7', login: false)
@@ -85,8 +93,8 @@ task :dockertest, :version, :login do |_, args|
85
93
  # puts commit&.empty? ? "Error commiting Docker tag #{img}" : "Committed Docker tag #{img}"
86
94
  end
87
95
 
88
- desc 'Run all tests'
89
- task test: 'test:default'
96
+ # desc 'Run all tests'
97
+ # task test: 'test:default'
90
98
 
91
99
  desc 'Run one test verbosely'
92
100
  task :test_one, :test do |_, args|
@@ -151,4 +159,4 @@ task :bump, :type do |_, args|
151
159
  File.open(version_file, 'w+') { |f| f.puts content }
152
160
  end
153
161
 
154
- task default: %i[clobber yard package]
162
+ task default: %i[test clobber package]