fablicop 1.1.1 → 1.2.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: 6569d42b358ee7df8ca5eabfa95d57750e05dd57cb80f2994f54b9cab6658816
4
- data.tar.gz: 36dbc034a61fe4c3d972d3b5fdfc53603cfc1fed4bdf1ae58f22c64ab3c98977
3
+ metadata.gz: 1da5be309dccb18d67bc391f16abb3ebd46082e6c86d09de815bf315d3c55451
4
+ data.tar.gz: bf2e87b986ee9a0ffdadc8fbf07b6b1b6a9e5684bc0197cba4df486bf01aff86
5
5
  SHA512:
6
- metadata.gz: dc26ed8cebee6f4bbbe62e7d34f42a244badecafcbae9c58c63a011e50a2b612d431f51d8202351031594ca55e2e48d4d2ef8c1eb9daca52c065801f39c31204
7
- data.tar.gz: ecb8d33f436d7b3c4e1d657b57438785952a6038d8eb055ca777a9ddf04bf091f734d7d32447364eccddcd58871363a7d24b15b16da2ebcf88d9828c6b3a4f4b
6
+ metadata.gz: ca1d101129fe52739eeb75a4b8834688ed8aa49661b0b5b64f6561a43158439b311634f54490f6f15f82d0ec864ed6fc8d69c07858d64686968610bf2de52f9f
7
+ data.tar.gz: 94079ae388b96daf77a1c24ffa4c779f15f56ca6492a2d0d98824dd468b57dfd057e572b4c379e482ae011bbd6d192f94077e0fbe788879d8ca738c8927af5d2
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "09:00"
8
+ timezone: Asia/Tokyo
9
+ - package-ecosystem: github-actions
10
+ directory: "/"
11
+ schedule:
12
+ interval: weekly
13
+ time: "09:00"
14
+ timezone: Asia/Tokyo
15
+ ignore:
16
+ - dependency-name: "*"
17
+ update-types: ["version-update:semver-minor", "version-update:semver-patch"]
@@ -14,7 +14,7 @@ jobs:
14
14
  matrix:
15
15
  ruby: ["2.5", "2.6", "2.7", "3.0"]
16
16
  steps:
17
- - uses: actions/checkout@v2
17
+ - uses: actions/checkout@v3
18
18
  - uses: ruby/setup-ruby@v1
19
19
  with:
20
20
  ruby-version: ${{ matrix.ruby }}
@@ -28,7 +28,7 @@ jobs:
28
28
  matrix:
29
29
  ruby: ["2.5", "2.6", "2.7", "3.0"]
30
30
  steps:
31
- - uses: actions/checkout@v2
31
+ - uses: actions/checkout@v3
32
32
  - uses: ruby/setup-ruby@v1
33
33
  with:
34
34
  ruby-version: ${{ matrix.ruby }}
data/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased](https://github.com/Fablic/fablicop/tree/HEAD)
4
+
5
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v1.2.1...HEAD)
6
+
7
+ ## [v1.2.1](https://github.com/Fablic/fablicop/tree/v1.2.1) (2022-04-15)
8
+
9
+ [Full Changelog](https://github.com/Fablic/fablicop/compare/v0.1.0...v0.2.0)
10
+
11
+ - Update rubocop requirement from ~> 1.14.0 to >= 1.14, < 1.28 [\#71](https://github.com/Fablic/fablicop/pull/71) ([dependabot](https://github.com/apps/dependabot))
12
+ - disable `RSpec/ExampleLength` and `RSpec/NamedSubject` [\#70](https://github.com/Fablic/fablicop/pull/70) ([tana2034](https://github.com/tana2034))
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
+ ![fablicop](https://img.shields.io/gem/v/fablicop?label=fablicop)
2
+
1
3
  # fablicop
2
4
 
3
5
  fablicop is a RuboCop configration gem.
4
- It assumes your project is using Ruby on Rails, so some Cops prefixed with `Rails` are enabled out of the box.
6
+ It assumes your project is using Ruby on Rails and RSpec, so some Cops prefixed with `Rails` and `RSpec` are enabled out of the box.
5
7
  In other words, it's not appropriate to use it with non-Rails projects.
6
8
 
7
9
  ## Installation
@@ -210,7 +210,10 @@ Metrics/BlockLength:
210
210
  - "app/admin/*.rb"
211
211
  - "config/**/*.rb"
212
212
 
213
+ # We discussed internally about this parameter and decided to follow this configuration.
214
+ # https://github.com/onk/onkcop/blob/8066859d3d00328146c1da9e57bdd4a951974ef2/config/rubocop.yml#L113-L116
213
215
  Metrics/AbcSize:
216
+ Max: 20
214
217
  Exclude:
215
218
  - "test/**/*.rb"
216
219
 
@@ -222,3 +225,17 @@ Metrics/ClassLength:
222
225
  # There are many things to think about before taking care of it.
223
226
  Naming/RescuedExceptionsVariableName:
224
227
  Enabled: false
228
+
229
+ ##################### RSpec ##################################
230
+
231
+ # disabling to not to show errors if there is no when/with/without in the context
232
+ RSpec/ContextWording:
233
+ Enabled: false
234
+
235
+ # controller specs and request specs are hard to name reasonably
236
+ RSpec/NamedSubject:
237
+ Enabled: false
238
+
239
+ # because response validation in `request spec` is expected to result in large rows
240
+ RSpec/ExampleLength:
241
+ Enabled: false
data/fablicop.gemspec CHANGED
@@ -30,10 +30,11 @@ Gem::Specification.new do |spec|
30
30
  spec.bindir = 'exe'
31
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
32
  spec.require_paths = ['lib']
33
+ spec.metadata['rubygems_mfa_required'] = 'true'
33
34
 
34
35
  spec.required_ruby_version = '>= 2.5.0'
35
36
 
36
- spec.add_dependency 'rubocop', '~> 1.14.0'
37
+ spec.add_dependency 'rubocop', '>= 1.14', '< 1.28'
37
38
  spec.add_dependency 'rubocop-rspec', '>= 1.15.1'
38
39
  spec.add_dependency 'rubocop-rails'
39
40
  spec.add_development_dependency 'bundler'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fablicop
4
- VERSION = '1.1.1'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fablicop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tommy
@@ -10,22 +10,28 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-09-01 00:00:00.000000000 Z
13
+ date: 2022-04-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '1.14'
22
+ - - "<"
20
23
  - !ruby/object:Gem::Version
21
- version: 1.14.0
24
+ version: '1.28'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
- - - "~>"
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '1.14'
32
+ - - "<"
27
33
  - !ruby/object:Gem::Version
28
- version: 1.14.0
34
+ version: '1.28'
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: rubocop-rspec
31
37
  requirement: !ruby/object:Gem::Requirement
@@ -120,10 +126,12 @@ executables:
120
126
  extensions: []
121
127
  extra_rdoc_files: []
122
128
  files:
129
+ - ".github/dependabot.yml"
123
130
  - ".github/workflows/run-ci.yml"
124
131
  - ".gitignore"
125
132
  - ".rspec"
126
133
  - ".rubocop.yml"
134
+ - CHANGELOG.md
127
135
  - CODE_OF_CONDUCT.md
128
136
  - Gemfile
129
137
  - LICENSE.txt
@@ -141,7 +149,8 @@ files:
141
149
  homepage: https://github.com/Fablic/fablicop
142
150
  licenses:
143
151
  - MIT
144
- metadata: {}
152
+ metadata:
153
+ rubygems_mfa_required: 'true'
145
154
  post_install_message:
146
155
  rdoc_options: []
147
156
  require_paths:
@@ -157,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
166
  - !ruby/object:Gem::Version
158
167
  version: '0'
159
168
  requirements: []
160
- rubygems_version: 3.2.22
169
+ rubygems_version: 3.3.7
161
170
  signing_key:
162
171
  specification_version: 4
163
172
  summary: fablicop is a RuboCop configration gem.