niftany 0.8.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +25 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/exe/niftany +12 -6
- data/niftany.gemspec +7 -4
- data/niftany_rubocop_rspec.yml +0 -6
- data/niftany_rubocop_ruby.yml +2 -0
- metadata +11 -10
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86bf3c7041770d6e44b629122c4707d0167ade311f9784aa45d05ddfb1a8b418
|
4
|
+
data.tar.gz: d05a428daef62a671fe414a300fcf815bc481e481abf0aa93450dac76c0b7d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4276eba9d69b776aefd15a83c2713d03b8893b2df26256c6a9921e688161389266dd789cbd5c92254f9406da74f41b1fd3881224eb48d0480ca2bf7d6ababf83
|
7
|
+
data.tar.gz: da0bb262683e85d67fd54721426c4d76f62ee07a7abd719e9dddf2a4dc77a4296d1830c3c6bf8921de2a26dce38bb6fac6a841977703ceeabd72eef57a45f7e2
|
@@ -0,0 +1,25 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ main ]
|
6
|
+
pull_request:
|
7
|
+
branches: [ main ]
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
strategy:
|
14
|
+
matrix:
|
15
|
+
ruby-version: ['2.6', '2.7', '3.1']
|
16
|
+
|
17
|
+
steps:
|
18
|
+
- uses: actions/checkout@v2
|
19
|
+
- name: Set up Ruby
|
20
|
+
uses: ruby/setup-ruby@v1
|
21
|
+
with:
|
22
|
+
ruby-version: ${{ matrix.ruby-version }}
|
23
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
24
|
+
- name: Run Rubocop
|
25
|
+
run: bundle exec rubocop
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.1
|
data/exe/niftany
CHANGED
@@ -10,16 +10,21 @@ require 'scss_lint/cli'
|
|
10
10
|
require 'colorize'
|
11
11
|
|
12
12
|
def parse_opts(args)
|
13
|
-
options =
|
13
|
+
options = Struct.new('Options', :auto_correct, :parallel).new
|
14
14
|
options.auto_correct = false
|
15
|
+
options.parallel = false
|
15
16
|
|
16
17
|
parser = OptionParser.new do |opts|
|
17
18
|
opts.banner = 'Usage: niftany [options]'
|
18
19
|
|
19
|
-
opts.on('-a', '--
|
20
|
+
opts.on('-a', '--autocorrect', 'Correct violations') do |auto|
|
20
21
|
options.auto_correct = auto
|
21
22
|
end
|
22
23
|
|
24
|
+
opts.on('-p', '--parallel', 'Run RuboCop in parallel') do |parallel|
|
25
|
+
options.parallel = parallel
|
26
|
+
end
|
27
|
+
|
23
28
|
opts.on_tail('-h', '--help', 'Show this message') do
|
24
29
|
puts opts
|
25
30
|
exit
|
@@ -30,9 +35,10 @@ def parse_opts(args)
|
|
30
35
|
end
|
31
36
|
|
32
37
|
def rubocop_options(options)
|
33
|
-
|
34
|
-
|
35
|
-
|
38
|
+
rubocop_options = []
|
39
|
+
rubocop_options.append('--autocorrect') if options.auto_correct
|
40
|
+
rubocop_options.append('--parallel') if options.parallel
|
41
|
+
rubocop_options
|
36
42
|
end
|
37
43
|
|
38
44
|
def erblint_options(options)
|
@@ -65,7 +71,7 @@ else
|
|
65
71
|
end
|
66
72
|
|
67
73
|
puts 'Running SCSSLint'.yellow
|
68
|
-
logger = SCSSLint::Logger.new(
|
74
|
+
logger = SCSSLint::Logger.new($stdout)
|
69
75
|
scss_lint = SCSSLint::CLI.new(logger).run(ARGV) # returns integer
|
70
76
|
|
71
77
|
if scss_lint.zero?
|
data/niftany.gemspec
CHANGED
@@ -2,10 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'niftany'
|
5
|
-
spec.version = '0.
|
5
|
+
spec.version = '0.10.1'
|
6
|
+
spec.metadata = { 'rubygems_mfa_required' => 'true' }
|
6
7
|
spec.authors = ['Adam Wead']
|
7
8
|
spec.email = ['amsterdamos@gmail.com']
|
8
|
-
spec.summary = 'Manages configurations and versions of linters used in projects at '\
|
9
|
+
spec.summary = 'Manages configurations and versions of linters used in projects at ' \
|
9
10
|
'Penn State University Libraries.'
|
10
11
|
spec.description = 'Combining "nittany" and "nifty" into one, super-nice gem that lints all our code at once.'
|
11
12
|
spec.homepage = 'https://github.com/psu-libraries/niftany'
|
@@ -13,12 +14,14 @@ Gem::Specification.new do |spec|
|
|
13
14
|
spec.bindir = 'exe'
|
14
15
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
15
16
|
|
17
|
+
spec.required_ruby_version = '>= 2.6.0'
|
18
|
+
|
16
19
|
spec.add_dependency 'colorize', '~> 0.8.1'
|
17
20
|
spec.add_dependency 'erb_lint', '~> 0.0.22'
|
18
|
-
spec.add_dependency 'rubocop', '~>
|
21
|
+
spec.add_dependency 'rubocop', '~> 1.3'
|
19
22
|
spec.add_dependency 'rubocop-performance', '~> 1.1'
|
20
23
|
spec.add_dependency 'rubocop-rails', '~> 2.3'
|
21
|
-
spec.add_dependency 'rubocop-rspec', '~>
|
24
|
+
spec.add_dependency 'rubocop-rspec', '~> 2'
|
22
25
|
spec.add_dependency 'scss_lint', '~> 0.55'
|
23
26
|
|
24
27
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
data/niftany_rubocop_rspec.yml
CHANGED
data/niftany_rubocop_ruby.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: niftany
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Wead
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.3'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-performance
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '2'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '2'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: scss_lint
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -146,11 +146,11 @@ extensions: []
|
|
146
146
|
extra_rdoc_files: []
|
147
147
|
files:
|
148
148
|
- ".erb-linters/self_closing_custom.rb"
|
149
|
+
- ".github/workflows/ci.yml"
|
149
150
|
- ".gitignore"
|
150
151
|
- ".rubocop.yml"
|
151
152
|
- ".rubocop_todo.yml"
|
152
153
|
- ".ruby-version"
|
153
|
-
- ".travis.yml"
|
154
154
|
- Gemfile
|
155
155
|
- LICENSE.md
|
156
156
|
- README.md
|
@@ -173,7 +173,8 @@ files:
|
|
173
173
|
- rubocop/style.yml
|
174
174
|
homepage: https://github.com/psu-libraries/niftany
|
175
175
|
licenses: []
|
176
|
-
metadata:
|
176
|
+
metadata:
|
177
|
+
rubygems_mfa_required: 'true'
|
177
178
|
post_install_message:
|
178
179
|
rdoc_options: []
|
179
180
|
require_paths:
|
@@ -182,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
183
|
requirements:
|
183
184
|
- - ">="
|
184
185
|
- !ruby/object:Gem::Version
|
185
|
-
version:
|
186
|
+
version: 2.6.0
|
186
187
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
188
|
requirements:
|
188
189
|
- - ">="
|
189
190
|
- !ruby/object:Gem::Version
|
190
191
|
version: '0'
|
191
192
|
requirements: []
|
192
|
-
rubygems_version: 3.1
|
193
|
+
rubygems_version: 3.0.3.1
|
193
194
|
signing_key:
|
194
195
|
specification_version: 4
|
195
196
|
summary: Manages configurations and versions of linters used in projects at Penn State
|