checkoff 0.39.2 → 0.39.3

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: e76d0cf72eb0426c6c69b27837d486f9cbe6de2f0782b10acc157f1b305941b1
4
- data.tar.gz: effbabaaccae53bf8e3e843f509bba7477a24a34be44542906bf33e39a6a1f91
3
+ metadata.gz: aa2ffaa601bf3d945584d0a6980995e752540b8360b881b5b43a11687f850580
4
+ data.tar.gz: a3b1cec57d8681bacbda6846c7b2e6687c5c82ed9686b9f8923b724a186c1ed1
5
5
  SHA512:
6
- metadata.gz: a0d0e684e7811ab1ba2637117969e114b1c2c01e8e495f5dd2aa42255ff9d8ee1b67cf6368dcb2908ce1e70000b51c537492a5e812632b2c134ff0b632602510
7
- data.tar.gz: b24402a8cbf03684397dddea78ba3d778cd96fbb9408a828853e737c65b787b7bb1170f14ff5f28d1efb7b599766e944df8f1e2ce27eff93f03e5b02736ccd86
6
+ metadata.gz: '0829ec340d5422c372e8d30fd2e2558bcebf4064efe9204c8976ac7356fc89eade3729b501bcc6b4094869654eaad19bba912b08943ee7b8c3d2e91d0c6bb80b'
7
+ data.tar.gz: 2ec581cea785506d3cf52d4776de02dea6ae260b24a15ade128350a353b50fd41e641ac80a8cdf5de99b51c800b10a86f68efc0a744ca3236bd0261e6ee107e5
@@ -15,7 +15,7 @@ module Overcommit
15
15
  stdout.split("\n").map do |line|
16
16
  # @sg-ignore
17
17
  file, line_no, _message = line.split(':', 3)
18
- Overcommit::Hook::Message.new(:warning, file, line_no.to_i, line)
18
+ Overcommit::Hook::Message.new(:error, file, line_no.to_i, line)
19
19
  end
20
20
  end
21
21
 
data/.overcommit.yml CHANGED
@@ -64,14 +64,20 @@ PreCommit:
64
64
  include:
65
65
  - '**/*.rb'
66
66
  Punchlist:
67
- on_warn: fail
68
67
  command: ['bundle', 'exec', 'punchlist']
69
68
  enabled: true
69
+ problem_on_unmodified_line: warn
70
70
 
71
71
  PrePush:
72
- Minitest:
73
- command: ['ruby', '-Ilib:test/unit:lib/checkoff', '-rbundler/setup', '-rminitest', "-e 'exit! Minitest.run'"]
72
+ RakeTarget:
74
73
  enabled: true
74
+ command: ['bundle', 'exec', 'rake']
75
+ include:
76
+ - 'Rakefile'
77
+ targets:
78
+ - 'clear_metrics'
79
+ - 'test'
80
+ - 'undercover'
75
81
 
76
82
  #PostCheckout:
77
83
  # ALL: # Special hook name that customizes all hooks of this type
data/Gemfile.lock CHANGED
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- checkoff (0.39.2)
15
+ checkoff (0.39.3)
16
16
  activesupport
17
17
  asana (> 0.10.0)
18
18
  cache_method
@@ -185,7 +185,7 @@ module Checkoff
185
185
 
186
186
  def section(workspace_name, project_name, section_name)
187
187
  sections = sections_or_raise(workspace_name, project_name)
188
- sections.find { |section| section.name.chomp(':') == section_name.chomp(':') }
188
+ sections.find { |section| section_key(section.name)&.chomp(':') == section_name&.chomp(':') }
189
189
  end
190
190
  end
191
191
  end
@@ -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.39.2'
6
+ VERSION = '0.39.3'
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.39.2
4
+ version: 0.39.3
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-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport