rubdo 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Rubdo
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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 create_directory_for(file)
45
- FileUtils.mkdir File.dirname(file) unless File.exists? file
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
@@ -1,3 +1,3 @@
1
1
  module Rubdo
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubdo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: