-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathrubocop_runner.gemspec
31 lines (26 loc) · 1.16 KB
/
rubocop_runner.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
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rubocop_runner/version'
Gem::Specification.new do |spec|
spec.name = 'rubocop_runner'
spec.version = RubocopRunner::VERSION
spec.authors = ['Andreas Eger']
spec.email = ['[email protected]']
spec.summary = 'runs rubocop for all changed files'
spec.description = <<-DESC
This gem provides means of running rubocop including auto-correct on all
files which are currently staged in git. This can be easily used as pre-commit
hook with the included template.
DESC
spec.homepage = 'https://github.com/runtastic/rubocop_runner'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0")
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
spec.add_development_dependency 'bundler', '> 1.10', '<3'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'rubocop'
end