checkoff 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -0
- data/lib/checkoff/tasks.rb +11 -0
- data/lib/checkoff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d463623cca7d57fbc1823ab627cc56b6af825a12
|
4
|
+
data.tar.gz: d608449d6a739d8b50cbde305dea8fcfdecf5fc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1557db8281aec27a1f2263a095a7504cd3ebfed2e7ed9470957f3f44e0da1542cdb5261480e197dae44ef8b39b204f40ab9ccd46c82a19fa03ae22c202ecf0f6
|
7
|
+
data.tar.gz: 596ac6cfe0a1f99e06de239fe6e6be615b1fdf8a0709dd7016f45aa09101edee57dea12a04a74b6000297454f9b2530daf28d186c136d0eaec964f57f5dcc66d
|
data/Rakefile
CHANGED
data/lib/checkoff/tasks.rb
CHANGED
@@ -26,6 +26,17 @@ module Checkoff
|
|
26
26
|
@sections.client
|
27
27
|
end
|
28
28
|
|
29
|
+
def projects
|
30
|
+
@projects ||= @sections.projects
|
31
|
+
end
|
32
|
+
|
33
|
+
def task(workspace_name, project_name, task_name, only_uncompleted: true)
|
34
|
+
project = projects.project(workspace_name, project_name)
|
35
|
+
tasks = projects.tasks_from_project(project,
|
36
|
+
only_uncompleted: only_uncompleted)
|
37
|
+
tasks.find { |task| task.name == task_name }
|
38
|
+
end
|
39
|
+
|
29
40
|
def tasks_minus_sections(tasks)
|
30
41
|
@sections.by_section(tasks).values.flatten
|
31
42
|
end
|
data/lib/checkoff/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: checkoff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dalli
|