niftany 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/.github/workflows/ci.yml +25 -0
 - data/.ruby-version +1 -1
 - data/exe/niftany +10 -4
 - data/niftany.gemspec +3 -1
 - data/niftany_rubocop_ruby.yml +2 -0
 - metadata +8 -8
 - 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: e7d595491f6830b1348ae95055cfcc9f07c7aa63aa4d3f2ec480131a2b954fcd
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 68501f826457628cec281a8f0dcbe406d225c432b6a244780ac6705d3cbd54a1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: da186b9080ca9587e1354369716cb00a01ab1b6117e0e61a659bab1890499f12d580c977152699465d2bc3edcacc63534694817c10d9d48b7047e21450edea94
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7c8507cc4510803d5044df304b46a4c4448e15e5296a91e41a7cc640cf0414957f4a1200e42e5df93e00ca84f5c2fb81df194ec4285d9660e0a022400974954c
         
     | 
| 
         @@ -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']
         
     | 
| 
      
 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/.ruby-version
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            2. 
     | 
| 
      
 1 
     | 
    
         
            +
            2.7.1
         
     | 
    
        data/exe/niftany
    CHANGED
    
    | 
         @@ -12,6 +12,7 @@ require 'colorize' 
     | 
|
| 
       12 
12 
     | 
    
         
             
            def parse_opts(args)
         
     | 
| 
       13 
13 
     | 
    
         
             
              options = OpenStruct.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]'
         
     | 
| 
         @@ -20,6 +21,10 @@ def parse_opts(args) 
     | 
|
| 
       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('--auto-correct') 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,7 +2,7 @@ 
     | 
|
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            Gem::Specification.new do |spec|
         
     | 
| 
       4 
4 
     | 
    
         
             
              spec.name          = 'niftany'
         
     | 
| 
       5 
     | 
    
         
            -
              spec.version       = '0. 
     | 
| 
      
 5 
     | 
    
         
            +
              spec.version       = '0.9.0'
         
     | 
| 
       6 
6 
     | 
    
         
             
              spec.authors       = ['Adam Wead']
         
     | 
| 
       7 
7 
     | 
    
         
             
              spec.email         = ['amsterdamos@gmail.com']
         
     | 
| 
       8 
8 
     | 
    
         
             
              spec.summary       = 'Manages configurations and versions of linters used in projects at '\
         
     | 
| 
         @@ -13,6 +13,8 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       13 
13 
     | 
    
         
             
              spec.bindir        = 'exe'
         
     | 
| 
       14 
14 
     | 
    
         
             
              spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
         
     | 
| 
       15 
15 
     | 
    
         | 
| 
      
 16 
     | 
    
         
            +
              spec.required_ruby_version = '>= 2.6.0'
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
       16 
18 
     | 
    
         
             
              spec.add_dependency 'colorize', '~> 0.8.1'
         
     | 
| 
       17 
19 
     | 
    
         
             
              spec.add_dependency 'erb_lint', '~> 0.0.22'
         
     | 
| 
       18 
20 
     | 
    
         
             
              spec.add_dependency 'rubocop', '~> 0.79'
         
     | 
    
        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.9.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Adam Wead
         
     | 
| 
       8 
     | 
    
         
            -
            autorequire: 
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-04-21 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: colorize
         
     | 
| 
         @@ -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
         
     | 
| 
         @@ -174,7 +174,7 @@ files: 
     | 
|
| 
       174 
174 
     | 
    
         
             
            homepage: https://github.com/psu-libraries/niftany
         
     | 
| 
       175 
175 
     | 
    
         
             
            licenses: []
         
     | 
| 
       176 
176 
     | 
    
         
             
            metadata: {}
         
     | 
| 
       177 
     | 
    
         
            -
            post_install_message: 
     | 
| 
      
 177 
     | 
    
         
            +
            post_install_message:
         
     | 
| 
       178 
178 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       179 
179 
     | 
    
         
             
            require_paths:
         
     | 
| 
       180 
180 
     | 
    
         
             
            - lib
         
     | 
| 
         @@ -182,15 +182,15 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       182 
182 
     | 
    
         
             
              requirements:
         
     | 
| 
       183 
183 
     | 
    
         
             
              - - ">="
         
     | 
| 
       184 
184 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       185 
     | 
    
         
            -
                  version:  
     | 
| 
      
 185 
     | 
    
         
            +
                  version: 2.6.0
         
     | 
| 
       186 
186 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       187 
187 
     | 
    
         
             
              requirements:
         
     | 
| 
       188 
188 
     | 
    
         
             
              - - ">="
         
     | 
| 
       189 
189 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       190 
190 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       191 
191 
     | 
    
         
             
            requirements: []
         
     | 
| 
       192 
     | 
    
         
            -
            rubygems_version: 3.1. 
     | 
| 
       193 
     | 
    
         
            -
            signing_key: 
     | 
| 
      
 192 
     | 
    
         
            +
            rubygems_version: 3.1.4
         
     | 
| 
      
 193 
     | 
    
         
            +
            signing_key:
         
     | 
| 
       194 
194 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       195 
195 
     | 
    
         
             
            summary: Manages configurations and versions of linters used in projects at Penn State
         
     | 
| 
       196 
196 
     | 
    
         
             
              University Libraries.
         
     |