doing 2.1.7 → 2.1.11
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.
- checksums.yaml +4 -4
- data/.yardoc/checksums +9 -9
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +39 -1
- data/Dockerfile +9 -0
- data/Dockerfile-2.6 +9 -0
- data/Dockerfile-2.7 +8 -0
- data/Dockerfile-3.0 +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/Rakefile +51 -6
- data/bin/doing +2098 -1944
- data/docs/doc/Array.html +1 -1
- data/docs/doc/BooleanTermParser/Clause.html +1 -1
- data/docs/doc/BooleanTermParser/Operator.html +1 -1
- data/docs/doc/BooleanTermParser/Query.html +1 -1
- data/docs/doc/BooleanTermParser/QueryParser.html +1 -1
- data/docs/doc/BooleanTermParser/QueryTransformer.html +1 -1
- data/docs/doc/BooleanTermParser.html +1 -1
- data/docs/doc/Doing/Color.html +1 -1
- data/docs/doc/Doing/Completion.html +1 -1
- data/docs/doc/Doing/Configuration.html +2 -2
- data/docs/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/docs/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/docs/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/docs/doc/Doing/Errors/EmptyInput.html +1 -1
- data/docs/doc/Doing/Errors/NoResults.html +1 -1
- data/docs/doc/Doing/Errors/PluginException.html +1 -1
- data/docs/doc/Doing/Errors/UserCancelled.html +1 -1
- data/docs/doc/Doing/Errors/WrongCommand.html +1 -1
- data/docs/doc/Doing/Errors.html +1 -1
- data/docs/doc/Doing/Hooks.html +1 -1
- data/docs/doc/Doing/Item.html +1 -1
- data/docs/doc/Doing/Items.html +1 -1
- data/docs/doc/Doing/LogAdapter.html +1 -1
- data/docs/doc/Doing/Note.html +1 -1
- data/docs/doc/Doing/Pager.html +1 -1
- data/docs/doc/Doing/Plugins.html +1 -1
- data/docs/doc/Doing/Prompt.html +132 -18
- data/docs/doc/Doing/Section.html +1 -1
- data/docs/doc/Doing/TemplateString.html +2 -2
- data/docs/doc/Doing/Util/Backup.html +79 -2
- data/docs/doc/Doing/Util.html +1 -1
- data/docs/doc/Doing/WWID.html +90 -77
- data/docs/doc/Doing.html +2 -2
- data/docs/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/docs/doc/GLI/Commands.html +1 -1
- data/docs/doc/GLI.html +1 -1
- data/docs/doc/Hash.html +1 -1
- data/docs/doc/PhraseParser/Operator.html +1 -1
- data/docs/doc/PhraseParser/PhraseClause.html +1 -1
- data/docs/doc/PhraseParser/Query.html +1 -1
- data/docs/doc/PhraseParser/QueryParser.html +1 -1
- data/docs/doc/PhraseParser/QueryTransformer.html +1 -1
- data/docs/doc/PhraseParser/TermClause.html +1 -1
- data/docs/doc/PhraseParser.html +1 -1
- data/docs/doc/Status.html +1 -1
- data/docs/doc/String.html +97 -1
- data/docs/doc/Symbol.html +36 -2
- data/docs/doc/Time.html +1 -1
- data/docs/doc/_index.html +1 -1
- data/docs/doc/file.README.html +2 -2
- data/docs/doc/index.html +2 -2
- data/docs/doc/method_list.html +299 -235
- data/docs/doc/top-level-namespace.html +1 -1
- data/docs/index.md +1 -1
- data/doing.rdoc +9 -2
- data/generate_completions.sh +1 -3
- data/lib/completion/_doing.zsh +1 -1
- data/lib/completion/doing.bash +2 -2
- data/lib/completion/doing.fish +2 -1
- data/lib/doing/completion/bash_completion.rb +2 -2
- data/lib/doing/completion/fish_completion.rb +2 -2
- data/lib/doing/completion/zsh_completion.rb +2 -2
- data/lib/doing/completion.rb +12 -2
- data/lib/doing/configuration.rb +19 -9
- data/lib/doing/hooks.rb +10 -5
- data/lib/doing/items.rb +16 -1
- data/lib/doing/log_adapter.rb +1 -0
- data/lib/doing/pager.rb +2 -20
- data/lib/doing/plugins/import/calendar_import.rb +5 -0
- data/lib/doing/plugins/import/doing_import.rb +2 -0
- data/lib/doing/plugins/import/timing_import.rb +5 -0
- data/lib/doing/prompt.rb +47 -8
- data/lib/doing/string.rb +20 -0
- data/lib/doing/symbol.rb +4 -0
- data/lib/doing/util_backup.rb +38 -8
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +211 -106
- data/lib/doing.rb +1 -0
- data/lib/examples/plugins/hooks.rb +31 -0
- data/scripts/generate_bash_completions.rb +2 -2
- data/scripts/sort_commands.rb +59 -0
- metadata +7 -3
- data/lib/helpers/fuzzyfilefinder +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1b58e7951de262f97661e6d4d5c451e87a27b513e1cb1eed5fd83ce9d2d28cf
|
|
4
|
+
data.tar.gz: 64021965e62aa9229f033f76d94a11bbb04ae409bbec7bb280df168448f0f33b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 933fb7fdc3c4cc71c2c4f149d28a530cfe77c2f6aa985919b6a37747ee87a5f86ea09622e4e38eec71d8031bb9e5086e4d4276ac399a4ffb637ac55321397e02
|
|
7
|
+
data.tar.gz: 838122157c1763e4c46b3121355e30d3ad2b580926e741b8bd47a6219e284a0f9ec0caa67c813b7c22be549ed14bf057db6c2ebc7607a013c3415a24b3784eed
|
data/.yardoc/checksums
CHANGED
|
@@ -3,23 +3,23 @@ lib/doing/item.rb fcf106fb43a1a979d5213c8ac47161d9f6d8635f
|
|
|
3
3
|
lib/doing/note.rb bbadd9e34e6dc43a2af1110a5107f46c39d2547f
|
|
4
4
|
lib/doing/time.rb 4411af636082d3abf6f6402a7d6c9038d96a9ead
|
|
5
5
|
lib/doing/util.rb 33ad79455893213a0f2993edec0e158526657f09
|
|
6
|
-
lib/doing/wwid.rb
|
|
6
|
+
lib/doing/wwid.rb bca76421c6d5f85fd6ff19063a79189b2accf255
|
|
7
7
|
lib/doing/array.rb a17004c4811d239932254f9ed94a6eb10456c8e8
|
|
8
8
|
lib/doing/hooks.rb 00feacdbf24dc67951c49ca8c1ca9a568441920e
|
|
9
9
|
lib/doing/items.rb 0860a0ac7269f59de994ae900c980e49359dc8d5
|
|
10
10
|
lib/doing/pager.rb 230c10dea5e9c68b5709a0f4cb088c76970965e4
|
|
11
11
|
lib/doing/colors.rb 9a628d48c821313c502deedc5b61a046a2bf79ef
|
|
12
12
|
lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
|
|
13
|
-
lib/doing/prompt.rb
|
|
14
|
-
lib/doing/string.rb
|
|
15
|
-
lib/doing/symbol.rb
|
|
13
|
+
lib/doing/prompt.rb a78b6f4488fe58b5653ce541a88d24559661459c
|
|
14
|
+
lib/doing/string.rb 7cbe3e0bd136c52f7b12d4d6133afe20fe204be2
|
|
15
|
+
lib/doing/symbol.rb 309799458a1bc715c2707307c9a62ab26086275e
|
|
16
16
|
lib/doing/section.rb 206e119cf818f1e76798753e611180fe77bc299a
|
|
17
|
-
lib/doing/version.rb
|
|
17
|
+
lib/doing/version.rb 08de25ee059d2e8eae4b3e1b3dac66e0d48461e6
|
|
18
18
|
lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
|
|
19
|
-
lib/doing/completion.rb
|
|
20
|
-
lib/doing/log_adapter.rb
|
|
21
|
-
lib/doing/util_backup.rb
|
|
22
|
-
lib/doing/configuration.rb
|
|
19
|
+
lib/doing/completion.rb c658e7dc7898fb022a21b2bd77bedb958ca3b067
|
|
20
|
+
lib/doing/log_adapter.rb 6cf0c9a405d17449643e54d35a04897b1da44eaf
|
|
21
|
+
lib/doing/util_backup.rb 4441a22bdc81e7bba2eb259c522ef819d1b99616
|
|
22
|
+
lib/doing/configuration.rb a9aad93aac92f4c5edcde3440654d9e836238364
|
|
23
23
|
lib/doing/phrase_parser.rb 8f1789d7cf8326d8cc231b4a21505a93f8de20d2
|
|
24
24
|
lib/doing/plugin_manager.rb cb16a82c3182ef7008359670ab96ff6b39270ccc
|
|
25
25
|
lib/doing/string_chronify.rb ccbb08389d2139c7121203f8585864e3026d1526
|
data/.yardoc/object_types
CHANGED
|
Binary file
|
data/.yardoc/objects/root.dat
CHANGED
|
Binary file
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,46 @@
|
|
|
1
|
-
### 2.1.
|
|
1
|
+
### 2.1.11
|
|
2
|
+
|
|
3
|
+
#### NEW
|
|
4
|
+
|
|
5
|
+
- Tag_dir command creates/updates .doingrc files in the current directory with default_tags values. Then all entries created within that directory (or subdirs) get tagged with that value.
|
|
6
|
+
- Synonym triggers allow `*` and `?` wildcards
|
|
7
|
+
- Add `--delete` flag for `doing last` to delete last entry
|
|
8
|
+
- --delete and --editor flags for `doing search`, batch edit and delete
|
|
9
|
+
- Example hook to add new entries containing a certain tag to Day One
|
|
10
|
+
- New hooks: pre_entry_add, post_entry_added, post_entry_updated, post_entry_removed, pre_export
|
|
11
|
+
|
|
12
|
+
#### IMPROVED
|
|
13
|
+
|
|
14
|
+
- If you need to use a colon in an autotag transform pattern, you can split with double colon, e.g. pattern::replacement
|
|
15
|
+
- Arrays defined in local configurations merge with main config instead of overwriting
|
|
16
|
+
|
|
17
|
+
#### FIXED
|
|
18
|
+
|
|
19
|
+
- `doing tags --interactive` wasn't showing menu
|
|
20
|
+
|
|
21
|
+
### 2.1.10
|
|
22
|
+
|
|
23
|
+
#### NEW
|
|
24
|
+
|
|
25
|
+
- --age (oldest|newest) option for view command
|
|
26
|
+
|
|
27
|
+
### 2.1.9
|
|
28
|
+
|
|
29
|
+
#### IMPROVED
|
|
30
|
+
|
|
31
|
+
- Only attempt to install fzf if it doesn't exist on the system. In case of errors, this means a user can manually install fzf and still be able to access --interactive options
|
|
32
|
+
|
|
33
|
+
#### FIXED
|
|
34
|
+
|
|
35
|
+
- Rotate command only archiving half of requested items
|
|
36
|
+
- Frozen string error in doing import plugin
|
|
37
|
+
|
|
38
|
+
### 2.1.8
|
|
2
39
|
|
|
3
40
|
#### NEW
|
|
4
41
|
|
|
5
42
|
- Hidden command `doing commands_accepting` which shows all commands that accept a given option, e.g. `doing commands_accepting search` shows all commands that take a search filter
|
|
43
|
+
- Hidden command `doing changelog` which outputs a paginated, formatted version of the change history.
|
|
6
44
|
|
|
7
45
|
#### IMPROVED
|
|
8
46
|
|
data/Dockerfile
ADDED
data/Dockerfile-2.6
ADDED
data/Dockerfile-2.7
ADDED
data/Dockerfile-3.0
ADDED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ _If you're one of the rare people like me who find this useful, feel free to [bu
|
|
|
6
6
|
|
|
7
7
|
<!--README-->
|
|
8
8
|
|
|
9
|
-
The current version of `doing` is <!--VER-->2.1.
|
|
9
|
+
The current version of `doing` is <!--VER-->2.1.10<!--END VER-->.
|
|
10
10
|
|
|
11
11
|
Find all of the documentation in the [doing wiki](https://github.com/ttscoff/doing/wiki).
|
|
12
12
|
|
data/Rakefile
CHANGED
|
@@ -8,6 +8,7 @@ require 'open3'
|
|
|
8
8
|
require 'yard'
|
|
9
9
|
require 'parallel_tests'
|
|
10
10
|
require 'parallel_tests/tasks'
|
|
11
|
+
require 'tty-spinner'
|
|
11
12
|
|
|
12
13
|
YARD::Rake::YardocTask.new do |t|
|
|
13
14
|
t.files = ['lib/doing/*.rb']
|
|
@@ -38,21 +39,54 @@ end
|
|
|
38
39
|
namespace :test do
|
|
39
40
|
|
|
40
41
|
FileList['test/*_test.rb'].each do |rakefile|
|
|
41
|
-
test_name = File.basename(rakefile, '.rb').sub(
|
|
42
|
+
test_name = File.basename(rakefile, '.rb').sub(/^.*?_(.*?)_.*?$/, '\1')
|
|
42
43
|
|
|
43
44
|
Rake::TestTask.new(:"#{test_name}") do |t|
|
|
44
45
|
t.libs << ['test', 'test/helpers']
|
|
45
46
|
t.pattern = rakefile
|
|
46
47
|
t.verbose = ENV['VERBOSE'] =~ /(true|1)/i ? true : false
|
|
47
48
|
end
|
|
48
|
-
#Define default task for :test
|
|
49
|
-
task :
|
|
49
|
+
# Define default task for :test
|
|
50
|
+
task default: test_name
|
|
50
51
|
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
desc 'Run tests in Docker'
|
|
55
|
+
task :dockertest, :version, :login do |_, args|
|
|
56
|
+
args.with_defaults(version: '2.7', login: false)
|
|
57
|
+
case args[:version]
|
|
58
|
+
when /^3/
|
|
59
|
+
img = 'doingtest3'
|
|
60
|
+
file = 'Dockerfile-3.0'
|
|
61
|
+
when /6$/
|
|
62
|
+
img = 'doingtest26'
|
|
63
|
+
file = 'Dockerfile-2.6'
|
|
64
|
+
when /(^2|7$)/
|
|
65
|
+
img = 'doingtest27'
|
|
66
|
+
file = 'Dockerfile-2.7'
|
|
67
|
+
else
|
|
68
|
+
img = 'doingtest'
|
|
69
|
+
file = 'Dockerfile'
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
exec "docker run -it #{img} /bin/bash -l" if args[:login]
|
|
51
73
|
|
|
74
|
+
puts `docker build . --file #{file} -t #{img}`
|
|
75
|
+
|
|
76
|
+
spinner = TTY::Spinner.new('[:spinner] Running tests ...', hide_cursor: true)
|
|
77
|
+
|
|
78
|
+
spinner.auto_spin
|
|
79
|
+
res = `docker run --rm -it #{img}`
|
|
80
|
+
# commit = puts `bash -c "docker commit $(docker ps -a|grep #{img}|awk '{print $1}'|head -n 1) #{img}"`.strip
|
|
81
|
+
spinner.success
|
|
82
|
+
spinner.stop
|
|
83
|
+
|
|
84
|
+
puts res
|
|
85
|
+
# puts commit&.empty? ? "Error commiting Docker tag #{img}" : "Committed Docker tag #{img}"
|
|
52
86
|
end
|
|
53
87
|
|
|
54
|
-
desc
|
|
55
|
-
task :
|
|
88
|
+
desc 'Run all tests'
|
|
89
|
+
task test: 'test:default'
|
|
56
90
|
|
|
57
91
|
desc 'Run one test verbosely'
|
|
58
92
|
task :test_one, :test do |_, args|
|
|
@@ -73,7 +107,18 @@ end
|
|
|
73
107
|
|
|
74
108
|
desc 'Development version check'
|
|
75
109
|
task :ver do
|
|
76
|
-
|
|
110
|
+
gver = `git ver`
|
|
111
|
+
cver = IO.read(File.join(File.dirname(__FILE__), 'CHANGELOG.md')).match(/^#+ (\d+\.\d+\.\d+(\w+)?)/)[1]
|
|
112
|
+
res = `grep VERSION lib/doing/version.rb`
|
|
113
|
+
version = res.match(/VERSION *= *['"](\d+\.\d+\.\d+(\w+)?)/)[1]
|
|
114
|
+
puts "git tag: #{gver}"
|
|
115
|
+
puts "version.rb: #{version}"
|
|
116
|
+
puts "changelog: #{cver}"
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
desc 'Changelog version check'
|
|
120
|
+
task :cver do
|
|
121
|
+
puts IO.read(File.join(File.dirname(__FILE__), 'CHANGELOG.md')).match(/^#+ (\d+\.\d+\.\d+(\w+)?)/)[1]
|
|
77
122
|
end
|
|
78
123
|
|
|
79
124
|
desc 'Bump incremental version number'
|