rubocop-rspec_rails 2.28.3 → 2.30.0

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: bb6fd80f5adfc6edb60fb77ecfa69b4aeba6b7a1011d30c70a1e6fee6bb2d417
4
- data.tar.gz: 6cc5cd4b185823f7fa4f114f3d4b911789d997774c40207132d4ba1d6ab7ce01
3
+ metadata.gz: 63cc745325cc4d3036a64bb2978b54cef08693ab2be90cfe0c36bb9a3c6df8cb
4
+ data.tar.gz: 23bb17ac8270e87d87b7d010e3b76f0b77445b319a4b0b8255b082eed6ca9188
5
5
  SHA512:
6
- metadata.gz: 30246a5475ac1ebf858bf1f0765c01a5e6d740fd70fe23b09f5c45ab87dfe673d2983a8826569d0cc9dc678e4be1e52ac2da704cd4f6e950689e862aa6862e5b
7
- data.tar.gz: 1ba553cf7599cb25c86435f2d50fdb2d005703d855e568fc4fb3b9ef843679ef5f7477a95d37b96573884958a0a2196c36b97b317c8faec96f9db4a0e313abf5
6
+ metadata.gz: 2df5e064355ce4bdc2e00d2124d6a85d76006b0dd1f8234a6bbe4e1045c750dd5a6963f040978226c040cce52be31dc6d2eb3950213043103417fd4a371a18b2
7
+ data.tar.gz: 04371c175f87e01088652c46485b1a41a4e263291bd76eb79adcdae57881691d377984f4e3814be01cdef34f9f3594f554939c8ec728b93792ce1670879f6e17
data/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 2.30.0 (2024-06-12)
6
+
7
+ - Fix an runtime error for rubocop-rspec +3.0. ([@bquorning])
8
+
9
+ ## 2.29.1 (2024-06-12)
10
+
11
+ - Bump RuboCop requirement to +1.61. ([@ydah])
12
+
13
+ ## 2.29.0 (2024-06-08)
14
+
15
+ - Support `AutoCorrect: contextual` option for LSP. ([@ydah])
16
+
5
17
  ## 2.28.3 (2024-04-11)
6
18
 
7
19
  - Fix an error for Ambiguous cop name `RSpec/Rails/HttpStatus`. ([@ydah])
data/config/default.yml CHANGED
@@ -66,6 +66,7 @@ RSpecRails/MinitestAssertions:
66
66
 
67
67
  RSpecRails/NegationBeValid:
68
68
  Description: Enforces use of `be_invalid` or `not_to` for negated be_valid.
69
+ AutoCorrect: contextual
69
70
  Safe: false
70
71
  EnforcedStyle: not_to
71
72
  SupportedStyles:
@@ -73,6 +74,7 @@ RSpecRails/NegationBeValid:
73
74
  - be_invalid
74
75
  Enabled: pending
75
76
  VersionAdded: '2.23'
77
+ VersionChanged: '2.29'
76
78
  Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/NegationBeValid
77
79
 
78
80
  RSpecRails/TravelAround:
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RuboCop
4
+ module RSpecRails
5
+ module Cop
6
+ # Source and spec generator for new cops
7
+ #
8
+ # This generator will take a cop name and generate a source file
9
+ # and spec file when given a valid qualified cop name.
10
+ # @api private
11
+ class Generator < RuboCop::Cop::Generator
12
+ def todo
13
+ <<~TODO
14
+ Do 4 steps:
15
+ 1. Modify the description of #{badge} in config/default.yml
16
+ 2. Implement your new cop in the generated file!
17
+ 3. Add an entry about new cop to CHANGELOG.md
18
+ 4. Commit your new cop with a message such as
19
+ e.g. "Add new `#{badge}` cop"
20
+ TODO
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module RSpecRails
5
5
  # Version information for the RSpec Rails RuboCop plugin.
6
6
  module Version
7
- STRING = '2.28.3'
7
+ STRING = '2.30.0'
8
8
  end
9
9
  end
10
10
  end
@@ -4,9 +4,6 @@ require 'pathname'
4
4
  require 'yaml'
5
5
 
6
6
  require 'rubocop'
7
-
8
- require 'rubocop/rspec/language/node_pattern'
9
-
10
7
  require 'rubocop/rspec/language'
11
8
 
12
9
  require_relative 'rubocop/rspec_rails/version'
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rspec_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.28.3
4
+ version: 2.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Quorning
8
8
  - Phil Pirozhkov
9
9
  - Maxim Krizhanovsky
10
10
  - Yudai Takada
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2024-04-11 00:00:00.000000000 Z
14
+ date: 2024-06-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rubocop
@@ -19,18 +19,38 @@ dependencies:
19
19
  requirements:
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: '1.40'
22
+ version: '1.61'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '1.40'
29
+ version: '1.61'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rubocop-rspec
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - "~>"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 3.0.1
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '3'
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 3.0.1
30
50
  description: |
31
51
  Code style checking for RSpec Rails files.
32
52
  A plugin for the RuboCop code style enforcing & linting tool.
33
- email:
53
+ email:
34
54
  executables: []
35
55
  extensions: []
36
56
  extra_rdoc_files:
@@ -52,6 +72,7 @@ files:
52
72
  - lib/rubocop/cop/rspec_rails/travel_around.rb
53
73
  - lib/rubocop/cop/rspec_rails_cops.rb
54
74
  - lib/rubocop/rspec_rails/config_formatter.rb
75
+ - lib/rubocop/rspec_rails/cop/generator.rb
55
76
  - lib/rubocop/rspec_rails/description_extractor.rb
56
77
  - lib/rubocop/rspec_rails/version.rb
57
78
  homepage: https://github.com/rubocop/rubocop-rspec_rails
@@ -61,7 +82,7 @@ metadata:
61
82
  changelog_uri: https://github.com/rubocop/rubocop-rspec_rails/blob/master/CHANGELOG.md
62
83
  documentation_uri: https://docs.rubocop.org/rubocop-rspec_rails/
63
84
  rubygems_mfa_required: 'true'
64
- post_install_message:
85
+ post_install_message:
65
86
  rdoc_options: []
66
87
  require_paths:
67
88
  - lib
@@ -76,8 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
97
  - !ruby/object:Gem::Version
77
98
  version: '0'
78
99
  requirements: []
79
- rubygems_version: 3.5.3
80
- signing_key:
100
+ rubygems_version: 3.5.9
101
+ signing_key:
81
102
  specification_version: 4
82
103
  summary: Code style checking for RSpec Rails files
83
104
  test_files: []