checkoff 0.164.0 → 0.165.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: b4dcbd0a1c6bdba4ba211da04e454df5c7262f64fff2b10b1f04d6e01815a8cb
4
- data.tar.gz: 308cedb7c63ece4381734d725f7b1c18fd9b4aa127b0e6396a6da9cce041aa8b
3
+ metadata.gz: f99bede3359ea38fb1343dabad531fa83df0890f301bfab723f5c65ffc9eb2d7
4
+ data.tar.gz: cf91f5f84ffdf059c37c1eddfad56e36af87562d63985c69760f0dbb7d54df3c
5
5
  SHA512:
6
- metadata.gz: 10ca443e0f41792781b968f38a143b865dc59c421a557f4e780c390be6487265836c5e80e7f983661fa37f0072a3d17fe891b37a592e61527ae20f9b50d8d171
7
- data.tar.gz: 866450b601b3252b1394d9ad5730f175df90241dd2f082114aaa1db0bdcc867f460108cb30aa5bdba8b3b7e4b74cfe334463bb4e78f9e3d48db912f8675d4324
6
+ metadata.gz: d5ff068f85a90f941f7b60cdb938968e0a6311082ea2b95d0753ee2f6bd1da258c06297a105afe97a6e4b9c48f9b91937a07b592cbc76488b99e1588178d9844
7
+ data.tar.gz: 4d80c6ea635bfd686c09a6acf6fab8fb7a11d519223b1f80fd8b0e5e0cae58a4cbfe450b162c49044eca4e006cf96f8e6d8f12bc4aea56e972b463d72e27a875
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.164.0)
15
+ checkoff (0.165.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -17,6 +17,17 @@ module Checkoff
17
17
  task_hash
18
18
  end
19
19
 
20
+ # @param task_data [Hash]
21
+ # @param client [Asana::Client]
22
+ #
23
+ # @return [Asana::Resources::Task]
24
+ def h_to_task(task_data, client:)
25
+ # copy of task_data without the 'unwrapped' key
26
+ clean_task_data = task_data.dup
27
+ clean_task_data.delete('unwrapped')
28
+ Asana::Resources::Task.new(clean_task_data, client: client)
29
+ end
30
+
20
31
  private
21
32
 
22
33
  # @param task_hash [Hash]
@@ -249,7 +249,7 @@ module Checkoff
249
249
  #
250
250
  # @return [Asana::Resources::Task]
251
251
  def h_to_task(task_data)
252
- Asana::Resources::Task.new(task_data, client: client)
252
+ task_hashes.h_to_task(task_data, client: client)
253
253
  end
254
254
 
255
255
  # True if the task is in a project which is in the given portfolio
@@ -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.164.0'
6
+ VERSION = '0.165.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.164.0
4
+ version: 0.165.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-12-27 00:00:00.000000000 Z
11
+ date: 2023-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport