onkcop 0.52.0.0 → 0.52.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dcacadb1be034be9f03284c424f2012e367df69582e230119d4ad03b403a5d2b
4
- data.tar.gz: b87737a2f5be1d8152459585fb140a151005ec9624c5f49bc812336e39035b92
3
+ metadata.gz: fefd5a5d4b95eaa60ceff510ef96edfa5132a8ee0cceb38788dd09d41a4682c9
4
+ data.tar.gz: 0f57936ba4873985a89ab80b57367c2d2c6d2bc988f5d9fbc02affeccee4c12c
5
5
  SHA512:
6
- metadata.gz: e292b2682ff77e8d4c07f032542fbd5f1356eda858c3e20cfd41ffd9ed127ade97b0d7f4d41e3dad42937a4041c3a0d8776c3cb40d32847cc3606b3ff83f6283
7
- data.tar.gz: d24900443c0d954fe777919d84d86dc742728ebb1b572c443a48d0095843266c6faf397fb835d0cafaff751086f4739695f4441b85a8aea1ffb79c6511b96447
6
+ metadata.gz: 2dee74d2c77ffdb3b96e4cc64fb204938fa170c8820731fa17d4f14363f334a6a75adde92b2c0a0ccfdee204c1a33110fd125c12d62f7afb51a70091458bbdfa
7
+ data.tar.gz: 92763036f738253f9d53771ad57ef42703b000648ce21e6c0882569881d528f10dd1e116dc9ee251ecb4e96decd7ac4f6eaa81c8a250856e995391f80fd4df34
@@ -2,3 +2,7 @@ language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
4
  - ruby-head
5
+ # NOTE: travis build fails on bundler v1.16.1 && rubygems v2.7.3.
6
+ # Update travis's rubygems to v2.7.4.
7
+ before_install:
8
+ - gem update --system
@@ -1,5 +1,14 @@
1
1
  # onkcop
2
2
 
3
+ ## v0.52.1.0 (2017-12-28)
4
+
5
+ * Update `rubocop` to v0.52.1
6
+ * Use `Layout/SpaceBeforeBlockBraces` cop's default configuration
7
+ * Update `TargetRubyVersion` of auto-generate configuration to 2.5
8
+ * `Lint/AmbiguousBlockAssociation`, `Style/BlockDelimiters` and
9
+ `Style/Semicolon` cops are now exclude only `spec/**/*_spec.rb` instead of `spec/**/*`
10
+
11
+
3
12
  ## v0.52.0.0 (2017-12-20)
4
13
 
5
14
  * Update `rubocop` v0.52.0 and `rubocop-rspec` v1.21.0
data/README.md CHANGED
@@ -26,7 +26,7 @@ inherit_gem:
26
26
  # - "config/rspec.yml"
27
27
 
28
28
  AllCops:
29
- TargetRubyVersion: 2.4
29
+ TargetRubyVersion: 2.5
30
30
  # uncomment if use rails cops
31
31
  # TargetRailsVersion: 5.1
32
32
  ```
@@ -44,10 +44,6 @@ Layout/IndentationConsistency:
44
44
  Layout/MultilineMethodCallIndentation:
45
45
  EnforcedStyle: indented_relative_to_receiver
46
46
 
47
- # デフォルト値がおかしい。
48
- # v0.52.1 で解消。 see: pull/5263
49
- Layout/SpaceBeforeBlockBraces:
50
- EnforcedStyleForEmptyBraces: space
51
47
 
52
48
  #################### Lint ##################################
53
49
 
@@ -57,7 +53,7 @@ Layout/SpaceBeforeBlockBraces:
57
53
  # { foo } は明らかに change に紐付く。
58
54
  Lint/AmbiguousBlockAssociation:
59
55
  Exclude:
60
- - "spec/**/*"
56
+ - "spec/**/*_spec.rb"
61
57
 
62
58
  # Style/EmptyCaseCondition と同じく網羅の表現力が empty when を認めた方が高いし、
63
59
  # 頻出する対象を最初の when で撥ねるのはパフォーマンス向上で頻出する。
@@ -191,7 +187,7 @@ Style/AsciiComments:
191
187
  Style/BlockDelimiters:
192
188
  AutoCorrect: false
193
189
  Exclude:
194
- - "spec/**/*"
190
+ - "spec/**/*_spec.rb"
195
191
 
196
192
  # option 等、明示的にハッシュにした方が分かりやすい場合もある
197
193
  Style/BracesAroundHashParameters:
@@ -252,6 +248,7 @@ Style/FormatString:
252
248
  # strftime("%Y%m%d") の %d で引っかかる false positive がある。
253
249
  # また、url escape でも引っかかるらしい。
254
250
  # see: pull/5230, issues/5242
251
+ # 上記 PR はマージされたが、まだダメっぽいので引き続き disable にする
255
252
  Style/FormatStringToken:
256
253
  Enabled: false
257
254
 
@@ -350,7 +347,7 @@ Style/SafeNavigation:
350
347
  # spec 内は見た目が綺麗になるので許可
351
348
  Style/Semicolon:
352
349
  Exclude:
353
- - "spec/**/*"
350
+ - "spec/**/*_spec.rb"
354
351
 
355
352
  # * 式展開したい場合に書き換えるのが面倒
356
353
  # * 文章ではダブルクォートよりもシングルクォートの方が頻出する
@@ -1,3 +1,3 @@
1
1
  module Onkcop
2
- VERSION = "0.52.0.0"
2
+ VERSION = "0.52.1.0"
3
3
  end
@@ -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.52.0"
22
+ spec.add_dependency "rubocop", "~> 0.52.1"
23
23
  spec.add_dependency "rubocop-rspec", ">= 1.21.0"
24
24
  spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "rake"
@@ -7,6 +7,6 @@ inherit_gem:
7
7
  # - "config/rspec.yml"
8
8
 
9
9
  AllCops:
10
- TargetRubyVersion: 2.4
10
+ TargetRubyVersion: 2.5
11
11
  # uncomment if use rails cops
12
12
  # TargetRailsVersion: 5.1
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.52.0.0
4
+ version: 0.52.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-12-19 00:00:00.000000000 Z
11
+ date: 2017-12-27 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.52.0
19
+ version: 0.52.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.52.0
26
+ version: 0.52.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rspec
29
29
  requirement: !ruby/object:Gem::Requirement