doing 2.1.19 → 2.1.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/.yardoc/checksums +9 -8
  3. data/.yardoc/object_types +0 -0
  4. data/.yardoc/objects/root.dat +0 -0
  5. data/CHANGELOG.md +49 -0
  6. data/Gemfile.lock +11 -11
  7. data/README.md +1 -1
  8. data/Rakefile +10 -4
  9. data/bin/doing +123 -167
  10. data/docs/doc/Array.html +3 -3
  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 +4 -3
  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 +3 -3
  37. data/docs/doc/Doing/Section.html +3 -3
  38. data/docs/doc/Doing/TemplateString.html +4 -4
  39. data/docs/doc/Doing/Util/Backup.html +3 -3
  40. data/docs/doc/Doing/Util.html +3 -3
  41. data/docs/doc/Doing/WWID.html +66 -8
  42. data/docs/doc/Doing.html +4 -4
  43. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +3 -3
  44. data/docs/doc/GLI/Commands.html +3 -3
  45. data/docs/doc/GLI.html +3 -3
  46. data/docs/doc/Hash.html +3 -3
  47. data/docs/doc/Numeric.html +3 -3
  48. data/docs/doc/PhraseParser/Operator.html +3 -3
  49. data/docs/doc/PhraseParser/PhraseClause.html +3 -3
  50. data/docs/doc/PhraseParser/Query.html +3 -3
  51. data/docs/doc/PhraseParser/QueryParser.html +3 -3
  52. data/docs/doc/PhraseParser/QueryTransformer.html +3 -3
  53. data/docs/doc/PhraseParser/TermClause.html +3 -3
  54. data/docs/doc/PhraseParser.html +3 -3
  55. data/docs/doc/Status.html +3 -3
  56. data/docs/doc/String.html +94 -17
  57. data/docs/doc/Symbol.html +3 -3
  58. data/docs/doc/Time.html +3 -3
  59. data/docs/doc/_index.html +4 -4
  60. data/docs/doc/file.README.html +4 -4
  61. data/docs/doc/frames.html +1 -1
  62. data/docs/doc/index.html +4 -4
  63. data/docs/doc/method_list.html +300 -276
  64. data/docs/doc/top-level-namespace.html +94 -3
  65. data/doing.gemspec +1 -1
  66. data/doing.rdoc +15 -6
  67. data/lib/completion/_doing.zsh +5 -5
  68. data/lib/completion/doing.bash +8 -8
  69. data/lib/completion/doing.fish +93 -15
  70. data/lib/doing/completion/fish_completion.rb +80 -11
  71. data/lib/doing/configuration.rb +1 -0
  72. data/lib/doing/hash.rb +1 -1
  73. data/lib/doing/items.rb +3 -1
  74. data/lib/doing/pager.rb +1 -1
  75. data/lib/doing/plugins/export/dayone_export.rb +1 -1
  76. data/lib/doing/plugins/export/markdown_export.rb +1 -1
  77. data/lib/doing/string.rb +11 -0
  78. data/lib/doing/string_chronify.rb +55 -17
  79. data/lib/doing/types.rb +19 -0
  80. data/lib/doing/version.rb +1 -1
  81. data/lib/doing/wwid.rb +69 -42
  82. data/lib/examples/commands/later.rb +32 -0
  83. data/lib/helpers/threaded_tests.rb +250 -0
  84. metadata +9 -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: '06493492d12846e35ddd52120caa601f41113738aa0f927425136334c33f6d4f'
4
+ data.tar.gz: 15b0c5c756b8961a162d16b026982a39b02a3e62a7a77f5af96bd7b29551c190
5
5
  SHA512:
6
- metadata.gz: 3eb207208acdb7817eac2cf9991ccbf918947e6e0d81888ea8e33c106112e17e1290cf6c5b3712b1b126ba907bc9060a45caf140797eb1d4828e2a40671c0a6a
7
- data.tar.gz: c049f9c1d06055a65a03508462538e12d58d545e514c7f118aba9d5dcd8ef566ddff8a5c629f9e2e8de8f6c6f817447b3b9f5d19ce6858cacd988f034abe2b52
6
+ metadata.gz: f95259d7235e5f94d7d7b7f7aad0cd60be16ba56faf861d25bc5977f671a8150f6c57bb2c6d4db46cd855d0977401092cfc09985591d79a52bb97c93f766c866
7
+ data.tar.gz: 12ffe984153d6540a471b48db7e82c15bb7d4290ac4e0abca40b58c0a2fefe637ebe8381ad101015e07fc1c0161b7ccd58ecda034467eff581b04bb5fd7266ac
data/.yardoc/checksums CHANGED
@@ -1,29 +1,30 @@
1
- lib/doing/hash.rb c2960de9603dcf90be85ce423d9430de27f4f893
1
+ lib/doing/hash.rb ec25fdc045980e2498f2f034f29639f57d2fcf0c
2
2
  lib/doing/item.rb 276880933fef8a4e1ef7a80e92f0f2b029f8a6e7
3
3
  lib/doing/note.rb bbadd9e34e6dc43a2af1110a5107f46c39d2547f
4
4
  lib/doing/time.rb 60183c3c31532ffea1440c766de0f90042e0fd10
5
5
  lib/doing/util.rb 33ad79455893213a0f2993edec0e158526657f09
6
- lib/doing/wwid.rb d19e494bc42eb031d8e5e570c76c12c1d180fc9e
6
+ lib/doing/wwid.rb bcbcd790a0e6ba7f0c8678bcc720c4960eff44bc
7
7
  lib/doing/array.rb a17004c4811d239932254f9ed94a6eb10456c8e8
8
8
  lib/doing/hooks.rb acf6e0615ccf1949f84915c979297845242c1205
9
- lib/doing/items.rb 8cda7caaef10645893267262f5eee681e35046ce
10
- lib/doing/pager.rb b58e478b0cb8d400ddb97988ba741e3a127b53c3
9
+ lib/doing/items.rb 69c762d337d9dad2b780cd08cc1c8785310e23ba
10
+ lib/doing/pager.rb 7e8475372ff059dd027b880c29fb6a2424c885dc
11
+ lib/doing/types.rb e6a01d98e358345ea61437ac4045f0da4a04750c
11
12
  lib/doing/colors.rb b7239a69e10c5df9378a5843441af5b93c1872f8
12
13
  lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
13
14
  lib/doing/prompt.rb 1c48923fc61d8714e3fc1f24b52fb8f358a8cc24
14
- lib/doing/string.rb d24f0972d0304e3d3bd3c38f14dd873165e7ebff
15
+ lib/doing/string.rb 82dcd4c1b3847defa844f2162ffe0af863d60be2
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 ba9c781ef9a612fecc0e0e96da29f463467b777b
18
19
  lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
19
20
  lib/doing/completion.rb c658e7dc7898fb022a21b2bd77bedb958ca3b067
20
21
  lib/doing/log_adapter.rb 57d831259f48d0757307244d35b87e9ffa9099d9
21
22
  lib/doing/util_backup.rb c13f71072581b1f0d2269853611ba09273261bf9
22
- lib/doing/configuration.rb b8667ff80c7c8830108e5089a5d309356af64151
23
+ lib/doing/configuration.rb 0eed57f4e26b643863d20f78675e7152d3f4f697
23
24
  lib/doing/phrase_parser.rb 8f1789d7cf8326d8cc231b4a21505a93f8de20d2
24
25
  lib/doing/array_chronify.rb 5852b38643aef2e7e796aaf19b2c052a52ee5e2b
25
26
  lib/doing/plugin_manager.rb cb16a82c3182ef7008359670ab96ff6b39270ccc
26
- lib/doing/string_chronify.rb 62635041c94482927fb661ac0caa2eb9bdd1c17c
27
+ lib/doing/string_chronify.rb 79d3926e586b2ddeef508d778f76c777bc4ee811
27
28
  lib/doing/template_string.rb 5f6ef0495082339f2aa1b085ac4c1bdbfeb25be5
28
29
  lib/doing/numeric_chronify.rb bedeff62a95f8a8ff116e1bf0cc1d9eb2707a900
29
30
  lib/doing/boolean_term_parser.rb 075977892ac5c6e3435cb8877d8b8b68eb1962e3
data/.yardoc/object_types CHANGED
Binary file
Binary file
data/CHANGELOG.md CHANGED
@@ -1,3 +1,52 @@
1
+ ### 2.1.21
2
+
3
+ 2022-01-20 12:05
4
+
5
+ #### NEW
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).
10
+
11
+ #### IMPROVED
12
+
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.
15
+
16
+ #### FIXED
17
+
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
+ - Custom types not available to custom commands
25
+
26
+ ### 2.1.20
27
+
28
+ 2022-01-20 11:49
29
+
30
+ #### NEW
31
+
32
+ - Autotag option for interactive `doing select` menu
33
+ - (Breaking change) Made the later command an optional plugin, see wiki for how to install (and create) custom commands
34
+ - 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).
35
+
36
+ #### IMPROVED
37
+
38
+ - Autotag improvements
39
+ - 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.
40
+
41
+ #### FIXED
42
+
43
+ - `doing again` should only mark the original repeating entry @done, not search for the last unfinished entry
44
+ - Error when using `doing finish --auto`
45
+ - `doing on wed` when today is wednesday not returning results
46
+ - Using `config set` with a false value deleted the key from config
47
+ - `config set` with true or false value was inserting a quoted string
48
+ - Entries were not being sorted (at all) within sections when writing the Doing file
49
+
1
50
  ### 2.1.19
2
51
 
3
52
  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.21)
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.20<!--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,13 @@ 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: 24, max_tests: 0)
56
+ require_relative 'lib/helpers/threaded_tests'
57
+ ThreadedTests.new.run(pattern: args[:pattern], max_threads: args[:threads].to_i, max_tests: args[:max_tests])
58
+ end
59
+
54
60
  desc 'Run tests in Docker'
55
61
  task :dockertest, :version, :login do |_, args|
56
62
  args.with_defaults(version: '2.7', login: false)
@@ -85,8 +91,8 @@ task :dockertest, :version, :login do |_, args|
85
91
  # puts commit&.empty? ? "Error commiting Docker tag #{img}" : "Committed Docker tag #{img}"
86
92
  end
87
93
 
88
- desc 'Run all tests'
89
- task test: 'test:default'
94
+ # desc 'Run all tests'
95
+ # task test: 'test:default'
90
96
 
91
97
  desc 'Run one test verbosely'
92
98
  task :test_one, :test do |_, args|
@@ -151,4 +157,4 @@ task :bump, :type do |_, args|
151
157
  File.open(version_file, 'w+') { |f| f.puts content }
152
158
  end
153
159
 
154
- task default: %i[clobber yard package]
160
+ task default: %i[test clobber package]