task_manager2 0.0.5 → 0.0.6
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 +2 -2
- data/lib/task_manager/current_task_file.rb +5 -0
- data/lib/task_manager/new_task_file.rb +1 -0
- 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: 5ba84945c4b897357274df70805bdb90890af854
|
4
|
+
data.tar.gz: 6f12aa8db190ee1cd52d7553128dbe8556d08e0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf747446aa44dcde97027f84752ed281483da00125f979352f93d8fb96cdd7c27020d628e6c69a3bfde82ec507dde2be873f1230302591ebc8e5aba66f45a73
|
7
|
+
data.tar.gz: 9bd3a005004c60e297f12d8d55019b5eb130908adb33f823d742df05cc3a8ad00c43d14804a31d2c6f54870d9bfea487f8abd9d29d5facf317ecd0618d2a2d04
|
data/lib/task_manager/cli.rb
CHANGED
@@ -6,13 +6,13 @@ module TaskManager
|
|
6
6
|
|
7
7
|
desc 'add', 'Add a new task to the waiting queue'
|
8
8
|
method_option :name, aliases: '-n', desc: 'Name of the task', type: :string, required: true
|
9
|
-
method_option :score, aliases: '-s', desc: 'Score of the task', type: :
|
9
|
+
method_option :score, aliases: '-s', desc: 'Score of the task', type: :numeric
|
10
10
|
def add
|
11
11
|
TaskManager.add(options[:name], options[:score])
|
12
12
|
end
|
13
13
|
|
14
14
|
desc 'pick', 'Pick a task from the waiting queue'
|
15
|
-
method_option :id, aliases: '-i', desc: 'ID of the task', type: :
|
15
|
+
method_option :id, aliases: '-i', desc: 'ID of the task', type: :numeric, required: true
|
16
16
|
def pick
|
17
17
|
TaskManager.pick(options[:id])
|
18
18
|
end
|
data/lib/task_manager/version.rb
CHANGED