unifacop 0.48.1.6

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6f814b4ee2c1edfd347740d20bd0dcc4d7b0d12f
4
+ data.tar.gz: 3b68547b793339380038fde07083abbf30f046a7
5
+ SHA512:
6
+ metadata.gz: af3594b56eb1683b03b885d265eb2e132c8ff12b590626ddd1022ea40411c48affd7d53b5db41c1e74ca791f4622d5927340965b261208abfc6e6ceadb509c3c
7
+ data.tar.gz: 482416466a8fc8d49ec6741061a691829573f96503fc8b35df52068fa170ee158251edb394796ec6de1b090a3eb9971272f2bebc950a35b6781bb8273dcd5238
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
@@ -0,0 +1,13 @@
1
+ Rails:
2
+ Enabled: true
3
+
4
+ # onkcop参照
5
+ # > slug とか created_by とか、NOT NULL だが create_table 時に
6
+ # > default 値を定義できないカラムは存在する。
7
+ Rails/NotNullColumn:
8
+ Enabled: false
9
+
10
+ # onkcop参照
11
+ # > valid? チェックし忘れを防ぎたい
12
+ Rails/SaveBang:
13
+ Enabled: true
@@ -0,0 +1,41 @@
1
+ require: 'rubocop-rspec'
2
+
3
+ # onkcop参照
4
+ # > subject はコピペ可搬性よりもそのまま USAGE であって欲しい
5
+ # described_classより直接クラス名を参照する方が、使い方が見えやすくてよい。
6
+ RSpec/DescribedClass:
7
+ EnforcedStyle: explicit
8
+
9
+ # 5行は厳しそう。
10
+ # ひとまず10行にして様子を見る。
11
+ RSpec/ExampleLength:
12
+ Max: 10
13
+
14
+ # onkcop参照
15
+ # > one-liner の should は書きやすいし意味が通りやすいし副作用も無いので撥ねる必要がない。
16
+ # > ただ expect 派に対して強制するほどでもないので統一はしない。
17
+ # shouldの方が文字数が少ないので、こちらを利用するのもいいと思う。
18
+ # あとRspec 2.xだと is_expected.to が使えないのもある。
19
+ RSpec/ImplicitExpect:
20
+ Enabled: false
21
+
22
+ # 1 example 1 expectだと性能面でつらい時もある。
23
+ # とはいえ、10ぐらいになるときつい。8ぐらいにしておく。
24
+ RSpec/MultipleExpectations:
25
+ Max: 8
26
+
27
+ # onkcop参照
28
+ # > 変に名前つけて呼ぶ方が分かりづらい。
29
+ # > テスト対象メソッドを呼ぶだけの subject 以外を書かないようにする方が効く。
30
+ RSpec/NamedSubject:
31
+ Enabled: false
32
+
33
+ # デフォルトの3だと、contextが2段ネストしただけでoffenseとされてしまう。
34
+ # これは厳しすぎると思うので、contextの2段ネストができる4に設定する。
35
+ RSpec/NestedGroups:
36
+ Max: 4
37
+
38
+ # 全てshared_examplesにまとめるのもつらい。
39
+ # 直接書いた方がテストコードを読みやすいケースもある。
40
+ RSpec/RepeatedExample:
41
+ Enabled: false
@@ -0,0 +1,401 @@
1
+ ## 設定のベースにしている onkcop は以下
2
+ # https://github.com/onk/onkcop
3
+
4
+ AllCops:
5
+ Exclude:
6
+ - 'script/rails'
7
+ - 'bin/bundle'
8
+ - 'bin/rails'
9
+ - 'bin/rake'
10
+ - 'bin/setup'
11
+ - 'bin/spring'
12
+ - 'bin/update'
13
+ - 'config.ru'
14
+ - 'vendor/**/*'
15
+ - 'db/schema.rb'
16
+ - 'node_modules/**/*'
17
+ DisplayCopNames: true
18
+
19
+ ## Lint cops
20
+ # https://rubocop.readthedocs.io/en/latest/cops_lint/
21
+
22
+ # expect { subject }.to change { Hoge.count }.by(1) がoffenseと見なされてしまうため。
23
+ # これは公式ドキュメントで示されている書き方なので、例外としたい。
24
+ Lint/AmbiguousBlockAssociation:
25
+ Exclude:
26
+ - 'spec/**/*.rb'
27
+
28
+ # 下記のSafe Assignmentもやはり == と誤解を発生させる可能性があるため禁止する。
29
+ # if (val = do_something)
30
+ # puts val
31
+ # end
32
+ Lint/AssignmentInCondition:
33
+ AllowSafeAssignment: false
34
+
35
+ # 何もしないというwhen節が定義できた方が、表現の幅が広がるはず。
36
+ # case val
37
+ # when 0
38
+ # # nothing to do
39
+ # when 1
40
+ # do_something
41
+ # else
42
+ # raise 'unexpected'
43
+ # end
44
+ Lint/EmptyWhen:
45
+ Enabled: false
46
+
47
+ # onkcop参照
48
+ # > RuntimeError は「特定の Error を定義できない場合」なので、
49
+ # > 定義できるエラーは RuntimeError ではなく StandardError を継承する。
50
+ # 既存のコードはほぼStandardErrorを使っている。
51
+ # 個人の印象だが、RuntimeErrorは実行中の「回復不能な」エラーと判断しがち。
52
+ # 実際は、rescueして復旧するケースもあるため、StandardErrorを使うのがよさそう。
53
+ Lint/InheritException:
54
+ EnforcedStyle: standard_error
55
+
56
+ # キーワード引数の先頭に「_」をつけてしまうと、呼び出し側で「_」をつけて呼ばないとキーが存在せずエラーになってしまうため。
57
+ Lint/UnusedMethodArgument:
58
+ AllowUnusedKeywordArguments: true
59
+
60
+ ## Metrics
61
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/
62
+
63
+ # onkcop参照
64
+ # > # 30 まではギリギリ許せる範囲だったけど
65
+ # > リリースごとに 3 ずつぐらい下げていきます。20 まで下げたい。
66
+ # onkcopは24だったが、この値でも厳しいので30にする。
67
+ # これでもエラー出まくると思うので、Exclude等で別途対応。
68
+ Metrics/AbcSize:
69
+ Max: 30
70
+
71
+ # onkcop参照
72
+ # > Gemfile, Guardfile は DSL 的で基本的に複雑にはならないので除外
73
+ # > rake, rspec, routes は巨大な block 不可避なので除外
74
+ # config/application.rbとconfig/environments以下もブロックが大きくなるのは仕方がない
75
+ Metrics/BlockLength:
76
+ Exclude:
77
+ - 'Rakefile'
78
+ - '**/*.rake'
79
+ - 'spec/**/*.rb'
80
+ - 'Gemfile'
81
+ - 'Guardfile'
82
+ - 'config/application.rb'
83
+ - 'config/environments/*.rb'
84
+ - 'config/routes.rb'
85
+ - 'config/routes/**/*.rb'
86
+ - 'db/schema.rb'
87
+ - '*.gemspec'
88
+
89
+ # 100行は短すぎる。いったん200行まで許容し、徐々に100に近づけていく。
90
+ Metrics/ClassLength:
91
+ Max: 200
92
+
93
+ # onkcop参照
94
+ # > 6 は強すぎるので緩める
95
+ Metrics/CyclomaticComplexity:
96
+ Max: 10
97
+
98
+ # 多くのRubyコーディング規約では「80」か「100」が主流な値であった。
99
+ # 「80」だと厳しすぎるので、「100」に設定する。
100
+ Metrics/LineLength:
101
+ Max: 100
102
+ Exclude:
103
+ - 'db/migrate/*.rb'
104
+
105
+ # onkcop参照
106
+ # > 20 行超えるのは migration ファイル以外滅多に無い
107
+ Metrics/MethodLength:
108
+ Max: 30
109
+ Exclude:
110
+ - 'db/migrate/*.rb'
111
+
112
+ # クラスの設定値と合わせる。
113
+ Metrics/ModuleLength:
114
+ Max: 200
115
+
116
+ # キーワード引数は複雑さをほとんどあげないと思っているので、除外。
117
+ Metrics/ParameterLists:
118
+ CountKeywordArgs: false
119
+
120
+ # onkcop参照
121
+ # > 分岐の数。ガード句を多用しているとデフォルト 7 だと厳しい
122
+ Metrics/PerceivedComplexity:
123
+ Max: 8
124
+
125
+ ## Performance
126
+ # https://rubocop.readthedocs.io/en/latest/cops_performance/
127
+
128
+ # nothing to customize
129
+
130
+ ## Security
131
+ # https://rubocop.readthedocs.io/en/latest/cops_security/
132
+
133
+ # nothing to customize
134
+
135
+ ## Style
136
+ # https://rubocop.readthedocs.io/en/latest/cops_style/
137
+
138
+ # onkcop参照
139
+ # > レキシカルスコープの扱いが alias_method の方が自然。
140
+ # > https://ernie.io/2014/10/23/in-defense-of-alias/ のように
141
+ # > 問題になる場合は自分で緩める。
142
+ Style/Alias:
143
+ EnforcedStyle: prefer_alias_method
144
+
145
+ # onkcop参照
146
+ # > redirect_to xxx and return のイディオムを維持したい
147
+ Style/AndOr:
148
+ EnforcedStyle: conditionals
149
+
150
+ # onkcop参照
151
+ # > 日本語コメントを許可する
152
+ Style/AsciiComments:
153
+ Enabled: false
154
+
155
+ # specのletは {} で統一した方が見やすいため除外。
156
+ Style/BlockDelimiters:
157
+ AutoCorrect: false
158
+ Exclude:
159
+ - 'spec/**/*'
160
+
161
+ # onkcop参照
162
+ # > option 等、明示的にハッシュにした方が分かりやすい場合もある
163
+ Style/BracesAroundHashParameters:
164
+ Enabled: false
165
+
166
+ # onkcop参照
167
+ # > scope が違うとか親 module の存在確認が必要とかデメリットはあるが、
168
+ # > namespace 付きのクラスはかなり頻繁に作るので簡単に書きたい。
169
+ # class A::Bと書いてインデントを減らして定義した方が読みやすいケースも結構ある。
170
+ # 特にauto_loadingが効くRailsでは、使ってもよいはず。
171
+ Style/ClassAndModuleChildren:
172
+ Enabled: false
173
+
174
+ # onkcop参照
175
+ # > Style/CollectionMethods 自体は無効になっているのだが、
176
+ # > https://github.com/bbatsov/rubocop/issues/1084
177
+ # > https://github.com/bbatsov/rubocop/issues/1334
178
+ # > Performance/Detect がこの設定値を見るので PreferredMethods だけ変更しておく。
179
+ #
180
+ # > デフォルト値から変えたのは
181
+ # > find -> detect
182
+ # > ActiveRecord の find と間違えやすいため
183
+ # > reduce -> inject
184
+ # > detect, reject, select と並べたときに韻を踏んでいるため。
185
+ # > collect -> map を維持しているのは文字数が圧倒的に少ないため。
186
+ Style/CollectionMethods:
187
+ PreferredMethods:
188
+ detect: 'detect'
189
+ find: 'detect'
190
+ inject: 'inject'
191
+ reduce: 'inject'
192
+
193
+ # onkcop参照
194
+ # > ドキュメントの無い public class を許可する
195
+ # クラス名からだいたい想像はつく。どちらかというと、メソッドのドキュメントの方が重要。
196
+ Style/Documentation:
197
+ Enabled: false
198
+
199
+ # ユニファの既存コードを見ると「leading」が多いため、こちらに統一する。
200
+ Style/DotPosition:
201
+ Enabled: true
202
+ EnforcedStyle: leading
203
+
204
+ # onkcop参照
205
+ # > 明示的に else で nil を返すのは分かりやすいので許可する
206
+ Style/EmptyElse:
207
+ EnforcedStyle: empty
208
+
209
+ # onkcop参照
210
+ # > 空メソッドの場合だけ1行で書かなければいけない理由が無い
211
+ # > 「セミコロンは使わない」に寄せた方がルールがシンプル
212
+ Style/EmptyMethod:
213
+ EnforcedStyle: expanded
214
+
215
+ # Ruby 2.0からは不要なので削除すべき。
216
+ Style/Encoding:
217
+ Enabled: true
218
+
219
+ # onkcop参照
220
+ # > if 文の中に 3 行程度のブロックを書くぐらいは許容した方が現実的
221
+ # > NOTE: https://github.com/bbatsov/rubocop/commit/29945958034db13af9e8ff385ec58cb9eb464596
222
+ # > の影響で、if 文の中身が 1 行の場合に警告されるようになっている。
223
+ # > Style/IfUnlessModifier の設定見てくれないかなぁ? (v0.36.0)
224
+ Style/GuardClause:
225
+ MinBodyLength: 5
226
+
227
+ # onkcop参照
228
+ # > rake タスクの順序の hash は rocket を許可する。
229
+ Style/HashSyntax:
230
+ Exclude:
231
+ - '**/*.rake'
232
+ - 'Rakefile'
233
+
234
+ # onkcop参照
235
+ # > 平たくしてしまうと条件のグルーピングが脳内モデルとズレやすい
236
+ # 2つの条件の意味合いの違いで、どちらも使いたいケースがあると思う。
237
+ Style/IfInsideElse:
238
+ Enabled: false
239
+
240
+ # onkcop参照
241
+ # > 条件式の方を意識させたい場合には後置の if/unless を使わない方が分かりやすい
242
+ # 後置if/unlessが合わないケースもある。
243
+ Style/IfUnlessModifier:
244
+ Enabled: false
245
+
246
+ # onkcop参照
247
+ # > special_inside_parentheses (default) と比べて
248
+ # > * 横に長くなりづらい
249
+ # > * メソッド名の長さが変わったときに diff が少ない
250
+ Style/IndentArray:
251
+ EnforcedStyle: consistent
252
+
253
+ # onkcop参照
254
+ # > ({ と hash を開始した場合に ( の位置にインデントさせる
255
+ # > そもそも {} が必要ない可能性が高いが Style/BracesAroundHashParameters はチェックしないことにしたので
256
+ Style/IndentHash:
257
+ EnforcedStyle: consistent
258
+
259
+ # onkcop参照
260
+ # > scope 等は複数行でも lambda ではなく ->{} で揃えた方が見た目が綺麗
261
+ Style/Lambda:
262
+ EnforcedStyle: literal
263
+
264
+ # do ... end.method とchainするのは、個人的には最後のchainを見落としそうなので、オススメしない。
265
+ # onkcop参照
266
+ # > end.some_method とチェインするのはダサい
267
+ # > Style/BlockDelimiters と相性が悪いけど、頑張ってコードを修正してください
268
+ Style/MethodCalledOnDoEndBlock:
269
+ Enabled: true
270
+
271
+ # RSpec の matcher を誤検知するため
272
+ # expect(array).to include('a', 'b')
273
+ Style/MixinGrouping:
274
+ Exclude:
275
+ - 'spec/**/*'
276
+
277
+ # onkcop参照
278
+ # > メソッドチェーン感がより感じられるインデントにする
279
+ # 個人的にもこの形式の方が、上の行とのつながりを感じられるのでいいと思う。
280
+ Style/MultilineMethodCallIndentation:
281
+ EnforcedStyle: indented_relative_to_receiver
282
+
283
+ # onkcop参照
284
+ # > 1_000_000 と区切り文字が 2 個以上必要になる場合のみ _ 区切りを必須にする
285
+ # > 10_000_00 は許可しない。(これは例えば 10000 ドルをセント単位にする時に便利だが
286
+ # > 頻出しないので foolproof に振る
287
+ # > TODO: Strict パラメータは warning が出るので一旦無効に。 pull/4180
288
+ Style/NumericLiterals:
289
+ MinDigits: 7
290
+ # Strict: true
291
+
292
+ # onkcop参照
293
+ # > foo.positive? は foo > 0 に比べて意味が曖昧になる
294
+ # > foo.zero? は許可したいけどメソッドごとに指定できないので一括で disable に
295
+ Style/NumericPredicate:
296
+ Enabled: false
297
+
298
+ # デフォルトでは %w[] が推奨だが、今いるメンバーでは %w() の方が合っているため
299
+ # また %i() も %w() と統一感を取るため合わせる
300
+ # %r{} はRubyStyleGuideの推奨を使用する。
301
+ Style/PercentLiteralDelimiters:
302
+ PreferredDelimiters:
303
+ default: ()
304
+ '%w': '()'
305
+ '%W': '()'
306
+ '%i': '()'
307
+ '%I': '()'
308
+ '%r': '{}'
309
+
310
+ # onkcop参照
311
+ # > 正規表現にマッチさせた時の特殊変数の置き換えは Regex.last_match ではなく
312
+ # > 名前付きキャプチャを使って参照したいので auto-correct しない
313
+ Style/PerlBackrefs:
314
+ AutoCorrect: false
315
+
316
+ # onkcop参照
317
+ # > has_ から始まるメソッドは許可する
318
+ Style/PredicateName:
319
+ NamePrefixBlacklist:
320
+ - 'is_'
321
+ - 'have_'
322
+ NamePrefix:
323
+ - 'is_'
324
+ - 'have_'
325
+
326
+ # onkcop参照
327
+ # > Hash#has_key? の方が key? よりも意味が通る
328
+ Style/PreferredHashMethods:
329
+ EnforcedStyle: verbose
330
+
331
+ # onkcop参照
332
+ # > 受け取り側で multiple assignment しろというのを明示
333
+ Style/RedundantReturn:
334
+ AllowMultipleReturnValues: true
335
+
336
+ # onkcop参照
337
+ # > 特に model 内において、ローカル変数とメソッド呼び出しの区別をつけた方が分かりやすい場合が多い
338
+ Style/RedundantSelf:
339
+ Enabled: false
340
+
341
+ # onkcop参照
342
+ # > 無理して使うモンじゃない
343
+ Style/SafeNavigation:
344
+ Enabled: false
345
+
346
+ # onkcop参照
347
+ # > spec 内は見た目が綺麗になるので許可
348
+ Style/Semicolon:
349
+ Exclude:
350
+ - "spec/**/*"
351
+
352
+ # いずれどちらかに統一したいが、他の項目の統一が完了してから検討する
353
+ Style/StringLiterals:
354
+ Enabled: false
355
+
356
+ # 同上
357
+ Style/StringLiteralsInInterpolation:
358
+ Enabled: false
359
+
360
+ # onkcop参照
361
+ # > String#intern は ruby の内部表現すぎるので String#to_sym を使う
362
+ Style/StringMethods:
363
+ Enabled: true
364
+
365
+ # onkcop参照
366
+ # > %w() と %i() が見分けづらいので Style/WordArray と合わせて無効に。
367
+ # > 書き手に委ねるという意味で、Enabled: false にしています。使っても良い。
368
+ Style/SymbolArray:
369
+ Enabled: false
370
+
371
+ # onkcop参照
372
+ # > 三項演算子は分かりやすく使いたい。
373
+ # > () を外さない方が条件式が何なのか読み取りやすいと感じる。
374
+ Style/TernaryParentheses:
375
+ EnforcedStyle: require_parentheses_when_complex
376
+
377
+ # onkcop参照
378
+ # > 複数行の場合はケツカンマを入れる
379
+ # あとで行を追加するときに、変更行を少なくするため。
380
+ Style/TrailingCommaInLiteral:
381
+ EnforcedStyleForMultiline: comma
382
+
383
+ # onkcop参照
384
+ # > %w() と %i() が見分けづらいので Style/SymbolArray と合わせて無効に。
385
+ # > 書き手に委ねるという意味で、Enabled: false にしています。使っても良い。
386
+ Style/WordArray:
387
+ Enabled: false
388
+
389
+ # onkcop参照
390
+ # > 条件式で arr.size > 0 が使われた時に
391
+ # > if !arr.empty?
392
+ # > else
393
+ # > end
394
+ # > に修正されるのが嫌。
395
+ # > 中身を入れ替えて否定外しても良いんだけど、どちらが例外的な処理なのかが分かりづらくなる。
396
+ Style/ZeroLengthPredicate:
397
+ Enabled: false
398
+
399
+ # 機能的に近いものをまとめる方が、必要Gem一覧を見たときにわかりやすいと思うため。
400
+ Bundler/OrderedGems:
401
+ Enabled: false
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
4
+
5
+ # Exit cleanly from an early interrupt
6
+ Signal.trap('INT') { exit 1 }
7
+
8
+ require 'unifacop'
9
+
10
+ UniFaCop::CLI.start(ARGV)
@@ -0,0 +1,4 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'unifacop/version'
4
+ require 'unifacop/cli'
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module UniFaCop
4
+ class CLI
5
+ def self.start(args)
6
+ action_name = retrieve_command_name(args)
7
+ unless action_name
8
+ print_help
9
+ exit
10
+ end
11
+
12
+ instance = self.new
13
+ if instance.public_methods(false).include?(action_name.to_sym)
14
+ instance.__send__(action_name, args)
15
+ exit
16
+ end
17
+
18
+ puts "Could not find command #{action_name}."
19
+ print_help
20
+ exit(1)
21
+ rescue => e
22
+ puts e.message
23
+ exit(1)
24
+ end
25
+
26
+ def self.retrieve_command_name(args)
27
+ return nil if args.empty?
28
+ meth = args.first.to_s
29
+ args.shift if meth !~ /^\-/
30
+ end
31
+
32
+ def self.print_help
33
+ puts 'unifacop commands:'
34
+ puts ' init - Setup .rubocop.yml'
35
+ end
36
+
37
+ CONFIG_FILE_NAME = '.rubocop.yml'.freeze
38
+
39
+ def init(args)
40
+ raise 'usage: unifacop init' unless args.empty?
41
+ template_path = File.expand_path('../../templates', __dir__)
42
+ puts "#{File.exist?(CONFIG_FILE_NAME) ? 'overwrite' : 'create'} #{CONFIG_FILE_NAME}"
43
+ FileUtils.copy_file(File.join(template_path, CONFIG_FILE_NAME), CONFIG_FILE_NAME)
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module UniFaCop
4
+ VERSION = '0.48.1.6'.freeze
5
+ end
@@ -0,0 +1,18 @@
1
+ inherit_gem:
2
+ unifacop:
3
+ - 'config/rubocop.yml'
4
+ # Uncomment if your project uses rails. Do not forget to specify TargetRailsVersion.
5
+ #- 'config/rails.yml'
6
+ # Uncomment if use rspec cops
7
+ #- 'config/rspec.yml'
8
+
9
+ inherit_from:
10
+ - .rubocop_todo.yml
11
+
12
+ AllCops:
13
+ # Please specify your Ruby version
14
+ TargetRubyVersion: 2.4
15
+ # uncomment if use rails cops
16
+ #TargetRailsVersion: 5.0
17
+
18
+ # Add your project specific configurations here.
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'unifacop/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'unifacop'
9
+ spec.version = UniFaCop::VERSION
10
+ spec.authors = ['UniFa Co. Ltd.']
11
+ spec.email = ['system@unifa-e.com']
12
+
13
+ spec.summary = 'A rubocop configuration gem for UniFa Coding Style Guide.'
14
+ spec.description = 'A rubocop configuration gem for UniFa Coding Style Guide.'
15
+ spec.homepage = 'https://bitbucket.org/lookme/unifacop'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").select do |f|
18
+ f.match(%r{^(config|exe|lib|templates)/}) || ['Gemfile', 'unifacop.gemspec'].include?(f)
19
+ end
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_runtime_dependency 'rubocop', '~> 0.48.1'
25
+ # Latest rubocop-rspec supports since Ruby 2.1. But we want to use it on Ruby 2.0.
26
+ spec.add_runtime_dependency 'rubocop-rspec', '>= 1.4.0'
27
+ spec.add_development_dependency 'bundler'
28
+ spec.add_development_dependency 'rake'
29
+ end
metadata ADDED
@@ -0,0 +1,110 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: unifacop
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.48.1.6
5
+ platform: ruby
6
+ authors:
7
+ - UniFa Co. Ltd.
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-05-31 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.48.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.48.1
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.4.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.4.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: A rubocop configuration gem for UniFa Coding Style Guide.
70
+ email:
71
+ - system@unifa-e.com
72
+ executables:
73
+ - unifacop
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - Gemfile
78
+ - config/rails.yml
79
+ - config/rspec.yml
80
+ - config/rubocop.yml
81
+ - exe/unifacop
82
+ - lib/unifacop.rb
83
+ - lib/unifacop/cli.rb
84
+ - lib/unifacop/version.rb
85
+ - templates/.rubocop.yml
86
+ - unifacop.gemspec
87
+ homepage: https://bitbucket.org/lookme/unifacop
88
+ licenses: []
89
+ metadata: {}
90
+ post_install_message:
91
+ rdoc_options: []
92
+ require_paths:
93
+ - lib
94
+ required_ruby_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - ">="
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ required_rubygems_version: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ requirements: []
105
+ rubyforge_project:
106
+ rubygems_version: 2.6.11
107
+ signing_key:
108
+ specification_version: 4
109
+ summary: A rubocop configuration gem for UniFa Coding Style Guide.
110
+ test_files: []