-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrubocop-bitcrowd.gemspec
57 lines (44 loc) · 1.8 KB
/
rubocop-bitcrowd.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Gem::Specification.new do |spec|
spec.name = 'rubocop-bitcrowd'
spec.version = '2.3.0'
spec.authors = ['bitcrowd']
spec.email = ['[email protected]']
spec.summary = 'The bitcrowd rubocop.yml as a gem.'
spec.description = 'Use this as a quick start to get rubocop with the '\
'settings we use at bitcrowd into your project'
spec.homepage = 'https://github.com/bitcrowd/rubocop-bitcrowd'
spec.license = 'MIT'
spec.post_install_message = <<~HEREDOC
Starting with this version of rubocop-bitcrowd, we are following RuboCop's
modularization into separate gems and splitting up our configuration into:
- .rubocop.yml
- .rubocop-rails.yml
- .rubocop-rspec.yml
- .rubocop-performance.yml
If you want to include the `rails`, `rspec` or `performance` cops, add the
respective gems to your Gemfile:
gem 'rubocop-rails', require: false
gem 'rubocop-rspec', require: false
gem 'rubocop-performance', require: false
Add include the bitcrowd specific configuration in your .rubocop.yml
inherit_gem:
rubocop-bitcrowd:
- .rubocop.yml
- .rubocop-rspec.yml
- .rubocop-rails.yml
- .rubocop-performance.yml
Cheers!
Your friends at bitcrowd
HEREDOC
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = 'exe'
spec.executables = 'rubocop-autofix'
spec.metadata = {
'changelog_uri' => 'https://github.com/bitcrowd/rubocop-bitcrowd/blob/main/CHANGELOG.md'
}
spec.add_runtime_dependency 'rubocop', '>= 1.5.0'
spec.add_development_dependency 'bundler', '>= 2.1.0'
spec.add_development_dependency 'rake', '~> 12.3.3'
end