sevencop 0.40.0 → 0.40.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01427c343e05de1b3f41b169f44ab8e7343cbff90b7d843281f5b2a8f9ea1485
4
- data.tar.gz: b5ba91998a6cd7f993c44205d553227e5f146c51bafe73cd0210b7a4a90dbb52
3
+ metadata.gz: b9d291c9bf0ec6bb349a6f7a70ebca387c933ddb9ca4a84bfa34f8906b044d68
4
+ data.tar.gz: 3d005e1c0636815cf76667e80866a48f6279bfbbbe251f58920f356728ad96ec
5
5
  SHA512:
6
- metadata.gz: ff51acef6e03fcb4da1d5e53802150e055f8066270e742691920a66f42b3245d62689fe76c680930d53a1361741733132653ce1f134cc1ecbcbc9185367f92f8
7
- data.tar.gz: 20dc6769ffeb7b03dc262aa720120d2b1f35de0c61b8617dafbdc7d54f8b25085118b3b01d97630525064befc99126be4d8224474a28d7c888a830e9ff5f3986
6
+ metadata.gz: be809d23bb893cbbff03f3bdd6a95f79db7aac41f3920defba5f55393b71f24b44cb0fd178f4e2920e00e94fbc9f724b73d7ee4d76c53bbca43a266cb053e1ca
7
+ data.tar.gz: 66342ee1af89275c848a4c8c11ff06337fbfefb53a659c350621cdc5b0bc7fb784a1ee58cf77fcf1556bb2e1b8ca8e7ac896c10a02eee67ab6d3716850004a66
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sevencop (0.40.0)
4
+ sevencop (0.40.1)
5
5
  activesupport
6
6
  rubocop
7
7
 
data/config/default.yml CHANGED
@@ -139,7 +139,7 @@ Sevencop/RSpecExamplesInSameGroup:
139
139
 
140
140
  Sevencop/RSpecMatcherConsistentParentheses:
141
141
  Description: |
142
- Keep RSpec matcher parentheses style consistent.
142
+ Keep consistent parentheses style in RSpec matchers.
143
143
  Enabled: false
144
144
  Include:
145
145
  - "**/spec/**/*.rb"
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module Cop
5
5
  module Sevencop
6
- # Keep RSpec matcher parentheses style consistent.
6
+ # Keep consistent parentheses style in RSpec matchers.
7
7
  #
8
8
  # @example
9
9
  # # bad
@@ -14,7 +14,7 @@ module RuboCop
14
14
  class RSpecMatcherConsistentParentheses < Base
15
15
  extend AutoCorrector
16
16
 
17
- MSG = 'Keep matcher parentheses style consistent.'
17
+ MSG = 'Keep consistent parentheses style in RSpec matchers.'
18
18
 
19
19
  RESTRICT_ON_SEND = %i[to].freeze
20
20
 
@@ -43,7 +43,7 @@ module RuboCop
43
43
  # @param [RuboCop::AST::Node, nil] node
44
44
  # @return [Boolean]
45
45
  def inconsistent?(node)
46
- node.send_type? && missing_parentheses?(node)
46
+ node&.send_type? && missing_parentheses?(node)
47
47
  end
48
48
 
49
49
  # @param [RuboCop::AST::SendNode] node
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sevencop
4
- VERSION = '0.40.0'
4
+ VERSION = '0.40.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sevencop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.40.0
4
+ version: 0.40.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura