checkoff 0.13.1 → 0.13.2
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/.rubocop.yml +9 -0
- data/Gemfile.lock +5 -5
- data/coverage/.last_run.json +2 -2
- data/lib/checkoff/subtasks.rb +6 -1
- 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: 02474a060394a81034f63de6adf9753735b16be09b2a86756972dfa98d616a89
|
|
4
|
+
data.tar.gz: 6da399f3f010e90f1f009c5a7ab8af66c78325979a60faddfe97b77da9b9442f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5637378bb6d83018437b6222cc5ded57addeeb17b4037aca23118fbde7279b8ae11c3e43ad58a39a32fcec40aa4f7133e2d1e330657c84d7a24bbe47f1f25f04
|
|
7
|
+
data.tar.gz: 5195be1aae3a95d31d3c6d8a6a0b9647aef6ef8401c662458368b726ddda4c3c67305b4fef3b6719892447580b958d461ae6c964d08a22e4317dfc27f1b14b95
|
data/.rubocop.yml
CHANGED
|
@@ -45,6 +45,15 @@ Naming/MethodParameterName:
|
|
|
45
45
|
- x # cartesian coordinates
|
|
46
46
|
- y # cartesian coordinates
|
|
47
47
|
|
|
48
|
+
# by default (EnforcedStyle=NormalCase) this rule doesn't like
|
|
49
|
+
# things like check_1, check_2, etc and wants check1, check2, etc. I
|
|
50
|
+
# like the former.
|
|
51
|
+
#
|
|
52
|
+
# https://docs.rubocop.org/rubocop/cops_naming.html#namingvariablenumber
|
|
53
|
+
Naming/VariableNumber:
|
|
54
|
+
Enabled: true
|
|
55
|
+
EnforcedStyle: snake_case
|
|
56
|
+
|
|
48
57
|
#
|
|
49
58
|
# Add 'XX X' to the standard list
|
|
50
59
|
#
|
data/Gemfile.lock
CHANGED
|
@@ -12,7 +12,7 @@ GIT
|
|
|
12
12
|
PATH
|
|
13
13
|
remote: .
|
|
14
14
|
specs:
|
|
15
|
-
checkoff (0.13.
|
|
15
|
+
checkoff (0.13.2)
|
|
16
16
|
activesupport
|
|
17
17
|
asana (> 0.10.0)
|
|
18
18
|
cache_method
|
|
@@ -85,7 +85,7 @@ GEM
|
|
|
85
85
|
iniparse (~> 1.4)
|
|
86
86
|
rexml (~> 3.2)
|
|
87
87
|
parallel (1.20.1)
|
|
88
|
-
parser (3.0.
|
|
88
|
+
parser (3.0.2.0)
|
|
89
89
|
ast (~> 2.4.1)
|
|
90
90
|
pry (0.14.1)
|
|
91
91
|
coderay (~> 1.1)
|
|
@@ -95,16 +95,16 @@ GEM
|
|
|
95
95
|
rake (13.0.3)
|
|
96
96
|
regexp_parser (2.1.1)
|
|
97
97
|
rexml (3.2.5)
|
|
98
|
-
rubocop (1.
|
|
98
|
+
rubocop (1.18.4)
|
|
99
99
|
parallel (~> 1.10)
|
|
100
100
|
parser (>= 3.0.0.0)
|
|
101
101
|
rainbow (>= 2.2.2, < 4.0)
|
|
102
102
|
regexp_parser (>= 1.8, < 3.0)
|
|
103
103
|
rexml
|
|
104
|
-
rubocop-ast (>= 1.
|
|
104
|
+
rubocop-ast (>= 1.8.0, < 2.0)
|
|
105
105
|
ruby-progressbar (~> 1.7)
|
|
106
106
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
107
|
-
rubocop-ast (1.
|
|
107
|
+
rubocop-ast (1.8.0)
|
|
108
108
|
parser (>= 3.0.1.1)
|
|
109
109
|
rubocop-minitest (0.12.1)
|
|
110
110
|
rubocop (>= 0.90, < 2.0)
|
data/coverage/.last_run.json
CHANGED
data/lib/checkoff/subtasks.rb
CHANGED
|
@@ -16,6 +16,11 @@ module Checkoff
|
|
|
16
16
|
@projects = projects
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
# true if the subtask passed in is actually a section header for subtasks
|
|
20
|
+
def subtask_section?(task)
|
|
21
|
+
task.name.end_with?(':')
|
|
22
|
+
end
|
|
23
|
+
|
|
19
24
|
# pulls a Hash of subtasks broken out by section
|
|
20
25
|
def by_section(tasks)
|
|
21
26
|
current_section = nil
|
|
@@ -38,7 +43,7 @@ module Checkoff
|
|
|
38
43
|
attr_reader :projects
|
|
39
44
|
|
|
40
45
|
def file_task_by_section(current_section, by_section, task)
|
|
41
|
-
if task
|
|
46
|
+
if subtask_section?(task)
|
|
42
47
|
current_section = task.name
|
|
43
48
|
by_section[current_section] = []
|
|
44
49
|
else
|
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.13.
|
|
4
|
+
version: 0.13.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vince Broz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-08-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|