doing 2.1.30 → 2.1.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/.irbrc +1 -0
  3. data/CHANGELOG.md +4972 -0
  4. data/Dockerfile-2.6 +3 -1
  5. data/Dockerfile-2.7 +4 -2
  6. data/Dockerfile-3.0 +3 -1
  7. data/Gemfile.lock +1 -67
  8. data/README.md +1 -1
  9. data/bash_profile +13 -0
  10. data/bin/commands/again.rb +1 -1
  11. data/bin/commands/archive.rb +3 -3
  12. data/bin/commands/cancel.rb +1 -1
  13. data/bin/commands/commands.rb +8 -8
  14. data/bin/commands/completion.rb +61 -19
  15. data/bin/commands/config.rb +22 -19
  16. data/bin/commands/done.rb +2 -2
  17. data/bin/commands/flag.rb +1 -1
  18. data/bin/commands/grep.rb +6 -33
  19. data/bin/commands/last.rb +1 -1
  20. data/bin/commands/meanwhile.rb +2 -2
  21. data/bin/commands/now.rb +2 -2
  22. data/bin/commands/on.rb +6 -16
  23. data/bin/commands/open.rb +1 -1
  24. data/bin/commands/recent.rb +5 -17
  25. data/bin/commands/rotate.rb +17 -0
  26. data/bin/commands/sections.rb +82 -7
  27. data/bin/commands/show.rb +8 -28
  28. data/bin/commands/since.rb +5 -16
  29. data/bin/commands/tag_dir.rb +27 -3
  30. data/bin/commands/today.rb +3 -28
  31. data/bin/commands/view.rb +3 -3
  32. data/bin/commands/yesterday.rb +3 -36
  33. data/bin/doing +29 -139
  34. data/docs/doc/Array.html +1 -1
  35. data/docs/doc/BooleanTermParser/Clause.html +1 -1
  36. data/docs/doc/BooleanTermParser/Operator.html +1 -1
  37. data/docs/doc/BooleanTermParser/Query.html +1 -1
  38. data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
  39. data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
  40. data/docs/doc/BooleanTermParser.html +1 -1
  41. data/docs/doc/Doing/Color.html +1 -1
  42. data/docs/doc/Doing/Completion.html +324 -4
  43. data/docs/doc/Doing/Configuration.html +3 -3
  44. data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
  45. data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
  46. data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
  47. data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
  48. data/docs/doc/Doing/Errors/NoResults.html +1 -1
  49. data/docs/doc/Doing/Errors/PluginException.html +1 -1
  50. data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
  51. data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
  52. data/docs/doc/Doing/Errors.html +1 -1
  53. data/docs/doc/Doing/Hooks.html +1 -1
  54. data/docs/doc/Doing/Item.html +144 -3
  55. data/docs/doc/Doing/Items.html +209 -1
  56. data/docs/doc/Doing/LogAdapter.html +1 -1
  57. data/docs/doc/Doing/Logger.html +1807 -0
  58. data/docs/doc/Doing/Note.html +109 -3
  59. data/docs/doc/Doing/Pager.html +1 -1
  60. data/docs/doc/Doing/Plugins.html +1 -1
  61. data/docs/doc/Doing/Prompt.html +1 -1
  62. data/docs/doc/Doing/Section.html +1 -1
  63. data/docs/doc/Doing/TemplateString.html +1 -1
  64. data/docs/doc/Doing/Types.html +3 -3
  65. data/docs/doc/Doing/Util/Backup.html +1 -1
  66. data/docs/doc/Doing/Util.html +1 -1
  67. data/docs/doc/Doing/WWID.html +8 -58
  68. data/docs/doc/Doing.html +4 -4
  69. data/docs/doc/FalseClass.html +1 -1
  70. data/docs/doc/GLI/Commands/Help.html +1 -1
  71. data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
  72. data/docs/doc/GLI/Commands.html +1 -1
  73. data/docs/doc/GLI.html +1 -1
  74. data/docs/doc/Hash.html +1 -1
  75. data/docs/doc/Object.html +1 -1
  76. data/docs/doc/PhraseParser/Operator.html +1 -1
  77. data/docs/doc/PhraseParser/PhraseClause.html +1 -1
  78. data/docs/doc/PhraseParser/Query.html +1 -1
  79. data/docs/doc/PhraseParser/QueryParser.html +1 -1
  80. data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
  81. data/docs/doc/PhraseParser/TermClause.html +1 -1
  82. data/docs/doc/PhraseParser.html +1 -1
  83. data/docs/doc/Status.html +1 -1
  84. data/docs/doc/String.html +1 -1
  85. data/docs/doc/Symbol.html +1 -1
  86. data/docs/doc/Time.html +1 -1
  87. data/docs/doc/TrueClass.html +1 -1
  88. data/docs/doc/_index.html +12 -10
  89. data/docs/doc/class_list.html +1 -1
  90. data/docs/doc/file.README.html +2 -2
  91. data/docs/doc/index.html +2 -2
  92. data/docs/doc/method_list.html +424 -304
  93. data/docs/doc/top-level-namespace.html +105 -1
  94. data/docs/index.md +1 -1
  95. data/doing.gemspec +24 -24
  96. data/doing.rdoc +259 -26
  97. data/example_plugin.rb +7 -5
  98. data/inputrc +57 -0
  99. data/lib/completion/_doing.zsh +48 -52
  100. data/lib/completion/doing.bash +14 -25
  101. data/lib/completion/doing.fish +41 -15
  102. data/lib/doing/add_options.rb +152 -0
  103. data/lib/doing/array/array.rb +16 -0
  104. data/lib/doing/changelog/changes.rb +1 -1
  105. data/lib/doing/chronify/string.rb +1 -1
  106. data/lib/doing/completion/bash_completion.rb +12 -51
  107. data/lib/doing/completion/fish_completion.rb +17 -53
  108. data/lib/doing/completion/zsh_completion.rb +21 -59
  109. data/lib/doing/completion.rb +203 -17
  110. data/lib/doing/configuration.rb +7 -1
  111. data/lib/doing/item.rb +30 -5
  112. data/lib/doing/items.rb +53 -5
  113. data/lib/doing/{log_adapter.rb → logger.rb} +8 -2
  114. data/lib/doing/note.rb +24 -8
  115. data/lib/doing/plugins/export/dayone_export.rb +8 -6
  116. data/lib/doing/plugins/export/html_export.rb +4 -4
  117. data/lib/doing/plugins/export/json_export.rb +19 -20
  118. data/lib/doing/plugins/export/markdown_export.rb +2 -2
  119. data/lib/doing/plugins/export/template_export.rb +4 -4
  120. data/lib/doing/plugins/import/calendar_import.rb +2 -2
  121. data/lib/doing/plugins/import/doing_import.rb +2 -2
  122. data/lib/doing/plugins/import/timing_import.rb +2 -2
  123. data/lib/doing/string/highlight.rb +3 -4
  124. data/lib/doing/string/string.rb +8 -0
  125. data/lib/doing/string/tags.rb +1 -1
  126. data/lib/doing/types.rb +2 -2
  127. data/lib/doing/util.rb +1 -1
  128. data/lib/doing/util_backup.rb +12 -12
  129. data/lib/doing/version.rb +1 -1
  130. data/lib/doing/wwid.rb +119 -120
  131. data/lib/doing.rb +61 -3
  132. data/lib/examples/commands/wiki.rb +27 -19
  133. data/lib/examples/plugins/capture_thing_import.rb +1 -1
  134. data/lib/helpers/threaded_tests.rb +2 -0
  135. data/scripts/setting_replace.rb +11 -0
  136. metadata +109 -124
  137. data/.yardoc/checksums +0 -29
  138. data/.yardoc/complete +0 -0
  139. data/.yardoc/object_types +0 -0
  140. data/.yardoc/objects/root.dat +0 -0
  141. data/.yardoc/proxy_types +0 -0
  142. data/bin/commands/add_section.rb +0 -15
@@ -97,12 +97,116 @@
97
97
 
98
98
 
99
99
 
100
+
101
+ <h2>
102
+ Instance Method Summary
103
+ <small><a href="#" class="summary_toggle">collapse</a></small>
104
+ </h2>
105
+
106
+ <ul class="summary">
107
+
108
+ <li class="public ">
109
+ <span class="summary_signature">
110
+
111
+ <a href="top-level-namespace.html#add_options-instance_method" title="#add_options (instance method)">#<strong>add_options</strong>(type, cmd) &#x21d2; Object </a>
112
+
113
+
114
+
115
+ </span>
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+ <span class="summary_desc"><div class='inline'><p>Add presets of flags and switches to a command.</p>
126
+ </div></span>
127
+
128
+ </li>
100
129
 
130
+
131
+ </ul>
132
+
133
+
134
+
135
+
136
+ <div id="instance_method_details" class="method_details_list">
137
+ <h2>Instance Method Details</h2>
138
+
139
+
140
+ <div class="method_details first">
141
+ <h3 class="signature first" id="add_options-instance_method">
142
+
143
+ #<strong>add_options</strong>(type, cmd) &#x21d2; <tt><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></tt>
144
+
145
+
146
+
147
+
148
+
149
+ </h3><div class="docstring">
150
+ <div class="discussion">
151
+ <p>Add presets of flags and switches to a command.</p>
152
+
153
+ <p>:add_entry =&gt; --noauto, --note, --ask, --editor, --back</p>
154
+
155
+ <p>:search =&gt; --search, --case, --exact</p>
156
+
157
+ <p>:tag_filter =&gt; --tag, --bool, --not, --val</p>
158
+
159
+ <p>:date_filter =&gt; --before, --after, --from</p>
160
+
161
+
162
+ </div>
163
+ </div>
164
+ <div class="tags">
165
+ <p class="tag_title">Parameters:</p>
166
+ <ul class="param">
167
+
168
+ <li>
169
+
170
+ <span class='name'>type</span>
171
+
172
+
173
+ <span class='type'>(<tt><span class='object_link'><a href="Symbol.html" title="Symbol (class)">Symbol</a></span></tt>)</span>
174
+
175
+
176
+
177
+ &mdash;
178
+ <div class='inline'><p>The type</p>
179
+ </div>
180
+
181
+ </li>
182
+
183
+ <li>
184
+
185
+ <span class='name'>cmd</span>
186
+
187
+
188
+ <span class='type'></span>
189
+
190
+
191
+
192
+ &mdash;
193
+ <div class='inline'><p>The GLI command to which the options will be added</p>
194
+ </div>
195
+
196
+ </li>
197
+
198
+ </ul>
199
+
200
+
201
+ </div>
202
+ </div>
203
+
204
+ </div>
101
205
 
102
206
  </div>
103
207
 
104
208
  <div id="footer">
105
- Generated on Wed Feb 16 07:23:35 2022 by
209
+ Generated on Sun Feb 20 09:36:51 2022 by
106
210
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
211
  0.9.27 (ruby-3.0.1).
108
212
  </div>
data/docs/index.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
 
10
10
 
11
- The current version of `doing` is 2.1.21.
11
+ The current version of `doing` is 2.1.31.
12
12
 
13
13
  Find all of the documentation in the [doing wiki][wiki].
14
14
 
data/doing.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  # Ensure we require the local version and not one we might have installed already
2
- require File.join([File.dirname(__FILE__),'lib','doing','version.rb'])
2
+ require File.join([File.dirname(__FILE__), 'lib', 'doing', 'version.rb'])
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = 'doing'
5
5
  s.version = Doing::VERSION
@@ -8,13 +8,14 @@ spec = Gem::Specification.new do |s|
8
8
  s.homepage = 'http://brettterpstra.com/project/doing/'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.summary = 'A command line tool for managing What Was I Doing reminders'
11
- s.description = 'A tool for managing a TaskPaper-like file of recent activites. Perfect for the late-night hacker on too much caffeine to remember what they accomplished at 2 in the morning.'
11
+ s.description = [
12
+ 'A tool for managing a TaskPaper-like file of recent activites.',
13
+ 'Perfect for the late-night hacker on too much caffeine to remember',
14
+ 'what they accomplished at 2 in the morning.'
15
+ ].join(' ')
12
16
  s.license = 'MIT'
13
- # Add your other files here if you make them
14
17
  s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
15
- `git ls-files -z`.split("\x0").reject { |f|
16
- f.strip =~ /^((test|spec|features)\/|\.git|buildnotes)/
17
- }
18
+ `git ls-files -z`.split("\x0").reject { |f| f.strip =~ %r{^((test|spec|features)/|\.git|buildnotes)} }
18
19
  end
19
20
  s.require_paths << 'lib'
20
21
 
@@ -22,28 +23,27 @@ spec = Gem::Specification.new do |s|
22
23
  s.rdoc_options << '--title' << 'doing' << '--main' << 'README.md' << '--markup' << 'markdown'
23
24
  s.bindir = 'bin'
24
25
  s.executables << 'doing'
25
- s.add_runtime_dependency('safe_yaml', '~> 1.0')
26
- s.add_development_dependency 'rake', '~> 13.0', '>= 13.0.1'
27
- s.add_development_dependency 'rdoc', '~> 6.3.1'
28
- s.add_development_dependency 'aruba', '~> 1.0.2'
29
- s.add_development_dependency 'test-unit', '~> 3.4.4'
30
- s.add_development_dependency 'yard', '~> 0.9', '>= 0.9.26'
31
- s.add_development_dependency 'redcarpet', '~> 3.5', '>= 3.5.1'
32
- s.add_development_dependency 'github-markup', '~> 4.0', '>= 4.0.0'
33
- s.add_development_dependency 'parallel_tests', '~> 3.7', '>= 3.7.3'
34
- s.add_development_dependency 'tty-spinner', '~> 0.9', '>= 0.9.3'
35
- s.add_runtime_dependency('tty-progressbar', '~> 0.18', '>= 0.18.2')
36
- s.add_runtime_dependency('gli', '~> 2.20', '>= 2.20.1')
37
- s.add_runtime_dependency('haml','~>5.0.0', '>= 5.0.0')
38
- s.add_runtime_dependency('chronic','~> 0.10', '>= 0.10.2')
26
+ s.add_development_dependency('github-markup', '~> 4.0', '>= 4.0.0')
27
+ s.add_development_dependency('parallel_tests', '~> 3.7', '>= 3.7.3')
28
+ s.add_development_dependency('rake', '~> 13.0', '>= 13.0.1')
29
+ s.add_development_dependency('rdoc', '~> 6.3.1')
30
+ s.add_development_dependency('redcarpet', '~> 3.5', '>= 3.5.1')
31
+ s.add_development_dependency('test-unit', '~> 3.4.4')
32
+ s.add_development_dependency('tty-spinner', '~> 0.9', '>= 0.9.3')
33
+ s.add_development_dependency('yard', '~> 0.9', '>= 0.9.26')
34
+ s.add_runtime_dependency('chronic', '~> 0.10', '>= 0.10.2')
39
35
  s.add_runtime_dependency('deep_merge', '~> 1.2', '>= 1.2.1')
36
+ s.add_runtime_dependency('gli', '~> 2.20', '>= 2.20.1')
37
+ s.add_runtime_dependency('haml', '~>5.0.0', '>= 5.0.0')
38
+ s.add_runtime_dependency('parslet', '~> 2.0', '>= 2.0.0')
39
+ s.add_runtime_dependency('plist', '~> 3.6', '>= 3.6.0')
40
+ s.add_runtime_dependency('safe_yaml', '~> 1.0')
41
+ s.add_runtime_dependency('sys-uname', '~> 1.2', '>= 1.2.2')
40
42
  s.add_runtime_dependency('tty-link', '~> 0.1', '>= 0.1.1')
41
- s.add_runtime_dependency('tty-which', '~> 0.5', '>= 0.5.0')
42
43
  s.add_runtime_dependency('tty-markdown', '~> 0.7', '>= 0.7.0')
44
+ s.add_runtime_dependency('tty-progressbar', '~> 0.18', '>= 0.18.2')
43
45
  s.add_runtime_dependency('tty-reader', '~> 0.9', '>= 0.9.0')
44
46
  s.add_runtime_dependency('tty-screen', '~> 0.8', '>= 0.8.1')
45
- s.add_runtime_dependency('parslet', '~> 2.0', '>= 2.0.0')
46
- s.add_runtime_dependency('plist', '~> 3.6', '>= 3.6.0')
47
- s.add_runtime_dependency('sys-uname', '~> 1.2', '>= 1.2.2')
47
+ s.add_runtime_dependency('tty-which', '~> 0.5', '>= 0.5.0')
48
48
  # s.add_runtime_dependency('amatch', '~> 0.4', '>= 0.4.0')
49
49
  end