checkoff 0.68.0 → 0.69.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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/checkoff/sections.rb +11 -11
- data/lib/checkoff/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c51c3e2471e530356afaae22363325c6f6c3d1ce976740071d5776b7c30f4a13
|
4
|
+
data.tar.gz: 8f4661f622986dc3a7b02898222f9b6baea259e8b4b06a75e1631b5b7d4f171a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e632e71b7259b119cdf58d0fb9c21ce0158465054cd95336d3af36e0dc0fa255f29a7e4299d8d4b182fb07cee1161c1f9b248bda8e3fbf36bdb279f1e4c4946c
|
7
|
+
data.tar.gz: f648d9ca336c7b7e77c9fbdaee2bdd6716c0a32e1a45ad45cb52687958de5dd3194145c09edc25d186a7cdddf9f5a35204b9af1a48a77beba107f3df4f34d158
|
data/Gemfile.lock
CHANGED
data/lib/checkoff/sections.rb
CHANGED
@@ -131,13 +131,22 @@ module Checkoff
|
|
131
131
|
if s.nil?
|
132
132
|
valid_sections = sections_or_raise(workspace_name, project_name).map(&:name)
|
133
133
|
|
134
|
-
raise "Could not find section #{section_name} under project #{project_name} " \
|
135
|
-
"under workspace #{workspace_name}. Valid sections: #{valid_sections}"
|
134
|
+
raise "Could not find section #{section_name.inspect} under project #{project_name.inspect} " \
|
135
|
+
"under workspace #{workspace_name.inspect}. Valid sections: #{valid_sections.inspect}"
|
136
136
|
end
|
137
137
|
s
|
138
138
|
end
|
139
139
|
cache_method :section_or_raise, LONG_CACHE_TIME
|
140
140
|
|
141
|
+
# @param name [String]
|
142
|
+
# @return [String, nil]
|
143
|
+
def section_key(name)
|
144
|
+
inbox_section_names = ['(no section)', 'Untitled section', 'Inbox', 'Recently assigned']
|
145
|
+
return nil if inbox_section_names.include?(name)
|
146
|
+
|
147
|
+
name
|
148
|
+
end
|
149
|
+
|
141
150
|
private
|
142
151
|
|
143
152
|
# @return [Asana::Client]
|
@@ -159,15 +168,6 @@ module Checkoff
|
|
159
168
|
by_section(active_tasks, project.gid)
|
160
169
|
end
|
161
170
|
|
162
|
-
# @param name [String]
|
163
|
-
# @return [String, nil]
|
164
|
-
def section_key(name)
|
165
|
-
inbox_section_names = ['(no section)', 'Untitled section', 'Inbox', 'Recently assigned']
|
166
|
-
return nil if inbox_section_names.include?(name)
|
167
|
-
|
168
|
-
name
|
169
|
-
end
|
170
|
-
|
171
171
|
# Given a list of tasks, pull a Hash of tasks with section name -> task list
|
172
172
|
# @param tasks [Enumerable<Asana::Resources::Task>]
|
173
173
|
# @param project_gid [String]
|
data/lib/checkoff/version.rb
CHANGED