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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6dd5c704b7e134bdda8158cf7851d59bc1c1288e969251bcf4f301d9f18bafed
4
- data.tar.gz: 5f92ddd1ce0079e41d9a3aaf34159a5d17aa2ffafa1dbb86beff713a9ac110a1
3
+ metadata.gz: c51c3e2471e530356afaae22363325c6f6c3d1ce976740071d5776b7c30f4a13
4
+ data.tar.gz: 8f4661f622986dc3a7b02898222f9b6baea259e8b4b06a75e1631b5b7d4f171a
5
5
  SHA512:
6
- metadata.gz: e7b890ec0a915814c77e4bce2137a50cdf740dbe8f22bdaac105e4b1b2f4a94dc2b09dc90768b4a7336d2ccf48b63bc61597e4f37d4a77cb3bc8270cb873c8ab
7
- data.tar.gz: 564850bdc350602dd3fe4d7bb66a6457cd5b582d061aa83cf95b5a526da25741cdde8debb87ef8443b5bef94b6d8af6e186f6c369dc10232d35f41d40900fd5d
6
+ metadata.gz: e632e71b7259b119cdf58d0fb9c21ce0158465054cd95336d3af36e0dc0fa255f29a7e4299d8d4b182fb07cee1161c1f9b248bda8e3fbf36bdb279f1e4c4946c
7
+ data.tar.gz: f648d9ca336c7b7e77c9fbdaee2bdd6716c0a32e1a45ad45cb52687958de5dd3194145c09edc25d186a7cdddf9f5a35204b9af1a48a77beba107f3df4f34d158
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.68.0)
15
+ checkoff (0.69.0)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -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]
@@ -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.68.0'
6
+ VERSION = '0.69.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.68.0
4
+ version: 0.69.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vince Broz