doing 2.0.22 → 2.1.0pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +18 -15
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/CHANGELOG.md +36 -1
- data/Gemfile.lock +8 -1
- data/README.md +7 -1
- data/Rakefile +23 -4
- data/bin/doing +323 -173
- data/doc/Array.html +354 -1
- data/doc/Doing/Color.html +104 -92
- data/doc/Doing/Completion.html +216 -0
- data/doc/Doing/Configuration.html +340 -5
- data/doc/Doing/Content.html +229 -0
- data/doc/Doing/Errors/DoingNoTraceError.html +1 -1
- data/doc/Doing/Errors/DoingRuntimeError.html +1 -1
- data/doc/Doing/Errors/DoingStandardError.html +1 -1
- data/doc/Doing/Errors/EmptyInput.html +1 -1
- data/doc/Doing/Errors/NoResults.html +1 -1
- data/doc/Doing/Errors/PluginException.html +1 -1
- data/doc/Doing/Errors/UserCancelled.html +1 -1
- data/doc/Doing/Errors/WrongCommand.html +1 -1
- data/doc/Doing/Errors.html +1 -1
- data/doc/Doing/Hooks.html +1 -1
- data/doc/Doing/Item.html +337 -49
- data/doc/Doing/Items.html +444 -35
- data/doc/Doing/LogAdapter.html +139 -51
- data/doc/Doing/Note.html +253 -22
- data/doc/Doing/Pager.html +74 -36
- data/doc/Doing/Plugins.html +1 -1
- data/doc/Doing/Prompt.html +674 -0
- data/doc/Doing/Section.html +354 -0
- data/doc/Doing/Util.html +57 -1
- data/doc/Doing/WWID.html +477 -670
- data/doc/Doing/WWIDFile.html +398 -0
- data/doc/Doing.html +5 -5
- data/doc/GLI/Commands/MarkdownDocumentListener.html +1 -1
- data/doc/GLI/Commands.html +1 -1
- data/doc/GLI.html +1 -1
- data/doc/Hash.html +97 -1
- data/doc/Status.html +37 -3
- data/doc/String.html +599 -23
- data/doc/Symbol.html +3 -3
- data/doc/Time.html +1 -1
- data/doc/_index.html +22 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +8 -2
- data/doc/index.html +8 -2
- data/doc/method_list.html +453 -173
- data/doc/top-level-namespace.html +1 -1
- data/doing.gemspec +3 -0
- data/doing.rdoc +79 -27
- data/example_plugin.rb +5 -5
- data/lib/completion/_doing.zsh +42 -42
- data/lib/completion/doing.bash +10 -10
- data/lib/completion/doing.fish +1 -280
- data/lib/doing/array.rb +36 -0
- data/lib/doing/colors.rb +70 -66
- data/lib/doing/completion/bash_completion.rb +1 -2
- data/lib/doing/completion/fish_completion.rb +1 -1
- data/lib/doing/completion/zsh_completion.rb +1 -1
- data/lib/doing/completion.rb +6 -0
- data/lib/doing/configuration.rb +134 -23
- data/lib/doing/hash.rb +37 -0
- data/lib/doing/item.rb +77 -12
- data/lib/doing/items.rb +125 -0
- data/lib/doing/log_adapter.rb +58 -4
- data/lib/doing/note.rb +53 -1
- data/lib/doing/pager.rb +49 -38
- data/lib/doing/plugins/export/markdown_export.rb +4 -4
- data/lib/doing/plugins/export/template_export.rb +2 -2
- data/lib/doing/plugins/import/calendar_import.rb +4 -4
- data/lib/doing/plugins/import/doing_import.rb +5 -7
- data/lib/doing/plugins/import/timing_import.rb +3 -3
- data/lib/doing/prompt.rb +206 -0
- data/lib/doing/section.rb +30 -0
- data/lib/doing/string.rb +123 -35
- data/lib/doing/util.rb +14 -6
- data/lib/doing/version.rb +1 -1
- data/lib/doing/wwid.rb +307 -614
- data/lib/doing.rb +6 -2
- data/lib/examples/plugins/capture_thing_import.rb +162 -0
- data/rdoc_to_mmd.rb +14 -8
- data/scripts/generate_bash_completions.rb +1 -1
- data/scripts/generate_fish_completions.rb +1 -1
- data/scripts/generate_zsh_completions.rb +1 -1
- metadata +73 -5
- data/lib/doing/wwidfile.rb +0 -117
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '083907ea1ab1ffaeb97f66991a00f41e4212a67c852823cc8c8bd7958f58e280'
|
4
|
+
data.tar.gz: fc45d957791efe5c44330f9fe2574dbbd9c5d6c937155e46d9daf545acd63f75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b3683a4bc5fe9a367ea69338085a5075f986d69bc4a1617e9455e7edbbc18f2e05d168639428c0cb517e87030051cc0ad904244fba7ab7d118e2464bd01c23c
|
7
|
+
data.tar.gz: 6860abddd6849ea6ee9bf82a4466b0289510f7561e7bab6e8d8405ff5424f101106f88a45cd89dd467eed1118f534c7a86f946a8b9daae72efc197e80580e886
|
data/.yardoc/checksums
CHANGED
@@ -1,20 +1,23 @@
|
|
1
|
-
lib/doing/hash.rb
|
2
|
-
lib/doing/item.rb
|
3
|
-
lib/doing/note.rb
|
1
|
+
lib/doing/hash.rb c2960de9603dcf90be85ce423d9430de27f4f893
|
2
|
+
lib/doing/item.rb 49aa74a14f59f0c790b69369c9c97feaa1917e84
|
3
|
+
lib/doing/note.rb 99d7be3e45605d32da7e188d7ec749ba84a3d2f8
|
4
4
|
lib/doing/time.rb d83c862e7fffd841e12150a3d954b445a6003da9
|
5
|
-
lib/doing/util.rb
|
6
|
-
lib/doing/wwid.rb
|
7
|
-
lib/doing/array.rb
|
5
|
+
lib/doing/util.rb 94fc3c3ac1cc0b3b4b1d832fe30bd6e882d1acb2
|
6
|
+
lib/doing/wwid.rb 52e9867008ad24802e1bb8d9cce249e1d53b3c2b
|
7
|
+
lib/doing/array.rb dc9b3aeed89df820e003743e8d36078469c1aab7
|
8
8
|
lib/doing/hooks.rb 00feacdbf24dc67951c49ca8c1ca9a568441920e
|
9
|
-
lib/doing/
|
10
|
-
lib/doing/
|
9
|
+
lib/doing/items.rb c7b81ce1fe6a8804c62af3c83e510add5f025a8c
|
10
|
+
lib/doing/pager.rb 230c10dea5e9c68b5709a0f4cb088c76970965e4
|
11
|
+
lib/doing/colors.rb 9a628d48c821313c502deedc5b61a046a2bf79ef
|
11
12
|
lib/doing/errors.rb af07e482a5389924edc2337749c81cda501098f0
|
12
|
-
lib/doing/
|
13
|
-
lib/doing/
|
14
|
-
lib/doing/
|
15
|
-
lib/doing/
|
16
|
-
lib/doing/
|
17
|
-
lib/doing/
|
18
|
-
lib/doing/
|
13
|
+
lib/doing/prompt.rb ebf82d725111b99717954b3083cc529da8f53f3d
|
14
|
+
lib/doing/string.rb 2c90835a9b567643ce57de0030b339cfea234f46
|
15
|
+
lib/doing/symbol.rb 37f5b1f006181597703911494887a11fe0c63d39
|
16
|
+
lib/doing/section.rb 206e119cf818f1e76798753e611180fe77bc299a
|
17
|
+
lib/doing/version.rb 3838635a7f87787ff64ef6f8ba7890d1b1229481
|
18
|
+
lib/doing/cli_status.rb dbedd454c4cbbd0fed9ef30120f6ec85d18b9356
|
19
|
+
lib/doing/completion.rb 3b291eb38e651ea993d04db592a5e743057626e6
|
20
|
+
lib/doing/log_adapter.rb 5d21f966449977536452e22fa64de4a1fe334002
|
21
|
+
lib/doing/configuration.rb 33efe2921a604e68853abbbc026d1d28c4138a18
|
19
22
|
lib/doing/plugin_manager.rb fb926e3998bac0b14dd4548b16ece0d32bbe0b9e
|
20
23
|
lib/doing/markdown_document_listener.rb 45485f225068a34951ec818a345f642323e5ba35
|
data/.yardoc/object_types
CHANGED
Binary file
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,43 @@
|
|
1
|
-
### 2.
|
1
|
+
### 2.1.0pre
|
2
|
+
|
3
|
+
#### NEW
|
4
|
+
|
5
|
+
- BREAKING CHANGE: custom classes for Section (hash) and Items (Array). @content is still a regular Hash. Sections have methods :original and :items. This will affect plugins as wwid.content[section][:items] is now wwid[section].items (same for :original)
|
6
|
+
- `doing config set -r key.path` will delete a key from any config file, removing empty parent keys
|
7
|
+
- `config list` will list detected .doingrc files and the main config file in order of precedence - refactoring
|
8
|
+
- When modifying start dates or @done dates via an editor command, natural language strings can be used and will be parsed into doing-formatted dates automatically
|
9
|
+
- When editor is invoked, entry titles include start date, which can be modified
|
10
|
+
|
11
|
+
#### IMPROVED
|
12
|
+
|
13
|
+
- Config -o raw outputs value as YAML if result is a Hash/mapping, unquoted string if a single value, comma-separated list if it's an Array.
|
14
|
+
- Config -o json no longer includes key, only value.
|
15
|
+
- System agnostic method for checking available executables (pager, editor)
|
16
|
+
- Using `config set` and selecting a local config will no longer write the entire config to the local .doingrc. Instead, a nested path to the particular setting will be added to the config file.
|
17
|
+
|
18
|
+
### 2.0.26
|
19
|
+
|
20
|
+
#### NEW
|
21
|
+
|
22
|
+
- BREAKING CHANGE: custom classes for Section (hash) and Items (Array). @content is still a regular Hash. Sections have methods :original and :items. This will affect plugins as wwid.content[section][:items] is now wwid[section].items (same for :original)
|
2
23
|
|
3
24
|
#### IMPROVED
|
4
25
|
|
26
|
+
- Config -o raw outputs value as YAML if result is a Hash/mapping, unquoted string if a single value, comma-separated list if it's an Array.
|
27
|
+
- Config -o json no longer includes key, only value.
|
28
|
+
|
29
|
+
### 2.0.25
|
30
|
+
|
31
|
+
#### NEW
|
32
|
+
|
33
|
+
- `doing config set` to set single config values from command line
|
34
|
+
- BREAKING CHANGE: Moves ~/.doingrc to ~/.config/doing/config.yml
|
35
|
+
- BREAKING CHANGE: convert config flags to subcommands, e.g. `doing config --udpate` => `doing config update`, and `doing config --dump` => `doing config dump`
|
36
|
+
|
37
|
+
### 2.0.24
|
38
|
+
|
5
39
|
- include fzf source directly, in case git isn't installed
|
40
|
+
- fall back to installing fzf with sudo on error
|
6
41
|
|
7
42
|
### 2.0.20
|
8
43
|
|
data/Gemfile.lock
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
doing (2.
|
4
|
+
doing (2.1.0pre)
|
5
5
|
chronic (~> 0.10, >= 0.10.2)
|
6
6
|
deep_merge (~> 1.2, >= 1.2.1)
|
7
7
|
gli (~> 2.19, >= 2.19.2)
|
8
8
|
haml (~> 5.0.0, >= 5.0.0)
|
9
9
|
safe_yaml (~> 1.0)
|
10
|
+
tty-link (~> 0.1, >= 0.1.1)
|
10
11
|
tty-progressbar (~> 0.18, >= 0.18.2)
|
12
|
+
tty-which (~> 0.5, >= 0.5.0)
|
11
13
|
|
12
14
|
GEM
|
13
15
|
remote: http://rubygems.org/
|
@@ -100,12 +102,16 @@ GEM
|
|
100
102
|
thread_safe (0.3.6)
|
101
103
|
tilt (2.0.10)
|
102
104
|
tty-cursor (0.7.1)
|
105
|
+
tty-link (0.1.1)
|
103
106
|
tty-progressbar (0.18.2)
|
104
107
|
strings-ansi (~> 0.2)
|
105
108
|
tty-cursor (~> 0.7)
|
106
109
|
tty-screen (~> 0.8)
|
107
110
|
unicode-display_width (>= 1.6, < 3.0)
|
108
111
|
tty-screen (0.8.1)
|
112
|
+
tty-spinner (0.9.3)
|
113
|
+
tty-cursor (~> 0.7)
|
114
|
+
tty-which (0.5.0)
|
109
115
|
tzinfo (2.0.4)
|
110
116
|
concurrent-ruby (~> 1.0)
|
111
117
|
unicode-display_width (2.1.0)
|
@@ -124,6 +130,7 @@ DEPENDENCIES
|
|
124
130
|
rdoc (~> 6.3.1)
|
125
131
|
redcarpet (~> 3.5, >= 3.5.1)
|
126
132
|
test-unit (~> 3.4.4)
|
133
|
+
tty-spinner (~> 0.9, >= 0.9.3)
|
127
134
|
yard (~> 0.9, >= 0.9.26)
|
128
135
|
|
129
136
|
BUNDLED WITH
|
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.0.
|
9
|
+
The current version of `doing` is <!--VER-->2.0.25<!--END VER-->.
|
10
10
|
|
11
11
|
Find all of the documentation in the [doing wiki](https://github.com/ttscoff/doing/wiki).
|
12
12
|
|
@@ -41,6 +41,12 @@ See the [doing project on BrettTerpstra.com](https://brettterpstra.com/projects/
|
|
41
41
|
|
42
42
|
Evan Lovely has [created an Alfred workflow as well](http://www.evanlovely.com/blog/technology/alfred-for-terpstras-doing/).
|
43
43
|
|
44
|
+
## Contributing
|
45
|
+
|
46
|
+
If you [create a plugin](https://github.com/ttscoff/doing/wiki/Creating-Plugins), custom command, or hook you can share, please [let me know](https://brettterpstra.com/contact/). If I get a few plugin contributions, I'll set up a second repository for them.
|
47
|
+
|
48
|
+
Feel free to fork [the repository](https://github.com/ttscoff/doing/) on GitHub and make pull requests with changes. Please target the `develop` branch with pull requests.
|
49
|
+
|
44
50
|
<!--END README-->
|
45
51
|
|
46
52
|
---
|
data/Rakefile
CHANGED
@@ -27,12 +27,31 @@ spec = eval(File.read('doing.gemspec'))
|
|
27
27
|
Gem::PackageTask.new(spec) do |pkg|
|
28
28
|
end
|
29
29
|
|
30
|
-
Rake::TestTask.new do |t|
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
# Rake::TestTask.new do |t|
|
31
|
+
# t.libs << ['test', 'test/helpers']
|
32
|
+
# t.test_files = FileList['test/*_test.rb']
|
33
|
+
# t.verbose = ENV['VERBOSE'] =~ /(true|1)/i ? true : false
|
34
|
+
# end
|
35
|
+
|
36
|
+
namespace :test do
|
37
|
+
|
38
|
+
FileList['test/*_test.rb'].each do |rakefile|
|
39
|
+
test_name = File.basename(rakefile, '.rb').sub(%r{^.*?_(.*?)_.*?$}, '\1')
|
40
|
+
|
41
|
+
Rake::TestTask.new(:"#{test_name}") do |t|
|
42
|
+
t.libs << ['test', 'test/helpers']
|
43
|
+
t.pattern = rakefile
|
44
|
+
t.verbose = ENV['VERBOSE'] =~ /(true|1)/i ? true : false
|
45
|
+
end
|
46
|
+
#Define default task for :test
|
47
|
+
task :default => test_name
|
48
|
+
end
|
49
|
+
|
34
50
|
end
|
35
51
|
|
52
|
+
desc "Run all tests"
|
53
|
+
task :test => 'test:default'
|
54
|
+
|
36
55
|
desc 'Run one test verbosely'
|
37
56
|
task :test_one, :test do |_, args|
|
38
57
|
args.with_defaults(test: '*')
|