checkoff 0.63.1 → 0.64.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: d2555cef49fe83b23cb41525e4ec58af676a83064b9b0a1f25627ce0725c9f52
4
- data.tar.gz: 6ab72b8c2bcb63e7af1c45d4a027e9827857463d9a85978f44ae1d6c8c4e7c42
3
+ metadata.gz: 8f64d6fbce5098a3e661dd96ba4ece4f1831dbeba5d2e2c12a88eae3097d3219
4
+ data.tar.gz: 612935d38a740717eeb8b23db2396352afde0ee53b3a625cb74a51e09198538e
5
5
  SHA512:
6
- metadata.gz: 6d452fb3158109d1a0709d13d9226c91ac05aec44d7ce33bc6e11ad74850816d79750c1fdf64f47cf5eed73527eeb8e742c23a85fae3ce0ce4d9554eeae18366
7
- data.tar.gz: 9617ea07417b87675a1789c57d888d50e6f8652ffe913bc2743043c392311cf65fd165344296974dc5a3292a6344ea8a692af63f5a395fb6dc85239a15bedf34
6
+ metadata.gz: 4e14fb70b482d53376784b7659c9c2e67a4d05c80888bb826c12b9d2d4d5cfa6dc9c44c6fe552b907de789e2773c86c20debbe2a2a8a252e55545ebf0ce1e071
7
+ data.tar.gz: 7a044e9893cc848c78192d8ae1002bd5a7e8e5c2703e3016adcfbe47cdfdcac5ba87bca587b4e4e91a6ac2fea7d115f0037ca6f10e0923294e5a77c01b6360e8
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.63.1)
15
+ checkoff (0.64.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -51,6 +51,10 @@
51
51
  # def create(client, assignee:, workspace:, name:); end
52
52
  # end
53
53
  # end
54
+ # class Project
55
+ # # @return [String,nil]
56
+ # def due_date; end
57
+ # end
54
58
  # end
55
59
  # module Resources
56
60
  # class Workspace
@@ -5,6 +5,21 @@ require_relative 'project/function_evaluator'
5
5
  module Checkoff
6
6
  module SelectorClasses
7
7
  # Project selector classes
8
- module Project; end
8
+ module Project
9
+ # :due_date function
10
+ class DueDateFunctionEvaluator < FunctionEvaluator
11
+ FUNCTION_NAME = :due_date
12
+
13
+ def matches?
14
+ fn?(selector, FUNCTION_NAME)
15
+ end
16
+
17
+ # @param resource [Asana::Resources::Project]
18
+ # @return [String, nil]
19
+ def evaluate(resource)
20
+ resource.due_date
21
+ end
22
+ end
23
+ end
9
24
  end
10
25
  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.63.1'
6
+ VERSION = '0.64.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.63.1
4
+ version: 0.64.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: 2023-10-10 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport