onkcop 0.40.0.0 → 0.41.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/rubocop.yml +12 -2
- 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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d938d67936ed4a8c35793a71cd3c8c99fd72ef9
|
4
|
+
data.tar.gz: dcb6d020fd5b6ba0f3de72707534585625c7a793
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd37310a7bbfe88901a4c1a054deb20d4e6c01c05279394148951f2cd0e3e6160a14bbae6c865be9b1a510fb22100e5cb7ab737fc088fef2a79458f84e37841e
|
7
|
+
data.tar.gz: c880059ce0c0031a39a560de36d678ceabe563a484d1c86c52df86ebc06768d2a512b7c4df1ef1f8c5189f9c3d0888fe380c0ff026b93afba2ea424f46353ac2
|
data/config/rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# target_version:
|
2
|
-
# rubocop v0.
|
2
|
+
# rubocop v0.41.1
|
3
3
|
|
4
4
|
# 自動生成されるものはチェック対象から除外する
|
5
5
|
AllCops:
|
@@ -60,7 +60,7 @@ Style/CollectionMethods:
|
|
60
60
|
reduce: "inject"
|
61
61
|
|
62
62
|
# Hash#has_key? は許可したい
|
63
|
-
Style/
|
63
|
+
Style/PreferredHashMethods:
|
64
64
|
Enabled: false
|
65
65
|
|
66
66
|
# ドキュメントの無い public class を許可する
|
@@ -141,6 +141,11 @@ Style/IndentationConsistency:
|
|
141
141
|
Style/Lambda:
|
142
142
|
EnforcedStyle: literal
|
143
143
|
|
144
|
+
# end.some_method とチェインするのはダサい
|
145
|
+
# Style/BlockDelimiters と相性が悪いけど、頑張ってコードを修正してください
|
146
|
+
Style/MethodCalledOnDoEndBlock:
|
147
|
+
Enabled: true
|
148
|
+
|
144
149
|
# 1_000_000 と区切り文字が 2 個以上必要になる場合のみ _ 区切りを必須にする
|
145
150
|
Style/NumericLiterals:
|
146
151
|
MinDigits: 7
|
@@ -192,6 +197,11 @@ Style/TrailingCommaInLiteral:
|
|
192
197
|
|
193
198
|
##################### Lint ##################################
|
194
199
|
|
200
|
+
# RuntimeError は「特定の Error を定義できない場合」なので、
|
201
|
+
# 定義できるエラーは RuntimeError ではなく StandardError を継承する。
|
202
|
+
Lint/InheritException:
|
203
|
+
EnforcedStyle: standard_error
|
204
|
+
|
195
205
|
# * 同名のメソッドがある場合にローカル変数に `_` を付ける
|
196
206
|
# * 一時変数として `_` を付ける
|
197
207
|
# というテクニックは頻出する
|
data/lib/onkcop/version.rb
CHANGED
data/onkcop.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_dependency "rubocop", "~> 0.
|
22
|
+
spec.add_dependency "rubocop", "~> 0.41.1"
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.11"
|
24
24
|
spec.add_development_dependency "rake", "~> 11.0"
|
25
25
|
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.
|
4
|
+
version: 0.41.1.0
|
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-
|
11
|
+
date: 2016-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.41.1
|
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.
|
26
|
+
version: 0.41.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|