checkoff 0.32.0 → 0.33.1

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: 318fa6ab4d3237eb9eaf57d752ba2ef13e0082a4d2d7656069fb58b1b2011165
4
- data.tar.gz: 0c7f23448c07873c281a1b6cc93719df9d0e3ef952d5b43f6bc947ad5a0ca491
3
+ metadata.gz: cdeaf61d33faef2fafd4f051971864380978305ffb4e7dbf0b17df9ae05df49d
4
+ data.tar.gz: 2b6af7c4bb2b80d8d8b3a4e31f3c2af295c2102f907e4bc60912f5bd857fadd0
5
5
  SHA512:
6
- metadata.gz: 1bd96a96a0306d78c0b88f37aaa705a8d0d9c9552f35159bd70d2a3bfcbd84308903ce772c92c399d229cad9b21165ad751bfab269f6539bd3435a3ccfa20640
7
- data.tar.gz: 1de9712b43b014a0c0103af61807c6ecf9d17df2ed961b12577ec5b9df6d4e486801f73a302563648da6b1deb42923bbffb59c11def81ea371782e66ffa55a64
6
+ metadata.gz: dbbaf91613072385e4d4a73517a6e15b044ad5ae7c21356e25424be252b9c5d29bc09337e1d5c755bb53bfac68a9bd6ed401b6e1c687f1c6e88f6f280b04565d
7
+ data.tar.gz: 4553fa61a5929835656fe6f6d0bdcfa4711fd6273bbd6de1b46b536aed7b6d44c89e366e8fd1940c7f88e7d3845a11ad42a5185a8bff2c26779b9e889bcbc979
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.32.0)
15
+ checkoff (0.33.1)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -29,7 +29,7 @@ module Checkoff
29
29
  # pulls a Hash of subtasks broken out by section
30
30
  def by_section(tasks)
31
31
  current_section = nil
32
- by_section = {}
32
+ by_section = { nil => [] }
33
33
  tasks.each do |task|
34
34
  current_section, by_section = file_task_by_section(current_section,
35
35
  by_section, task)
@@ -61,9 +61,10 @@ module Checkoff
61
61
  def file_task_by_section(current_section, by_section, task)
62
62
  if subtask_section?(task)
63
63
  current_section = task.name
64
+ raise "More than one section named #{task.name}" if by_section.key? task.name
65
+
64
66
  by_section[current_section] = []
65
67
  else
66
- by_section[current_section] ||= []
67
68
  by_section[current_section] << task
68
69
  end
69
70
  [current_section, by_section]
@@ -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.32.0'
6
+ VERSION = '0.33.1'
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.32.0
4
+ version: 0.33.1
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-02-28 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport