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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/checkoff/subtasks.rb +3 -2
- data/lib/checkoff/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdeaf61d33faef2fafd4f051971864380978305ffb4e7dbf0b17df9ae05df49d
|
4
|
+
data.tar.gz: 2b6af7c4bb2b80d8d8b3a4e31f3c2af295c2102f907e4bc60912f5bd857fadd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbbaf91613072385e4d4a73517a6e15b044ad5ae7c21356e25424be252b9c5d29bc09337e1d5c755bb53bfac68a9bd6ed401b6e1c687f1c6e88f6f280b04565d
|
7
|
+
data.tar.gz: 4553fa61a5929835656fe6f6d0bdcfa4711fd6273bbd6de1b46b536aed7b6d44c89e366e8fd1940c7f88e7d3845a11ad42a5185a8bff2c26779b9e889bcbc979
|
data/Gemfile.lock
CHANGED
data/lib/checkoff/subtasks.rb
CHANGED
@@ -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]
|
data/lib/checkoff/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|