rubocop-bitcrowd 2.2.0 → 2.3.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: 86c9da0eecaf763edb72fb430531fab0988e761cfedd2e8d0cb0e8aa793f31b0
4
- data.tar.gz: 3cd5e6f016c8430907174eede5dd30b672922b095a520494b5ba21c57cbaba95
3
+ metadata.gz: f1afcad46acf30a346e3dd85108dac524181ae6b6fe2f70bc9e2b3137b48d1ef
4
+ data.tar.gz: d07e727d1280c85c3eecf6f15637b6b3de822c41f9d88eef456ce2f84c38dc4e
5
5
  SHA512:
6
- metadata.gz: ce06d21b81fcf2633dc70d034dbc4a4fdb4f62f132f3fe0d928e3a665141e3150e6c01c8c99f6ef824dafbe9168bab0eb90fcf7cf94730e7356d54dba1ed1277
7
- data.tar.gz: a2dc27ee98953f2f997ff44465f0f313ce2c2e218c28a7ddb8ab9509c1593b89e427c3b8845b30a4b6e3828ed844976f494f333328776dc72b3454a402ee46ce
6
+ metadata.gz: bd4a62e0d3be6e42d1ec0966312aad254faa2d0355c8feb4fe1092e7bb880ce9e58ea7e4a2a4bad6541dabc20047fe0634ad0a83d066c94a419b44d1da3b134f
7
+ data.tar.gz: f54cfa9b71918f256c99e068afa8940b4ffb8282661ed98cfe4fb8d5fcfb0be2ec2413add7f610a9abbd558b986f4e03143bac73dcabf0bedbd4b239390797dd
data/.rubocop.yml CHANGED
@@ -42,7 +42,7 @@ Metrics/MethodLength:
42
42
 
43
43
  Metrics/BlockLength:
44
44
  Enabled: true
45
- ExcludedMethods: ['describe', 'context', 'define', 'factory', 'namespace']
45
+ IgnoredMethods: ['describe', 'context', 'define', 'factory', 'namespace']
46
46
 
47
47
  Metrics/AbcSize:
48
48
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,32 +1,24 @@
1
1
  # Changelog rubocop-bitcrowd
2
2
 
3
- Presented in reverse chronological order.
3
+ Presented in reverse chronological order. Document adheres to [keepachangelog.com](https://keepachangelog.com/en/1.0.0/), though our sections are called "Deprecations", "Potentially breaking changes", "New features", and "Fixes".
4
4
 
5
- ## master
5
+ ## Unreleased
6
6
 
7
- https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.2.0...HEAD
7
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.3.0...HEAD
8
8
 
9
- *Put high-level summary here before releasing a new version*
9
+ ## `2.3.0` (2022-02-21)
10
10
 
11
- ### Deprecations:
11
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.2.0...v2.3.0
12
12
 
13
- * *Put deprecations here (in a brief bullet point)*
14
-
15
- ### Potentially breaking changes:
16
-
17
- * *Put potentially breaking changes here (in a brief bullet point)*
18
-
19
- ### New features:
20
-
21
- * *Put new features here (in a brief bullet point)*
22
-
23
- ### Fixes:
13
+ ### Fixes
24
14
 
25
- * *Put fixes here (in a brief bullet point)*
15
+ * [#42](https://github.com/bitcrowd/rubocop-bitcrowd/pull/42) Fix deprecation warning by renaming `ExcludedMethods` to `IgnoredMethods` and lock the Rubocop version to `>= 1.5.0`.
16
+ See rubocop/rubocop#9098 and https://github.com/rubocop/rubocop/blob/1e55b1aa5e4c5eaeccad5d61f08b7930ed6bc341/relnotes/v1.5.0.md
17
+ * [#43](https://github.com/bitcrowd/rubocop-bitcrowd/pull/43) Update documentation mentioning the `master` branch, to use `main` instead
26
18
 
27
19
  ## `2.2.0` (2020-03-26)
28
20
 
29
- https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.2.0...HEAD
21
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.3...v2.2.0
30
22
 
31
23
  With this version update, `rubocop-bitcrowd` adapts to RuboCop's new modularized architecture of having separate gems for different cop targets (Rails, Rspec, Performance).
32
24
 
@@ -64,21 +56,21 @@ inherit_gem:
64
56
  - .rubocop-performance.yml
65
57
  ```
66
58
 
67
- ### Potentially breaking changes:
59
+ ### Potentially breaking changes
68
60
 
69
61
  * [#34](https://github.com/bitcrowd/rubocop-bitcrowd/pull/34) Extract `rails` cops into separate configuration based on [rubocop-rails](https://github.com/rubocop-hq/rubocop-rails), following the modularization of `rubocop` itself.
70
62
 
71
- ### New features:
63
+ ### New features
72
64
 
73
65
  * [#32](https://github.com/bitcrowd/rubocop-bitcrowd/pull/32) add possibility to include [rubocop-performance](https://github.com/rubocop-hq/rubocop-performance) cops.
74
66
 
75
67
  ## `2.1.3` (2020-03-26)
76
68
 
77
- https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.3...HEAD
69
+ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.2...v2.1.3
78
70
 
79
71
  This releases silences some deprecation warnings and locks down the minimal `rubocop` version `rubocop-bitcrowd` depends on.
80
72
 
81
- ### Fixes:
73
+ ### Fixes
82
74
 
83
75
  * [#31](https://github.com/bitcrowd/rubocop-bitcrowd/pull/31) Fix deprecation warning by moving `LineLength` cop from `Metrics` to `Layout` and lock the Rubocop version to `>= 0.78.0` and `< 0.79`.
84
76
  * [#31](https://github.com/bitcrowd/rubocop-bitcrowd/pull/31) Lock down the minimal `rubocop` version we depend on. Similar to [rubocop-rspec](https://github.com/rubocop-hq/rubocop-rspec) we're only setting the lower boundary now.
@@ -87,7 +79,7 @@ This releases silences some deprecation warnings and locks down the minimal `rub
87
79
 
88
80
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.1...v2.1.2
89
81
 
90
- ### Fixes:
82
+ ### Fixes
91
83
 
92
84
  * Remove rubocop version lock to 0.57.x
93
85
 
@@ -95,7 +87,7 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.1...v2.1.2
95
87
 
96
88
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.0...v2.1.1
97
89
 
98
- ### Fixes:
90
+ ### Fixes
99
91
 
100
92
  * Add compartment to `Documentation` cop
101
93
 
@@ -103,7 +95,8 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.1.0...v2.1.1
103
95
 
104
96
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v2.0.0...v2.1.0
105
97
 
106
- ### New features:
98
+ ### New features
99
+
107
100
  * Exclude `namespace` method from `Metrics/BlockLength` to support longer namespace definitions in rake tasks.
108
101
 
109
102
  ## `2.0.0` (2019-02-06)
@@ -122,7 +115,7 @@ inherit_mode:
122
115
  - Exclude
123
116
  ```
124
117
 
125
- ### Potentially breaking changes:
118
+ ### Potentially breaking changes
126
119
 
127
120
  * require a rubocop version >= 0.57.0
128
121
  * remove directories rubocop already excludes by default from the `AllCops:Exclude` list
@@ -135,7 +128,7 @@ inherit_mode:
135
128
  - Exclude
136
129
  ```
137
130
 
138
- ### Fixes:
131
+ ### Fixes
139
132
 
140
133
  * Also exclude the `tmp`, `log` and `storage` directories from being inspected.
141
134
  Working on a Rails application, especially the `tmp` directory fills up over time and slows down linting the project enormously. Same goes for the `storage` directory: here rubocop also has to dig through deeply nested folder structures.
@@ -147,12 +140,12 @@ This release is a maintenance release. Most notably it let's us be compatile wit
147
140
 
148
141
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.1...v1.3.0
149
142
 
150
- ### New features:
143
+ ### New features
151
144
 
152
145
  * added `staging` to the list of known environments
153
146
  * enforce frozen_string_literal comment
154
147
 
155
- ### Fixes:
148
+ ### Fixes
156
149
 
157
150
  * between rubocop version 0.55 and 0.56 we stopped processing most files because we overwrote `AllCops/Include`.
158
151
  This is fixed, but requires a rubocop version of 0.56 or higher.
@@ -162,7 +155,7 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.1...v1.3.0
162
155
 
163
156
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.0...v1.2.1
164
157
 
165
- ### Potentially breaking changes:
158
+ ### Potentially breaking changes
166
159
 
167
160
  * exclude spec/features from the `RSpec/ExampleLength` cop
168
161
 
@@ -174,7 +167,7 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.2.0...v1.2.1
174
167
 
175
168
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.2...v1.2.0
176
169
 
177
- ### Fixes:
170
+ ### Fixes
178
171
 
179
172
  * The cop `Layout/SpaceInsideBrackets` was deprecated and split into two sub-cops:
180
173
  * `Layout/SpaceInsideArrayLiteralBrackets`
@@ -184,16 +177,15 @@ https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.2...v1.2.0
184
177
 
185
178
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.1...v1.1.2
186
179
 
187
- ### Potentially breaking changes:
180
+ ### Potentially breaking changes
188
181
 
189
182
  * Changed to nested module style see: https://github.com/bitcrowd/rubocop-bitcrowd/pull/4
190
183
 
191
-
192
184
  ## `1.1.1` (2017-09-21)
193
185
 
194
186
  https://github.com/bitcrowd/rubocop-bitcrowd/compare/v1.1.0...v1.1.1
195
187
 
196
- ### Fixes:
188
+ ### Fixes
197
189
 
198
190
  * exclude db/schema.rb from being evaluated
199
191
  * the cop `Style/SpaceInsideBrackets` was renamed to `Layout/SpaceInsideBrackets`
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # rubocop-bitcrowd 🚓
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/rubocop-bitcrowd.svg)](https://badge.fury.io/rb/rubocop-bitcrowd)
4
+
3
5
  The bitcrowd rubocop.yml as a gem.
4
6
 
5
7
  ## Installation
@@ -7,7 +9,6 @@ The bitcrowd rubocop.yml as a gem.
7
9
  Add this lines to your application's Gemfile:
8
10
 
9
11
  ```ruby
10
- gem 'rubocop', require: false
11
12
  gem 'rubocop-bitcrowd', require: false
12
13
  ```
13
14
 
@@ -78,13 +79,13 @@ This gem provides a simple script, that can help you with this task:
78
79
 
79
80
  Any contributions are welcome. If you attempt to change the behavior of this gem it might be wise to open an issue first to discuss the change. Otherwise feel free to open a PR.
80
81
 
81
- Every PR should have a change in the [CHANGELOG](./CHANGELOG.md) file (within the [`master` section](./CHANGELOG.md#master)) briefly outlining the attempted changes.
82
+ Every PR should have a change in the [CHANGELOG](./CHANGELOG.md) file (within the [`main` section](./CHANGELOG.md#main)) briefly outlining the attempted changes.
82
83
 
83
84
  ### Release a new version
84
85
 
85
86
  To release a new version, follow these steps:
86
87
 
87
- 1. update the [CHANGELOG](./CHANGELOG.md) to reflect the new release and prepare a new [`master` section](./CHANGELOG.md#master)
88
+ 1. update the [CHANGELOG](./CHANGELOG.md) to reflect the new release and prepare a new [`main` section](./CHANGELOG.md#main)
88
89
  2. update the version in `rubocop-bitcrowd.gemspec` according to [semver](https://semver.org/)
89
90
  3. commit that change
90
91
  4. run `rake release`
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'rubocop-bitcrowd'
3
- spec.version = '2.2.0'
3
+ spec.version = '2.3.0'
4
4
  spec.authors = ['bitcrowd']
5
5
  spec.email = ['info@bitcrowd.net']
6
6
 
@@ -47,11 +47,11 @@ Gem::Specification.new do |spec|
47
47
  spec.executables = 'rubocop-autofix'
48
48
 
49
49
  spec.metadata = {
50
- 'changelog_uri' => 'https://github.com/bitcrowd/rubocop-bitcrowd/blob/master/CHANGELOG.md'
50
+ 'changelog_uri' => 'https://github.com/bitcrowd/rubocop-bitcrowd/blob/main/CHANGELOG.md'
51
51
  }
52
52
 
53
- spec.add_runtime_dependency 'rubocop', '>= 0.78.0'
53
+ spec.add_runtime_dependency 'rubocop', '>= 1.5.0'
54
54
 
55
- spec.add_development_dependency 'bundler', '~> 1.14'
55
+ spec.add_development_dependency 'bundler', '>= 2.1.0'
56
56
  spec.add_development_dependency 'rake', '~> 12.3.3'
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-bitcrowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bitcrowd
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-26 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.78.0
19
+ version: 1.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.78.0
26
+ version: 1.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.14'
33
+ version: 2.1.0
34
34
  type: :development
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: '1.14'
40
+ version: 2.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -78,7 +78,7 @@ homepage: https://github.com/bitcrowd/rubocop-bitcrowd
78
78
  licenses:
79
79
  - MIT
80
80
  metadata:
81
- changelog_uri: https://github.com/bitcrowd/rubocop-bitcrowd/blob/master/CHANGELOG.md
81
+ changelog_uri: https://github.com/bitcrowd/rubocop-bitcrowd/blob/main/CHANGELOG.md
82
82
  post_install_message: |2+
83
83
 
84
84
  Starting with this version of rubocop-bitcrowd, we are following RuboCop's
@@ -121,8 +121,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.0.3
125
- signing_key:
124
+ rubygems_version: 3.1.2
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: The bitcrowd rubocop.yml as a gem.
128
128
  test_files: []
129
+ ...