checkoff 0.191.0 → 0.192.0

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: 7084dd6600d8159794501e09ba25363816db4187560d0df5d63c38a83071b21e
4
- data.tar.gz: b1fdf3bd89b2c1d5dd8f5a0c3c040c6024d5427e203e609b33eb457ceb31749f
3
+ metadata.gz: f18c541bd2d95341686dc5db9637bdfe61cd0f5880f484067c3e20eabebaa717
4
+ data.tar.gz: d3fc7101c367fab1388d75bf04b08d3e322c9cbeaed614ee2a5da008c2e732cf
5
5
  SHA512:
6
- metadata.gz: 87e405866ef2e721f33fb6ac3cf1f299ae264482e4dbae0614b50863eed2695178108f6fe9de8b27db43b22e4fa87217c580047e42d47b7702bf538013667804
7
- data.tar.gz: 757bf6556c5f1b2769157655b4f0ce31efb01efdecda9fb6575acf29e011eca73212a33c18c12eaadf543b5ee56bb5e699dc20388265de3b586ca6a2cd479dd4
6
+ metadata.gz: 2c72b43aa09c8fe1bf713da082478f52aee59278cdd56a0149012c291cfde621f81979f40fc8267447ed6af5b0abc504ec46e51df18da7d5a295fbaa58be14ca
7
+ data.tar.gz: 05b8ae1174c3d2352b6ef08525b34774a17276080b8fc14f6afa6c7fb55cd6fa05561a02252435c7803cac41ce6eb0ff28231aea01f0bbcefb0ebb34bfef9a13
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.191.0)
15
+ checkoff (0.192.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -347,7 +347,7 @@ module Checkoff
347
347
  end
348
348
  end
349
349
 
350
- # :milestone_does_not_depend_on_this_task? function
350
+ # :milestone? function
351
351
  class MilestonePFunctionEvaluator < FunctionEvaluator
352
352
  FUNCTION_NAME = :milestone?
353
353
 
@@ -77,9 +77,10 @@ module Checkoff
77
77
  else
78
78
  # @type [Enumerable<Asana::Resources::Project>]
79
79
  ps = projects_by_workspace_name(workspace_name, extra_fields: extra_fields)
80
- ps.find do |project|
81
- project.name == project_name
82
- end
80
+ # @type <Asana::Resources::Project,nil>
81
+ # @sg-ignore
82
+ project = ps.find { _1.name == project_name }
83
+ project_by_gid(project.gid, extra_fields: extra_fields) unless project.nil?
83
84
  end
84
85
  end
85
86
  cache_method :project, REALLY_LONG_CACHE_TIME
@@ -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.191.0'
6
+ VERSION = '0.192.0'
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.191.0
4
+ version: 0.192.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-03 00:00:00.000000000 Z
11
+ date: 2024-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport