webit-ruby-rubocop 3.1.16 → 3.1.17

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: 0cdb697dd9a3f98ecb2cfad7cd8c86615d072fd7d81bc6707555e307a8e89a97
4
- data.tar.gz: a66c58409808ba9ca07914ef9f445de5ad3d45451cf6c10279978902191b3d52
3
+ metadata.gz: d33bbe945323db116152b7f86163946f01da3c4018591906b774d2ec72082419
4
+ data.tar.gz: f9e5e5eacf37f7c32d1912b5f3a661089c9b3b355d7cd4fa469ca1b848ad8bb1
5
5
  SHA512:
6
- metadata.gz: ee269ac6b934b22b01d4fb27a32267a6bf25233909f9a75c83bd17c6554f8d838437773c923a889b1cd6290a79dea2f412554889dc9cbcdd1a86d575b4b4a119
7
- data.tar.gz: 032a52fb7ec9ecf0cb89d29a7f857d381a8550a966e460e7bf527dda34ea17a2ea485f25ac863b31d258d8a12145145c27659b9f9aef311236d7862c8f342fb9
6
+ metadata.gz: bfa6be3cc927cdaeb18ccf37291cd7989b9ebab9ec772770aa6c7edd9c1d6ca165cd6c0cf53f7813679be4249d3807d5ffe1b1e4e8ab7f6c404752659a4c50d2
7
+ data.tar.gz: 74500ec64e6cc2680c7653b98092e9631d2e18b0de4782f691d42106719ba86fa78b7f728429be9fe7b444ffba797b8559228b46de29ab204c535b8ebe22d9fe
data/README.md CHANGED
@@ -1,18 +1,15 @@
1
1
  # webit-ruby-rubocop
2
2
 
3
- This gem provides webit specific rubocop configurations. The current webit code conventions can be found here: see https://github.com/webit-de/webit-ruby-styleguide.
3
+ This gem provides webit! specific rubocop configurations. The current webit! code conventions can be found here: see https://github.com/webit-de/webit-ruby-styleguide.
4
4
 
5
- If you are looking for Rails specific configuration, check out [webit-rails-rubocop](https://gitterlabor.webit.de/webit/intern/webit-rails-rubocop).
5
+ If you are looking for Rails specific configuration, check out [webit-rails-rubocop](https://github.com/webit-de/webit-rails-rubocop).
6
6
 
7
7
  ## Installation
8
8
 
9
9
  Add the following line to your Gemfile:
10
10
 
11
11
  ```ruby
12
- # Optionally: Add a custom git source to install gems from gitterlabor more easily.
13
- git_source(:gitterlabor) { |repo| "git@gitterlabor.webit.de:webit/#{repo}.git" }
14
-
15
- gem 'webit-ruby-rubocop', gitterlabor: 'intern/webit-ruby-rubocop'
12
+ gem "webit-ruby-rubocop"
16
13
  ```
17
14
 
18
15
  In your own project, add a `.rubocop.yml` containing this configuration:
@@ -27,26 +24,3 @@ inherit_gem:
27
24
  ```bash
28
25
  $ bundle exec rubocop
29
26
  ```
30
-
31
- ## Migrating to Version 3
32
-
33
- With version 3 of the webit-ruby-rubocop gem we introduced some breaking changes. The following steps will guide you through the update process.
34
-
35
- 1. Update the gem's name in your `Gemfile`:
36
-
37
- ```diff
38
- - gem 'webit-rubocop', gitterlabor: 'intern/webit-ruby-rubocop'
39
- + gem 'webit-ruby-rubocop', gitterlabor: 'intern/webit-ruby-rubocop'
40
- ```
41
-
42
- 2. Update your `.rubocop.yml` file:
43
-
44
- ```diff
45
- - inherit_gem:
46
- - webit-rubocop: config/webit.yml
47
-
48
- + inherit_gem:
49
- + webit-ruby-rubocop: config.yml
50
- ```
51
-
52
- 3. Since version 3, the configuration for Rails cops were moved to [webit-rails-rubocop](https://gitterlabor.webit.de/webit/intern/webit-rails-rubocop). If you need Rails cops as well, follow the installation guide there.
data/config.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  inherit_from:
2
2
  - ./cops/capybara.yml
3
+ - ./cops/capybara/rspec.yml
3
4
  - ./cops/gemspec.yml
4
5
  - ./cops/layout.yml
5
6
  - ./cops/lint.yml
@@ -0,0 +1,26 @@
1
+ Capybara/RSpec/CurrentPathExpectation:
2
+ Enabled: true
3
+
4
+ Capybara/RSpec/HaveContent:
5
+ Enabled: true
6
+
7
+ Capybara/RSpec/HaveSelector:
8
+ Enabled: true
9
+
10
+ Capybara/RSpec/MatchStyle:
11
+ Enabled: true
12
+
13
+ Capybara/RSpec/NegationMatcher:
14
+ Enabled: true
15
+
16
+ Capybara/RSpec/NegationMatcherAfterVisit:
17
+ Enabled: true
18
+
19
+ Capybara/RSpec/PredicateMatcher:
20
+ Enabled: true
21
+
22
+ Capybara/RSpec/SpecificMatcher:
23
+ Enabled: true
24
+
25
+ Capybara/RSpec/VisibilityMatcher:
26
+ Enabled: true
data/cops/capybara.yml CHANGED
@@ -1,32 +1,17 @@
1
- Capybara/ClickLinkOrButtonStyle:
2
- Enabled: true
3
-
4
- Capybara/FindAllFirst:
1
+ Capybara/AssertStyle:
5
2
  Enabled: true
6
3
 
7
- Capybara/MatchStyle:
8
- Enabled: true
9
-
10
- Capybara/NegationMatcher:
4
+ Capybara/ClickLinkOrButtonStyle:
11
5
  Enabled: true
12
6
 
13
- Capybara/NegationMatcherAfterVisit:
7
+ Capybara/FindAllFirst:
14
8
  Enabled: true
15
9
 
16
10
  Capybara/RedundantWithinFind:
17
11
  Enabled: true
18
12
 
19
- Capybara/RSpec/HaveSelector:
20
- Enabled: true
21
-
22
- Capybara/RSpec/PredicateMatcher:
23
- Enabled: true
24
-
25
13
  Capybara/SpecificActions:
26
14
  Enabled: true
27
15
 
28
16
  Capybara/SpecificFinders:
29
17
  Enabled: true
30
-
31
- Capybara/SpecificMatcher:
32
- Enabled: true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webit-ruby-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.16
4
+ version: 3.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roland Schwarzer
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.22.0
33
+ version: 2.23.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 2.22.0
40
+ version: 2.23.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -77,6 +77,7 @@ files:
77
77
  - README.md
78
78
  - config.yml
79
79
  - cops/capybara.yml
80
+ - cops/capybara/rspec.yml
80
81
  - cops/gemspec.yml
81
82
  - cops/layout.yml
82
83
  - cops/lint.yml
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  - !ruby/object:Gem::Version
107
108
  version: '0'
108
109
  requirements: []
109
- rubygems_version: 4.0.3
110
+ rubygems_version: 3.6.9
110
111
  specification_version: 4
111
112
  summary: webit! specific rubocop configurations
112
113
  test_files: []