onkcop 0.51.0.0 → 0.51.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/config/rails.yml +31 -3
- data/config/rspec.yml +4 -0
- data/lib/onkcop/version.rb +1 -1
- data/onkcop.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98ebeeaf9fdd8e7aec88b437c111120bc0b2b3535dce8148de2cb678f4aea372
|
4
|
+
data.tar.gz: d3ff27055afeacdf48eeafb9f7ba44ca9232f772b03f8a6a35293d34d893c881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0f9d3c5ebf2f5bc16ae9f281418fa357b4a5a8e99e30d2061564d7c68b7adcb704934e3fd4b2ce8ce9aeec5ccab7950c843eb0db399eecb05fb596aa9cce915
|
7
|
+
data.tar.gz: dd3dda89165695b72873c4cc1892ec6752f6b20aaa5a434b59b4b78e5199056328304edf9739b2a8b31c0b0e8564d575a0157c3f3a3ed03467a14149a0e4e861
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# onkcop
|
2
2
|
|
3
|
+
## v0.51.0.1 (2017-10-20)
|
4
|
+
|
5
|
+
* Update `rubocop-rspec` to v1.20.0
|
6
|
+
* Disable new `RSpec/ContextWording` cop
|
7
|
+
* Disable `Rails/Delegate`, `Rails/Exit`, `Rails/FilePath`,
|
8
|
+
`Rails/PluralizationGrammar` and `Rails/Present` cops
|
9
|
+
* Enable `Rails/NotNullColumn` cop
|
10
|
+
|
11
|
+
|
3
12
|
## v0.51.0.0 (2017-10-20)
|
4
13
|
|
5
14
|
* Update `rubocop` v0.51.0 and `rubocop-rspec` v1.19.0
|
data/config/rails.yml
CHANGED
@@ -1,9 +1,37 @@
|
|
1
1
|
Rails:
|
2
2
|
Enabled: true
|
3
3
|
|
4
|
-
#
|
5
|
-
#
|
6
|
-
|
4
|
+
# ActiveRecord で association を安易に delegate すると
|
5
|
+
# N+1 を起こしまくるので、なるべく delegate 的なメソッドを使わずに
|
6
|
+
# コストが掛かっていることを自覚できるようにしておきたい。
|
7
|
+
# メソッドでも危ういが、DSL だと更に意識から抜けるので無効に。
|
8
|
+
Rails/Delegate:
|
9
|
+
Enabled: false
|
10
|
+
|
11
|
+
# 意図せずに exit を書くこと無いでしょ?
|
12
|
+
# 毎回 Exclude / rubocop:disable する方が手間。
|
13
|
+
Rails/Exit:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
# -File.join(Rails.root, "app", "models")
|
17
|
+
# +Rails.root.join("app", "models")
|
18
|
+
# はともかく
|
19
|
+
# -Rails.root.join("app/models")
|
20
|
+
# +Rails.root.join("app", "models")
|
21
|
+
# は Pathname#plus が行っているので意味無いのでは?
|
22
|
+
Rails/FilePath:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
# 桁が揃わなくて気持ち悪い
|
26
|
+
# create(:user, logged_in_at: 1.day.ago)
|
27
|
+
# create(:user, logged_in_at: 2.days.ago)
|
28
|
+
Rails/PluralizationGrammar:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
# unless 文を使ってでも「空」を条件にした方が
|
32
|
+
# 「存在する」よりも「空」の方が状態として特別なので
|
33
|
+
# 脳内モデルと合致しやすい。
|
34
|
+
Rails/Present:
|
7
35
|
Enabled: false
|
8
36
|
|
9
37
|
# method_missing を隠したい場合は respond_to? を使うべき
|
data/config/rspec.yml
CHANGED
data/lib/onkcop/version.rb
CHANGED
data/onkcop.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_dependency "rubocop", "~> 0.51.0"
|
23
|
-
spec.add_dependency "rubocop-rspec", ">= 1.
|
23
|
+
spec.add_dependency "rubocop-rspec", ">= 1.20.0"
|
24
24
|
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "rake"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onkcop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.51.0.
|
4
|
+
version: 0.51.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takafumi ONAKA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.20.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: 1.
|
40
|
+
version: 1.20.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|