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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eee475a830700fe1c0918b54a887fd27d6668206
4
- data.tar.gz: b626d2d05584bfdac856a5549029ea977c8185a8
3
+ metadata.gz: b50e568f68259235c5863145fcbbc45aaac9459a
4
+ data.tar.gz: 573778fe6581160b830b6ffec3041c9111f74fcf
5
5
  SHA512:
6
- metadata.gz: 5da655471373b2a96ffc30cef2058d9d5fdb6cb12404261bbc79644c73adce4e9ca09dac33f3be9d730f3cec395448fa86dfc53ff8aa0f6d3f0d76361f153c85
7
- data.tar.gz: 3c18d0cf18d460d92bd933839d7c38db4ec058ec80f9b841499ad4c1b1a711eea13200922234a87f8fb98728323c22f406ee0398a21ac791b91bbfc3789d6d29
6
+ metadata.gz: 6fb7c743a4c7c53c30c1fda7bc96c7ea8499d9a15be4bb3999094a6673cd8f0cb7c9622ee5ca05205d677f92d30124f47f74834e5eac2adeb7a22892a0bf0937
7
+ data.tar.gz: 33c16c6056c44ad2f7b207ff27c59f6b339d7183241d281345066fba2bb134c1c9a9c0318407911116bc81fbcb623435823f10dacda995d13aa38940d65d1c8e
@@ -14,8 +14,6 @@ module TaskManager
14
14
  desc 'pick', 'Pick a task from the waiting queue'
15
15
  method_option :id, aliases: '-i', desc: 'ID of the task', type: :numeric, required: true
16
16
  def pick
17
- p 'id'
18
- p options[:id]
19
17
  TaskManager.pick(options[:id])
20
18
  end
21
19
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module TaskManager
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: task_manager2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - MatBi