rubocop-minitest 0.31.0 → 0.31.1

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: a6ade83745f0a777cea6d2e37dfc8f00e7bc0857be549dd5b2d9544df4a201eb
4
- data.tar.gz: 2afc383a877712b659efc1771fa6d44093ce4d11618ff37b23aa561dd1a986f6
3
+ metadata.gz: 121360d540ec5e0fcb507855d4601990650d4b785cb5b50f6260ac3d081a86df
4
+ data.tar.gz: fc9be860f55393d27a4cce401e6e2362d9460eaec3c79fd4bcec5eb67b5958f6
5
5
  SHA512:
6
- metadata.gz: fb1ecc48cb4f9563903aefa53ff3667f5509aa4f785bdb6fb1ab6ddfa240e5f034f0eae80ce991bde1ff19a925e426fdb19f78d3c41928c426da0068ad686d78
7
- data.tar.gz: 16fbf8fe16331074e1ed953c96b45a327986701fd62a78d8b14325ffeaea96a619a2773f37665c5231fcf5fb90c40ca145fe1d24ae78924199dbb9b223ecab68
6
+ metadata.gz: 06eb166163e30d215c9ae7916eae0fd36c997dd1b26154c53c69da62a3997eac57d3f8a7a0f5c9e4a0ec5340806d8d7e367c3c130f062432f810ba91144d2c9d
7
+ data.tar.gz: ac1c477e1e65bbfcdc5a3bd4096cf49bec8ea0e86839db10c35838015bdf92d8c6e613f383516929ea250a535dff72f69cd979f354bf5534e969681b9ad744ae
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/rubocop-minitest.svg)](https://badge.fury.io/rb/rubocop-minitest)
4
4
  [![CircleCI](https://circleci.com/gh/rubocop/rubocop-minitest.svg?style=svg)](https://circleci.com/gh/rubocop/rubocop-minitest)
5
5
 
6
- A [RuboCop](https://github.com/rubocop/rubocop) extension focused on enforcing Minitest best practices and coding conventions.
6
+ A [RuboCop](https://github.com/rubocop/rubocop) extension focused on enforcing [Minitest](https://github.com/minitest/minitest) best practices and coding conventions.
7
7
  The library is based on the guidelines outlined in the community [Minitest Style Guide](https://minitest.rubystyle.guide).
8
8
 
9
9
  ## Installation
@@ -9,7 +9,6 @@ module RuboCop
9
9
  # @example
10
10
  # # bad
11
11
  # assert("rubocop-minitest" != actual)
12
- # assert(! "rubocop-minitest" == actual)
13
12
  #
14
13
  # # good
15
14
  # refute_equal("rubocop-minitest", actual)
@@ -22,7 +21,7 @@ module RuboCop
22
21
  RESTRICT_ON_SEND = %i[assert].freeze
23
22
 
24
23
  def_node_matcher :assert_not_equal, <<~PATTERN
25
- (send nil? :assert {(send $_ :!= $_) (send (send $_ :! ) :== $_) } $... )
24
+ (send nil? :assert (send $_ :!= $_) $... )
26
25
  PATTERN
27
26
 
28
27
  def on_send(node)
@@ -105,8 +105,7 @@ module RuboCop
105
105
  ASSERTION_PREFIXES.any? do |prefix|
106
106
  method_name = node.method_name
107
107
 
108
- # TODO: Remove the fllowing `to_s` since Ruby 2.7 that supports `Symbol#start_with?`.
109
- method_name.to_s.start_with?(prefix) || node.method?(:flunk)
108
+ method_name.start_with?(prefix) || node.method?(:flunk)
110
109
  end
111
110
  end
112
111
 
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Minitest
5
5
  # This module holds the RuboCop Minitest version information.
6
6
  module Version
7
- STRING = '0.31.0'
7
+ STRING = '0.31.1'
8
8
 
9
9
  def self.document_version
10
10
  STRING.match('\d+\.\d+').to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.31.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2023-05-06 00:00:00.000000000 Z
13
+ date: 2023-09-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  requirements: []
136
- rubygems_version: 3.4.6
136
+ rubygems_version: 3.4.10
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Automatic Minitest code style checking tool.