checkoff 0.58.0 → 0.58.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/checkoff/projects.rb +4 -3
- data/lib/checkoff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b8e1f32a572bfcd4797199e3e8bf40a8bacfe3f20eb117a13f52e5f69feab5
|
4
|
+
data.tar.gz: fe61f004dcc81088a23acee2f2fe03c8cec9fc107d1850cc6450d6bde99bdbdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e77e9c93328415564d60bc1b3b1ca29bb678ce425477137392acd26d92acd81823a9fa9e6db189ce2a22045ca6dc45df32a8548a9265889e95f86196d238b1e
|
7
|
+
data.tar.gz: 516063b25c108b17ac6039c3890cf375a623078b913a33fecb019ae4c9a4f76e2a1f3995fae4cb3c529d5dddcb2d9076f5ec07e940a464ed13330c5b63ab3fbd
|
data/Gemfile.lock
CHANGED
data/lib/checkoff/projects.rb
CHANGED
@@ -54,13 +54,14 @@ module Checkoff
|
|
54
54
|
# pulls an Asana API project class given a name
|
55
55
|
# @param [String] workspace_name
|
56
56
|
# @param [String] project_name
|
57
|
+
# @param [Array<String>] extra_fields
|
57
58
|
# @return [Asana::Resources::Project, nil]
|
58
|
-
def project(workspace_name, project_name)
|
59
|
+
def project(workspace_name, project_name, extra_fields: [])
|
59
60
|
if project_name.is_a?(Symbol) && project_name.to_s.start_with?('my_tasks')
|
60
61
|
my_tasks(workspace_name)
|
61
62
|
else
|
62
63
|
# @type [Enumerable<Asana::Resources::Project>]
|
63
|
-
ps = projects_by_workspace_name(workspace_name)
|
64
|
+
ps = projects_by_workspace_name(workspace_name, extra_fields: extra_fields)
|
64
65
|
ps.find do |project|
|
65
66
|
project.name == project_name
|
66
67
|
end
|
@@ -73,7 +74,7 @@ module Checkoff
|
|
73
74
|
# @return [Asana::Resources::Project]
|
74
75
|
def project_or_raise(workspace_name, project_name)
|
75
76
|
p = project(workspace_name, project_name)
|
76
|
-
raise "Could not find project #{project_name} under workspace #{workspace_name}." if p.nil?
|
77
|
+
raise "Could not find project #{project_name.inspect} under workspace #{workspace_name}." if p.nil?
|
77
78
|
|
78
79
|
p
|
79
80
|
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.58.
|
4
|
+
version: 0.58.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vince Broz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|