task_manager2 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/task_manager/cli.rb +0 -2
- data/lib/task_manager/new_task_file.rb +1 -1
- data/lib/task_manager/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: b50e568f68259235c5863145fcbbc45aaac9459a
|
4
|
+
data.tar.gz: 573778fe6581160b830b6ffec3041c9111f74fcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fb7c743a4c7c53c30c1fda7bc96c7ea8499d9a15be4bb3999094a6673cd8f0cb7c9622ee5ca05205d677f92d30124f47f74834e5eac2adeb7a22892a0bf0937
|
7
|
+
data.tar.gz: 33c16c6056c44ad2f7b207ff27c59f6b339d7183241d281345066fba2bb134c1c9a9c0318407911116bc81fbcb623435823f10dacda995d13aa38940d65d1c8e
|
data/lib/task_manager/cli.rb
CHANGED
@@ -2,7 +2,7 @@ module TaskManager
|
|
2
2
|
class NewTaskFile < TaskFile
|
3
3
|
def pick(id)
|
4
4
|
node = root_node.css('task').find { |t| t['id'].to_i == id.to_i }
|
5
|
-
raise 'ID not exists'.colorize(:light_red)
|
5
|
+
raise 'ID not exists'.colorize(:light_red) unless node
|
6
6
|
task = Task.new_from_node(node)
|
7
7
|
handle_xml { node.remove }
|
8
8
|
task
|
data/lib/task_manager/version.rb
CHANGED