gl_lint 0.3.0 → 0.3.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: fe075647d55d0b39b011170299fe77b82c46fbca37be7e22187d9946ea76bff7
4
- data.tar.gz: 960a6494ad564bdd40044fa69219b1a8a5b514dcb9c1922f4440fbe7f7dc603e
3
+ metadata.gz: 8c1993de87cae11e8c78789a86dd76ee188cd31981d236a28c133b52504abbe9
4
+ data.tar.gz: b9ad1954c44aca7f018a2421e5bcae5d1f52985fca5d317a010f3703ad00d8fa
5
5
  SHA512:
6
- metadata.gz: a881651be9f699133abd4964b31f2ac3420df486ba81d9946a145c2c4189c00aef384539bf6bdb1ea8a353880ce124952e7851521f240746d18e39b53e824c9a
7
- data.tar.gz: f4f1a2874f0355664d0a1f9526cba3cc3eaa94c965a431f05c4ca0d97f4a142f391ed918f7758b5f5be05a95357ce442d5be7c7e376125d42db0d37a42e5a3a7
6
+ metadata.gz: 38a4162f951fbd544db9bf19e8d695d59c1be219a46d293beca1a39fc229e62f758ee69cf621f2d6a500c6589fe80fa605505c76c8ec63f4a886f2e706e2c12d
7
+ data.tar.gz: ee5565380924ff2faeddfd96e4d4ea823ec1988321597aeb426fbe21eb87bf5b67e9a83e3c048c3f8444d19fde3f5f72666f32340dd5d859ca18064121f456ff
data/lib/gl_lint/cli.rb CHANGED
@@ -91,7 +91,7 @@ module GlLint
91
91
  app_root:,
92
92
  default_target: default_target || DEFAULT_TARGET,
93
93
  filenames: nil,
94
- linters: linters || LINTERS,
94
+ linters: Array(linters || LINTERS),
95
95
  list_only: false,
96
96
  no_fix: false,
97
97
  unsafe_fix: ENV['UNSAFE_LINT'] == 'true',
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GlLint
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
data/lib/gl_lint.rb CHANGED
@@ -5,8 +5,8 @@ require 'gl_lint/export_rubocop'
5
5
 
6
6
  module GlLint
7
7
  class << self
8
- def call_cli(app_root:, linters: nil)
9
- options = GlLint::CLI.parse(app_root:, linters:)
8
+ def call_cli(app_root:, default_target: nil, linters: nil)
9
+ options = GlLint::CLI.parse(app_root:, linters:, default_target:)
10
10
  puts 'Options: ', options, '' if options[:verbose]
11
11
 
12
12
  call(**options.except(:verbose, :default_target))
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gl_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Give Lively
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-12 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optparse