task_manager2 0.0.11 → 0.0.12
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/new_task_file.rb +1 -0
- data/lib/task_manager/version.rb +1 -1
- data/lib/task_manager.rb +5 -2
- 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: bf0cde7e80abc1c085f5d713e5292f87f138a68c
|
4
|
+
data.tar.gz: 93932d2c77ef84f469d88d7eecba964daf2be258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fe732dfa434397058d9286627affad2853454160185e686510b59bf731e2269e1604076a671f7e6a8e0628ad63e3df373ddc84ab1d16e5b47abfaa61497d903
|
7
|
+
data.tar.gz: 73e2faadb9f403bc93f97f2da33a780685ade2d86e91d050b488fe3ed0519bb2b0fb8b1d4bb918d8b2e6dea5a43d0c855ac3edbe26107f77483256763bf8cb07
|
data/lib/task_manager/version.rb
CHANGED
data/lib/task_manager.rb
CHANGED
@@ -21,10 +21,13 @@ module TaskManager
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.pick(id)
|
24
|
-
task = NewTaskFile.new.pick(id)
|
25
|
-
|
24
|
+
task = NewTaskFile.new.pick(id) do |task|
|
25
|
+
CurrentTaskFile.new.add(task)
|
26
|
+
end
|
26
27
|
print('Picked task:'.colorize(:light_cyan))
|
27
28
|
print_task(task)
|
29
|
+
rescue Exception => e
|
30
|
+
print e.message
|
28
31
|
end
|
29
32
|
|
30
33
|
def self.current
|