onkcop 0.46.0.1 → 0.47.1.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
  SHA1:
3
- metadata.gz: f83267878bb72574be70f0738e90277de55c45f6
4
- data.tar.gz: 6e51ecd9a4c2f65ec68d460decc73f92672ae175
3
+ metadata.gz: 4cbb1a0f83ebd7affd4a34ac0b2d656a8f043d4e
4
+ data.tar.gz: '08a5eb43399ebb6c82c3fc1f4faf6bf211fba208'
5
5
  SHA512:
6
- metadata.gz: 174e751b5ece43776d88f8514439f1e7254254d171bc25fb43cfc6b3daa135ef150e57bfae0ca35b17a3969db357ef7bfd9b28a8ffa4b181beb4710900809d5d
7
- data.tar.gz: 43f729b1a5e0662d02519f3e9fe63270da0de5b5a53f2ea8c8e290bec26d0b05c02f4f2f296c56356461dd4f1cc544a8d337e152630b32a4e2ba013b1152bf9d
6
+ metadata.gz: f45da3476fadbf48492e79381c2e66bda9beebfc2325fa9a8716d800228c8aec9d86886d94f6c9710df58f0a4b2a88dbbef763f86314177930f00039c4990ad7
7
+ data.tar.gz: 2c9151c45135b8997cfba6e5d6e0a845b1742bc66ea5b0dec8ba7543e84b942b826e6611b3182f25a78598873273444abed3ac8b872ed1b5178d2d8907c82d26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # onkcop
2
2
 
3
+ ## v0.47.1.0 (2017-01-20)
4
+
5
+ [full changelog](https://github.com/onk/onkcop/compare/v0.46.0.1...v0.47.1.0)
6
+
7
+ * Update to `rubocop` v0.47.1 and `rubocop-rspec` v1.10.0.
8
+ * Remove `Style/SingleLineBlockParams` cop config because disabled by default.
9
+ * Disable new `Security/YAMLLoad` cop.
10
+
11
+
3
12
  ## v0.46.0.1 (2017-01-07)
4
13
 
5
14
  [full changelog](https://github.com/onk/onkcop/compare/v0.46.0.0...v0.46.0.1)
data/config/rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  # target_version:
2
- # rubocop v0.46.0
2
+ # rubocop v0.47.1
3
3
 
4
4
  # 自動生成されるものはチェック対象から除外する
5
5
  AllCops:
@@ -191,10 +191,6 @@ Style/Semicolon:
191
191
  Exclude:
192
192
  - "spec/**/*"
193
193
 
194
- # いくらなんでも inject { |a, e| } は短すぎるので分かりやすい名前をつけたい
195
- Style/SingleLineBlockParams:
196
- Enabled: false
197
-
198
194
  # * 式展開したい場合に書き換えるのが面倒
199
195
  # * 文章ではダブルクォートよりもシングルクォートの方が頻出する
200
196
  # ことから EnforcedStyle: double_quotes 推奨
@@ -214,6 +210,15 @@ Style/TernaryParentheses:
214
210
  Style/TrailingCommaInLiteral:
215
211
  EnforcedStyleForMultiline: comma
216
212
 
213
+ # 条件式で arr.size > 0 が使われた時に
214
+ # if !arr.empty?
215
+ # else
216
+ # end
217
+ # に修正されるのが嫌。
218
+ # 中身を入れ替えて否定外しても良いんだけど、どちらが例外的な処理なのかが分かりづらくなる。
219
+ Style/ZeroLengthPredicate:
220
+ Enabled: false
221
+
217
222
  ##################### Lint ##################################
218
223
 
219
224
  # RuntimeError は「特定の Error を定義できない場合」なので、
@@ -239,12 +244,13 @@ Metrics/AbcSize:
239
244
  Max: 24
240
245
 
241
246
  # Gemfile, Guardfile は DSL 的で基本的に複雑にはならないので除外
242
- # routes は巨大な block 不可避なので除外
247
+ # rake, rspec, routes は巨大な block 不可避なので除外
248
+ # TODO: ExcludedMethods の精査
243
249
  Metrics/BlockLength:
244
250
  Exclude:
245
- - "Rakefile" # default
246
- - "**/*.rake" # default
247
- - "spec/**/*.rb" # default
251
+ - "Rakefile"
252
+ - "**/*.rake"
253
+ - "spec/**/*.rb"
248
254
  - "Gemfile"
249
255
  - "Guardfile"
250
256
  - "config/routes.rb"
@@ -271,3 +277,9 @@ Metrics/MethodLength:
271
277
  # 分岐の数。ガード句を多用しているとデフォルト 7 だと厳しい
272
278
  Metrics/PerceivedComplexity:
273
279
  Max: 8
280
+
281
+ ##################### Security ##################################
282
+
283
+ # 毎回 YAML.safe_load(yaml_str, [Date, Time]) するのは面倒で。。
284
+ Security/YAMLLoad:
285
+ Enabled: false
@@ -1,3 +1,3 @@
1
1
  module Onkcop
2
- VERSION = "0.46.0.1"
2
+ VERSION = "0.47.1.0"
3
3
  end
data/onkcop.gemspec CHANGED
@@ -19,8 +19,8 @@ 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.46.0"
23
- spec.add_dependency "rubocop-rspec", ">= 1.9.1"
22
+ spec.add_dependency "rubocop", "~> 0.47.1"
23
+ spec.add_dependency "rubocop-rspec", ">= 1.10.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.46.0.1
4
+ version: 0.47.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: 2017-01-07 00:00:00.000000000 Z
11
+ date: 2017-01-20 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.46.0
19
+ version: 0.47.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.46.0
26
+ version: 0.47.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.9.1
33
+ version: 1.10.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.9.1
40
+ version: 1.10.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement