slim_lint 0.24.0 → 0.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/slim_lint/file_finder.rb +1 -1
- data/lib/slim_lint/linter_registry.rb +3 -5
- data/lib/slim_lint/version.rb +1 -1
- metadata +7 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 007f6af5a15bd9858e04011b2fa0b604bc523148929b96852f44661b95fb1f66
|
4
|
+
data.tar.gz: 156ad192dc47014b863c9be9840f2280ee3174aa98bb96588b34017ffa7d470e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30e9a1af1ba6b00cdc64037fa862eb2b40789e81f6d846183d84755a37396de87a7606ef30b8c11955ca3dc41fe691a157b5b2e75b737b73a03dfaecde8279c3
|
7
|
+
data.tar.gz: 2664127ced343842a71564c9be8b146f39a5d0374c48bb4c6f41fe764c021507542a81ddc24c9df3b12fab79d62408c2971179f9b57b02e5781846b31922c63d
|
@@ -72,7 +72,7 @@ module SlimLint
|
|
72
72
|
# @param path [String]
|
73
73
|
# @return [String]
|
74
74
|
def normalize_path(path)
|
75
|
-
path.start_with?(".#{File::SEPARATOR}") ? path[2
|
75
|
+
path.start_with?(".#{File::SEPARATOR}") ? path[2..] : path
|
76
76
|
end
|
77
77
|
|
78
78
|
# Whether the given file should be treated as a Slim file.
|
@@ -27,11 +27,9 @@ module SlimLint
|
|
27
27
|
# @return [Array<Class>]
|
28
28
|
def extract_linters_from(linter_names)
|
29
29
|
linter_names.map do |linter_name|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
raise NoSuchLinter, "Linter #{linter_name} does not exist"
|
34
|
-
end
|
30
|
+
SlimLint::Linter.const_get(linter_name)
|
31
|
+
rescue NameError
|
32
|
+
raise NoSuchLinter, "Linter #{linter_name} does not exist"
|
35
33
|
end
|
36
34
|
end
|
37
35
|
end
|
data/lib/slim_lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slim_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane da Silva
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -50,20 +50,6 @@ dependencies:
|
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '6.0'
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: pry
|
55
|
-
requirement: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
57
|
-
- - "~>"
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: '0.13'
|
60
|
-
type: :development
|
61
|
-
prerelease: false
|
62
|
-
version_requirements: !ruby/object:Gem::Requirement
|
63
|
-
requirements:
|
64
|
-
- - "~>"
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '0.13'
|
67
53
|
- !ruby/object:Gem::Dependency
|
68
54
|
name: rspec
|
69
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,7 +149,7 @@ homepage: https://github.com/sds/slim-lint
|
|
163
149
|
licenses:
|
164
150
|
- MIT
|
165
151
|
metadata: {}
|
166
|
-
post_install_message:
|
152
|
+
post_install_message:
|
167
153
|
rdoc_options: []
|
168
154
|
require_paths:
|
169
155
|
- lib
|
@@ -171,15 +157,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
171
157
|
requirements:
|
172
158
|
- - ">="
|
173
159
|
- !ruby/object:Gem::Version
|
174
|
-
version:
|
160
|
+
version: '3.0'
|
175
161
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
162
|
requirements:
|
177
163
|
- - ">="
|
178
164
|
- !ruby/object:Gem::Version
|
179
165
|
version: '0'
|
180
166
|
requirements: []
|
181
|
-
rubygems_version: 3.
|
182
|
-
signing_key:
|
167
|
+
rubygems_version: 3.4.10
|
168
|
+
signing_key:
|
183
169
|
specification_version: 4
|
184
170
|
summary: Slim template linting tool
|
185
171
|
test_files: []
|