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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe07176abe27fd85b94bb8ed2ddd4999afd2ad8f
4
- data.tar.gz: 7bc8b5e9e3618f136484bf49e7d4d6589e44c90e
3
+ metadata.gz: d463623cca7d57fbc1823ab627cc56b6af825a12
4
+ data.tar.gz: d608449d6a739d8b50cbde305dea8fcfdecf5fc0
5
5
  SHA512:
6
- metadata.gz: dd7332e7774d2396e903dbd4313bfba730cee2dc3b1912c10615d1126cbbc13cd3f62510806fe17ff6d3d76d8365e070f059b9837977da61122a48c0d3283774
7
- data.tar.gz: b99f2cb4a83ecd39952a185a4015a822850c6a5d7311d25e75144de1f81976adcdc90910c3520f79fe860469619282d2b84702b895ae70a37b79480ad6585e93
6
+ metadata.gz: 1557db8281aec27a1f2263a095a7504cd3ebfed2e7ed9470957f3f44e0da1542cdb5261480e197dae44ef8b39b204f40ab9ccd46c82a19fa03ae22c202ecf0f6
7
+ data.tar.gz: 596ac6cfe0a1f99e06de239fe6e6be615b1fdf8a0709dd7016f45aa09101edee57dea12a04a74b6000297454f9b2530daf28d186c136d0eaec964f57f5dcc66d
data/Rakefile CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ #
4
+ # bundle exec rake release to release a new gem
5
+ #
3
6
  require 'bundler/gem_tasks'
4
7
 
5
8
  Dir['lib/tasks/**/*.rake'].each { |t| load t }
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Checkoff
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
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.6
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-07-04 00:00:00.000000000 Z
11
+ date: 2017-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dalli