checkoff 0.13.1 → 0.13.2

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: 8a996aad5215c1625924296ca8c851cb3293968c74e6bc3da78dce7996fa8041
4
- data.tar.gz: 574da8911c1c542f6334ed2baa670dd69a3e09828ec6a76d3d3fe78b5c3e9d7a
3
+ metadata.gz: 02474a060394a81034f63de6adf9753735b16be09b2a86756972dfa98d616a89
4
+ data.tar.gz: 6da399f3f010e90f1f009c5a7ab8af66c78325979a60faddfe97b77da9b9442f
5
5
  SHA512:
6
- metadata.gz: 04d3b2b21b3409665f86035caf13ea1f6662c233f698c88df09cdfc7672abdc797945ba66dcc09076b79fc02e15523aab872b90ce116501cab4f23901427bd63
7
- data.tar.gz: 8f34cc1b54f99aadae356a5be75871ccb8c2e0307c0d40bcc9c496f6b4103a7666e2daaff5db2dfdff3103939dd36cc3810692707f43263da64c94e3488c2842
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.1)
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.1.1)
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.15.0)
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.5.0, < 2.0)
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.5.0)
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)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "result": {
3
- "line": 98.69,
4
- "branch": 91.66
3
+ "line": 99.72,
4
+ "branch": 94.44
5
5
  }
6
6
  }
@@ -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.name =~ /:$/
46
+ if subtask_section?(task)
42
47
  current_section = task.name
43
48
  by_section[current_section] = []
44
49
  else
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Checkoff
4
4
  # Version of library
5
- VERSION = '0.13.1'
5
+ VERSION = '0.13.2'
6
6
  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.13.1
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-07-31 00:00:00.000000000 Z
11
+ date: 2021-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport