/
gnurr.gemspec
34 lines (29 loc) · 1.18 KB
/
gnurr.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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'gnurr/version'
Gem::Specification.new do |spec|
spec.name = 'gnurr'
spec.version = Gnurr::VERSION
spec.authors = ['Ben Saufley']
spec.email = ['contact@bensaufley.com']
spec.summary = 'Diff-specific linter'
spec.description = 'Runs ESLint, SCSS-Lint, HAML-Lint, and Rubocop and returns info relevant to changed lines as reported by git.'
spec.homepage = 'http://github.com/bensaufley/gnurr'
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.requirements += [
'git',
'npm and eslint for JS linting',
'haml_lint for HAML linting',
'scss_lint for SCSS linting',
'rubocop for Ruby linting'
]
spec.required_ruby_version = '~> 2.3'
spec.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'rake', '~> 10.5'
spec.add_runtime_dependency 'colorize', '~> 0.8.1'
end