ruboty-todo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/actions/todo.rb +3 -2
- data/lib/ruboty/todo/list.rb +3 -1
- data/lib/ruboty/todo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 401490d5fdc8aa818f937bc9d1e47f82e53626ad
|
4
|
+
data.tar.gz: bc865809d9e882f27380ecfc1c0c742975f045e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dccb9e91402f3f0953c33a2f7200f0997cdd9a3b04c07fe167944d625312649a58c36249da5dfd1fcd2a1fa4f9c1d6decc31bb1efe5dbf4612fd44ccbb39cad4
|
7
|
+
data.tar.gz: b82452f44932d45a322e177238735ee13fd4f65119f7bab85e9c75d881c17db73f52d8311bd32cfaa303e5de51aaca99ef0f3867c0d7f00d08cc404f0d5dca1d
|
data/lib/ruboty/actions/todo.rb
CHANGED
@@ -23,7 +23,7 @@ module Ruboty
|
|
23
23
|
show todo list
|
24
24
|
`todo add [TITLE]`
|
25
25
|
add list to new todo
|
26
|
-
`todo start [ID
|
26
|
+
`todo start [ID]`
|
27
27
|
start todo
|
28
28
|
`todo finish [ID]`
|
29
29
|
finish todo (will removed by `cleanup`)
|
@@ -39,7 +39,8 @@ EOH
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def add(arg)
|
42
|
-
|
42
|
+
title = arg.to_s.strip
|
43
|
+
return 'specify todo title like `todo add [TITLE]`' if title == ''
|
43
44
|
todo_list.add(title: title).format(new_item: true)
|
44
45
|
end
|
45
46
|
|
data/lib/ruboty/todo/list.rb
CHANGED
data/lib/ruboty/todo/version.rb
CHANGED