checkoff 0.163.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: 4e069f1f67cf8145e42254912651cb575323ca8c5ec0b2e94e8929b6c2e1cb33
4
- data.tar.gz: 6e0f8039d9e956c0918b03807cc04cf65853232e4b3a97f7d6d5cca72b38b593
3
+ metadata.gz: f99bede3359ea38fb1343dabad531fa83df0890f301bfab723f5c65ffc9eb2d7
4
+ data.tar.gz: cf91f5f84ffdf059c37c1eddfad56e36af87562d63985c69760f0dbb7d54df3c
5
5
  SHA512:
6
- metadata.gz: 9f696c01862a1febb0f973bf90a39ce8afbc3be48d0b7df2a57494f9333c8894c2b17a0b3c2c4954fd2014c572d8e6bc78fdbb128e197f9714809e64e5207d45
7
- data.tar.gz: 0d2d8a45685bf264c00dee9e7fedfbfb7974c0a0e3dcd580618dafb99e936ef52d621411fa462a9a75bc4a54a0290c143cea459b549305131d8c8de02a36c253
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.163.0)
15
+ checkoff (0.165.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -93,6 +93,8 @@ module Checkoff
93
93
  end
94
94
  end
95
95
  out
96
+ rescue StandardError => e
97
+ raise "Error downloading #{uri}: #{e}"
96
98
  end
97
99
 
98
100
  # @sg-ignore
@@ -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.163.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.163.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