onkcop 0.43.0.1 → 0.43.0.2

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
  SHA1:
3
- metadata.gz: bf205fe6bf94f8d450acaf8c081e16a9a5164051
4
- data.tar.gz: e78df0e2d65cfcc82becaf8ef9a59401886052fa
3
+ metadata.gz: 27720efc2d73cbc00e29545fa306149edc88f43b
4
+ data.tar.gz: acc802de2245ba927f516f806a1e211eebe52da1
5
5
  SHA512:
6
- metadata.gz: bc396a9d6185a87cd4329a8e13077de45b19cec915009225eb73bfe3903d376e810057e078afb3e8668231a46b6b5deb3d6daff4778c0cf5315a533832d4afe5
7
- data.tar.gz: a756038a17510c180d362eb4c93fb16635bb7bf198e6693b01a6c0e2ee00210fb14d7f8d091bf446793920ca02381af698e71724b60e7a6e569e80abaed3cc87
6
+ metadata.gz: 5d6040676ff34580c6e24122462451aebf22edb404b4ecd5d009e8772a7b6c80a6b2ff0a577a6807ebf911aa8f60d48d45d7422d2dba27bbe43e3ebc574a81bf
7
+ data.tar.gz: 593fff693ffcb2e4ee98df497d9a83199098ee877d7cbcf81ccd23bc48686484b062bfdd6cc5d7ea8eecc4c770b71ed589b12c3aca4bd1cb8d41dd1fd61c31fc
data/README.md CHANGED
@@ -15,6 +15,8 @@ inherit_gem:
15
15
  - "config/rubocop.yml"
16
16
  # uncomment if use rails cops
17
17
  # - "config/rails.yml"
18
+ # uncomment if use rspec cops
19
+ # - "config/rspec.yml"
18
20
 
19
21
  AllCops:
20
22
  TargetRubyVersion: 2.3
data/config/rspec.yml ADDED
@@ -0,0 +1,26 @@
1
+ require: "rubocop-rspec"
2
+
3
+ # subject はコピペ可搬性よりもそのまま USAGE であって欲しい
4
+ RSpec/DescribedClass:
5
+ Enabled: false
6
+
7
+ # each で回したり aggregate_failures 使ってたりすると厳しい。
8
+ # feature spec は exclude でも良いかもしれない。
9
+ # ヒアドキュメント使うと一瞬で超えるので disable も検討。
10
+ RSpec/ExampleLength:
11
+ Max: 8
12
+
13
+ # let を使うのは context 間で条件が違うものが存在する時だけにしたい。
14
+ # before の方が事前条件を整えていることが分かりやすい。
15
+ RSpec/InstanceVariable:
16
+ Enabled: false
17
+
18
+ # 変に名前つけて呼ぶ方が分かりづらい。
19
+ # テスト対象メソッドを呼ぶだけの subject 以外を書かないようにする方が効く。
20
+ RSpec/NamedSubject:
21
+ Enabled: false
22
+
23
+ # 強く 1 example 1 assertion の立場は取らないが、多すぎてもツラいので。
24
+ # aggregate_failures で囲われていたら無視する的なオプション欲しい。
25
+ RSpec/MultipleExpectations:
26
+ Max: 3
data/config/rubocop.yml CHANGED
@@ -201,7 +201,7 @@ Style/SingleLineBlockParams:
201
201
  Enabled: false
202
202
 
203
203
  # v0.43.0 では
204
- # (1..2).include?(1) : "yes" : "no"
204
+ # (1..2).include?(1) ? "yes" : "no"
205
205
  # が検出される不具合があるので無効にする。
206
206
  # そもそも無効でも良いかも。三項演算子は分かりやすく使いたい。
207
207
  Style/TernaryParentheses:
@@ -1,3 +1,3 @@
1
1
  module Onkcop
2
- VERSION = "0.43.0.1"
2
+ VERSION = "0.43.0.2"
3
3
  end
data/onkcop.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_dependency "rubocop", "~> 0.43.0"
23
+ spec.add_dependency "rubocop-rspec", ">= 1.7.0"
23
24
  spec.add_development_dependency "bundler"
24
25
  spec.add_development_dependency "rake"
25
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.43.0.1
4
+ version: 0.43.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takafumi ONAKA
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2016-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 0.43.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.7.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.7.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -68,6 +82,7 @@ files:
68
82
  - bin/console
69
83
  - bin/setup
70
84
  - config/rails.yml
85
+ - config/rspec.yml
71
86
  - config/rubocop.yml
72
87
  - lib/onkcop.rb
73
88
  - lib/onkcop/version.rb
@@ -92,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
107
  version: '0'
93
108
  requirements: []
94
109
  rubyforge_project:
95
- rubygems_version: 2.6.6
110
+ rubygems_version: 2.6.7
96
111
  signing_key:
97
112
  specification_version: 4
98
113
  summary: OnkCop is a RuboCop configration gem.