checkoff 0.101.0 → 0.102.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6242a956ad83d3a1818be59711f4ba42040d7051dac2dd0ba2c8a2e5ed29f244
4
- data.tar.gz: 515a08a90d20a58956256f76248f01d7a5fd52c6ac14e1fbd8215a6eb33dcc6d
3
+ metadata.gz: 4d8549d02934007d479b28d83262a32e060e6ada2033f5d5c9743210bf599e68
4
+ data.tar.gz: 86f5d4ba266d1d60af237d428c50b0065e80ce233d8ed964e7af9cc2396e6ae3
5
5
  SHA512:
6
- metadata.gz: 8575f32ba5e2130117784cdf0b6e3f9bd40a11c918ffd99208457cd8dde84f7333da5ffc09096f520bccb28f6451da0605f3a3073002de89e8b9d75800371dfa
7
- data.tar.gz: 037b01300963f231ba1401eb55beb47aff94deb9baab62c3d952876de3d3afc6d5a2c427bb717f5bdc0b8faa8cf3029bdd844de8d955ae3d600ebf9b2ee20835
6
+ metadata.gz: 6e7d47b7d64ee0008783db1a0a460bc0a1865f361920ff136c85e95df6f1d4cf36f88fda44ce50cb0f7f81e5117800feef82874320d6453e4b525f734721fc2d
7
+ data.tar.gz: 9c376fe5b386897f379f0b575423078fa0d4495ae953f05a5aeab6d794e3be6eac36a235f4d44d7e80313824de8110e246e7069abf3399f88c0a931eb709b60f
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.101.0)
15
+ checkoff (0.102.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -76,6 +76,7 @@ module Checkoff
76
76
  end
77
77
 
78
78
  # Pull a specific task by name
79
+ #
79
80
  # @param workspace_name [String]
80
81
  # @param project_name [String, Symbol]
81
82
  # @param section_name [String, nil, Symbol]
@@ -98,7 +99,8 @@ module Checkoff
98
99
  end
99
100
  cache_method :task, SHORT_CACHE_TIME
100
101
 
101
- # Pull a specific task by name
102
+ # Pull a specific task by GID
103
+ #
102
104
  # @param task_gid [String]
103
105
  # @param extra_fields [Array<String>]
104
106
  # @return [Asana::Resources::Task, nil]
@@ -110,9 +112,12 @@ module Checkoff
110
112
  end
111
113
  cache_method :task_by_gid, SHORT_CACHE_TIME
112
114
 
115
+ # Add a task
116
+ #
113
117
  # @param name [String]
114
118
  # @param workspace_gid [String]
115
119
  # @param assignee_gid [String]
120
+ #
116
121
  # @return [Asana::Resources::Task]
117
122
  def add_task(name,
118
123
  workspace_gid: @workspaces.default_workspace_gid,
@@ -122,12 +127,17 @@ module Checkoff
122
127
  workspace: workspace_gid, name: name)
123
128
  end
124
129
 
130
+ # Return user-accessible URL for a task
131
+ #
125
132
  # @param task [Asana::Resources::Task]
133
+ #
126
134
  # @return [String] end-user URL to the task in question
127
135
  def url_of_task(task)
128
136
  "https://app.asana.com/0/0/#{task.gid}/f"
129
137
  end
130
138
 
139
+ # True if any of the task's dependencies are marked incomplete
140
+ #
131
141
  # @param task [Asana::Resources::Task]
132
142
  def incomplete_dependencies?(task)
133
143
  # Avoid a redundant fetch. Unfortunately, Ruby SDK allows
@@ -166,11 +176,14 @@ module Checkoff
166
176
  # task: String (name)
167
177
  #
168
178
  # @param task [Asana::Resources::Task]
179
+ #
169
180
  # @return [Hash]
170
181
  def task_to_h(task)
171
182
  task_hashes.task_to_h(task)
172
183
  end
173
184
 
185
+ # True if the task is in a project which is in the given portfolio
186
+ #
174
187
  # @param task [Asana::Resources::Task]
175
188
  # @param portfolio_name [String]
176
189
  # @param workspace_name [String]
@@ -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.101.0'
6
+ VERSION = '0.102.0'
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: checkoff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.101.0
4
+ version: 0.102.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz