onkcop 0.36.0.0 → 0.36.0.1

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
  SHA1:
3
- metadata.gz: 170d81789be9cb577075fa95f39b3448a4163406
4
- data.tar.gz: fff22f2556997a5e4edf0a44a3d77703d556774a
3
+ metadata.gz: 66b1d49fbcdd54945fedd18f29d2dbf764f15567
4
+ data.tar.gz: c280cb4efb89aaa0bd63ba1bcad4b688d3bf1346
5
5
  SHA512:
6
- metadata.gz: 09c796a42a360b69e18cd91af5aaf47afe1db5ce316d21daf8dfb081fed90636d0991b1b5fb8d7f559731393358838b77fb185e966842a180acaa491f0bb6b13
7
- data.tar.gz: ce71f1138614f3e643f1e0571389b22414077b2ff2e8f213390e2f60083274657867d06492594527b96f2efc7a0c93157652886431300d427c222398cfd05e17
6
+ metadata.gz: 4c426bb0af28375879173eeadcbfaff99febe82c6ccb59918452d89fbb1b46c2fc573a7c5d20195cde5d1af02b245015f37d80608e707ad685eca59a91d37335
7
+ data.tar.gz: 846bc7b8ab05c93978ffb9d08f29995c41d2f4cf62b40e675b21ebccd95dcd5dd9bd734a6cf7ad68523ff22134c6763861541572939eb2b8be76e15c5095839a
data/config/rubocop.yml CHANGED
@@ -10,6 +10,12 @@ AllCops:
10
10
 
11
11
  ##################### Style ##################################
12
12
 
13
+ # レキシカルスコープの扱いが alias_method の方が自然。
14
+ # https://ernie.io/2014/10/23/in-defense-of-alias/ のように
15
+ # 問題になる場合は自分で緩める。
16
+ Style/Alias:
17
+ EnforcedStyle: prefer_alias_method
18
+
13
19
  # redirect_to xxx and return のイディオムを維持したい
14
20
  Style/AndOr:
15
21
  EnforcedStyle: conditionals
@@ -83,6 +89,9 @@ Style/FrozenStringLiteralComment:
83
89
  Enabled: false
84
90
 
85
91
  # if 文の中に 3 行程度のブロックを書くぐらいは許容した方が現実的
92
+ # NOTE: https://github.com/bbatsov/rubocop/commit/29945958034db13af9e8ff385ec58cb9eb464596
93
+ # の影響で、if 文の中身が 1 行の場合に警告されるようになっている。
94
+ # Style/IfUnlessModifier の設定見てくれないかなぁ? (v0.36.0)
86
95
  Style/GuardClause:
87
96
  MinBodyLength: 5
88
97
 
@@ -100,6 +109,12 @@ Style/IfInsideElse:
100
109
  Style/IfUnlessModifier:
101
110
  Enabled: false
102
111
 
112
+ # special_inside_parentheses (default) と比べて
113
+ # * 横に長くなりづらい
114
+ # * メソッド名の長さが変わったときに diff が少ない
115
+ Style/IndentArray:
116
+ EnforcedStyle: consistent
117
+
103
118
  # ({ と hash を開始した場合に ( の位置にインデントさせる
104
119
  # そもそも {} が必要ない可能性が高いが Style/BracesAroundHashParameters はチェックしないことにしたので
105
120
  Style/IndentHash:
@@ -1,3 +1,3 @@
1
1
  module Onkcop
2
- VERSION = "0.36.0.0"
2
+ VERSION = "0.36.0.1"
3
3
  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.36.0.0
4
+ version: 0.36.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: 2016-01-17 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop