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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b625fddbfa8f41cf000ec461e828763ef84e1d9c94a5547a141708b6f2ba1601
4
- data.tar.gz: 4056cb974771f72366bbdbaec99a3b6dbb5e82eb077ada5b894d5cb2599090c2
3
+ metadata.gz: 86bf3c7041770d6e44b629122c4707d0167ade311f9784aa45d05ddfb1a8b418
4
+ data.tar.gz: d05a428daef62a671fe414a300fcf815bc481e481abf0aa93450dac76c0b7d2e
5
5
  SHA512:
6
- metadata.gz: 1fe15dc2b94bce47510dc19717ebda97bc3077baf5be32cb3bf31f3985ecd608f29f8b7c00a1d03bb5f78da723f520094964617fb9fbc13e557a819ce5185567
7
- data.tar.gz: d393439d713c34e93b295cd0df08349081b2a4b933d74ff0a7dec08256d49b53dc2b06453f9eced0517bf6fdf4881c18bf10dae7cf4d429de27fbff27f2966d9
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
@@ -2,6 +2,7 @@
2
2
  /.yardoc
3
3
  /_yardoc/
4
4
  /coverage/
5
+ vendor/
5
6
  /doc/
6
7
  /pkg/
7
8
  /spec/reports/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.3
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 = OpenStruct.new
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', '--auto-correct', 'Correct violations') do |auto|
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
- return [] unless options.auto_correct
34
-
35
- ['--auto-correct']
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(STDOUT)
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.8.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', '~> 0.79'
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', '~> 1.3'
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'
@@ -1,12 +1,6 @@
1
1
  ---
2
2
  require: rubocop-rspec
3
3
 
4
- AllCops:
5
- RSpec:
6
- Patterns:
7
- - _spec.rb
8
- - "(?:^|/)spec/"
9
-
10
4
  Layout/MultilineBlockLayout:
11
5
  Exclude:
12
6
  - 'spec/**/*'
@@ -8,4 +8,6 @@ inherit_from:
8
8
  - rubocop/style.yml
9
9
 
10
10
  AllCops:
11
+ TargetRubyVersion: 2.6
11
12
  DisplayCopNames: true
13
+ NewCops: enable
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.8.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: 2020-05-15 00:00:00.000000000 Z
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: '0.79'
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: '0.79'
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: '1.3'
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: '1.3'
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: '0'
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.2
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
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.6.3
5
- before_install:
6
- - gem update --system
7
- - gem install bundler
8
- script: bundle exec rubocop