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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5b1efd75edc932f14b7c620a0c90ae36bb94a3734c1c6f8ee329301e6f50af8
4
- data.tar.gz: 0fe857d53e21d4f66598104917c31fa455eeedc74f0e4e6aa6dc2a24f811c65a
3
+ metadata.gz: a2b8e1f32a572bfcd4797199e3e8bf40a8bacfe3f20eb117a13f52e5f69feab5
4
+ data.tar.gz: fe61f004dcc81088a23acee2f2fe03c8cec9fc107d1850cc6450d6bde99bdbdc
5
5
  SHA512:
6
- metadata.gz: 84b7f631a32dd256986d85fb132226075857339552f0b9b4a880cb17a0f0378e307d8a323beac840b7b2a0a62aad92283cc817dcad1622bf329462adbbfc619c
7
- data.tar.gz: af485a9d86625ed4f138a2bc466e506686c9660af08178dba3f82750adad7a1d4f8379ba434707ef10f78b5f79134b1202843ab568ba1e1b26be213830f08a89
6
+ metadata.gz: 2e77e9c93328415564d60bc1b3b1ca29bb678ce425477137392acd26d92acd81823a9fa9e6db189ce2a22045ca6dc45df32a8548a9265889e95f86196d238b1e
7
+ data.tar.gz: 516063b25c108b17ac6039c3890cf375a623078b913a33fecb019ae4c9a4f76e2a1f3995fae4cb3c529d5dddcb2d9076f5ec07e940a464ed13330c5b63ab3fbd
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.58.0)
15
+ checkoff (0.58.1)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -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
@@ -3,5 +3,5 @@
3
3
  # Command-line and gem client for Asana (unofficial)
4
4
  module Checkoff
5
5
  # Version of library
6
- VERSION = '0.58.0'
6
+ VERSION = '0.58.1'
7
7
  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.58.0
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-09-30 00:00:00.000000000 Z
11
+ date: 2023-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport