rubocop-govuk 4.18.0 → 5.0.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: d6cb99939c60787cf3c676cb1190082513654e0d2e3867d423c6bbf297c7e62f
4
- data.tar.gz: 5169199b7c20e3793fc4cdafa265c3bf24afb28d0707e3c19ce487ed96a27e1f
3
+ metadata.gz: 36280cc4a712f00b506c05b517ae5ecb27ed67718482fcc2098d797a6053c2b4
4
+ data.tar.gz: d9382b62d850b2cdd0ec81374cadbf55f2e8935fdd17a47f3b0df1bac7222d4b
5
5
  SHA512:
6
- metadata.gz: e81e37b0befb0611444bd8bc0571a397e55ccbd973c0a317e2f1e1db76e104dccf564c21275b979cf753b12dfe8b77bcacea570fcb96dfdb9f863a104bd5354a
7
- data.tar.gz: 82081549a0f836044540e1edd475b4c1f217b866a2858862e6c7f377c3b18cbd68b6af0157c5202a129e612dacb5907c9a846deb86337951207ed83e1f05eab1
6
+ metadata.gz: 294c80aab2363a31be819c2b0ac5f457d3f8c776a362521a85954f07c6278ee2f5b2283ca7873aa93195f359e166515d53f0639684b824e0f708ab871be139c3
7
+ data.tar.gz: e9dc1b072785b2020deb429510d02adfe61a3557855412288926bcacd7068b57666f264665304ef9cf5989d0269004c578f2a47ac2fe27ca14595b4d4e20f95e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 5.0.0
2
+
3
+ - BREAKING: Update rubocop-rspec to 3.0 which enables by default previously pending cops. See [rubocop-rspec's changelog](https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md#300-2024-06-11) for details.
4
+
1
5
  # 4.18.0
2
6
 
3
7
  * Drop support for Ruby 3.0
data/config/capybara.yml CHANGED
@@ -1,6 +1,6 @@
1
+ require: rubocop-capybara
2
+
1
3
  # Within GOV.UK we use Capybara test method syntax of feature,
2
- # scenario. We don't want this outside of feature or system specs though.
3
- RSpec/Capybara/FeatureMethods:
4
- Exclude:
5
- - 'spec/features/**/*.rb'
6
- - 'spec/system/**/*.rb'
4
+ # scenario.
5
+ Capybara:
6
+ Enabled: true
data/config/rspec.yml CHANGED
@@ -51,3 +51,20 @@ RSpec/ContextWording:
51
51
  - without
52
52
  - and
53
53
  - but
54
+
55
+ # Within GOV.UK we use Capybara test method syntax of feature,
56
+ # scenario.
57
+ # We don't want this cop outside of feature or system specs though.
58
+ RSpec/Dialect:
59
+ # Disables all Capybara-specific methods that have the same native
60
+ # RSpec method (e.g. are just aliases)
61
+ PreferredMethods:
62
+ background: :before
63
+ scenario: :it
64
+ xscenario: :xit
65
+ given: :let
66
+ given!: :let!
67
+ feature: :describe
68
+ Exclude:
69
+ - 'spec/features/**/*.rb'
70
+ - 'spec/system/**/*.rb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-govuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.18.0
4
+ version: 5.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.31.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-capybara
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.21.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 2.21.0
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop-rails
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +100,14 @@ dependencies:
86
100
  requirements:
87
101
  - - '='
88
102
  - !ruby/object:Gem::Version
89
- version: 2.30.0
103
+ version: 3.0.1
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - '='
95
109
  - !ruby/object:Gem::Version
96
- version: 2.30.0
110
+ version: 3.0.1
97
111
  description: Shared RuboCop rules for Ruby projects in GOV.UK
98
112
  email:
99
113
  - govuk-dev@digital.cabinet-office.gov.uk
@@ -132,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
146
  - !ruby/object:Gem::Version
133
147
  version: '0'
134
148
  requirements: []
135
- rubygems_version: 3.5.11
149
+ rubygems_version: 3.5.14
136
150
  signing_key:
137
151
  specification_version: 4
138
152
  summary: RuboCop GOV.UK