rubdo 0.0.3 → 0.1.0
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.
- data/README.md +21 -2
- data/lib/rubdo/list.rb +3 -4
- data/lib/rubdo/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Rubdo
|
2
2
|
|
3
|
-
|
3
|
+
A quick and dirty todo application
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -18,7 +18,26 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
|
21
|
+
Here are the available commands for `rubdo`
|
22
|
+
|
23
|
+
Commands for todo:
|
24
|
+
------------------
|
25
|
+
add/a [task description] - Add a new task
|
26
|
+
list/ls - Lists all tasks
|
27
|
+
completed - List all completed tasks
|
28
|
+
done/d [task id] - Complete a task
|
29
|
+
info [task id] - Gives info about the specific task
|
30
|
+
edit/e [task id] - Opens up $EDITOR to edit the task description
|
31
|
+
remove/rm [task id] - Deleted task id from the list
|
32
|
+
help - Prints out this information
|
33
|
+
|
34
|
+
`rubdo` createas _~/tasks_ where it holds the YAML files with the todos inside.
|
35
|
+
If you want to keep your todos synced accross your machines, make a symlink to say
|
36
|
+
a directory inside of _Dropbox_
|
37
|
+
|
38
|
+
$ ln -s ~/Dropbox/tasks/ ~/tasks
|
39
|
+
|
40
|
+
Make sure to save your todos first!
|
22
41
|
|
23
42
|
## Contributing
|
24
43
|
|
data/lib/rubdo/list.rb
CHANGED
@@ -10,10 +10,9 @@ module Rubdo
|
|
10
10
|
@storage = File.expand_path('~/tasks/Todo.yml')
|
11
11
|
@archive = File.expand_path('~/tasks/Archive.yml')
|
12
12
|
@items, @completed = [], []
|
13
|
+
create_directory File.dirname @storage
|
13
14
|
@items = load @storage
|
14
15
|
@completed = load @archive
|
15
|
-
create_directory_for @storage
|
16
|
-
create_directory_for @archive
|
17
16
|
end
|
18
17
|
|
19
18
|
def add(description)
|
@@ -41,8 +40,8 @@ module Rubdo
|
|
41
40
|
@items[id].to_s
|
42
41
|
end
|
43
42
|
|
44
|
-
def
|
45
|
-
FileUtils.mkdir
|
43
|
+
def create_directory(folder)
|
44
|
+
FileUtils.mkdir folder unless Dir.exists? folder
|
46
45
|
end
|
47
46
|
|
48
47
|
alias_method :<<, :add
|
data/lib/rubdo/version.rb
CHANGED