haml_lint 0.49.3 → 0.51.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/forced_rubocop_config.yml +9 -0
- data/lib/haml_lint/adapter.rb +1 -1
- data/lib/haml_lint/version.rb +1 -1
- metadata +7 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71dc6acf56f28f4f6878ff300a653d1fb6c5cc6fa9da23c71813463ea9e1b67a
|
4
|
+
data.tar.gz: af2fa134ec9718c24d019e20c359c9a965d6d09490e6f57fe202654f5f7f95a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73c8a4c7fbd68cfbeacd29e5d313dcf9ae120a624a0359fecf5ca25396a8e68a0cfbad68b0ac9854af82a9233ffb26a9adf7db156f8dd3b5eb8b7a83773db035
|
7
|
+
data.tar.gz: fcb59570ff3b999f81f12208993ab75118013b0262586478145d7d0eaa9bab78002d9808757e10025324082f895bb0962743133898dd31dbb6c3db73d4c7f68c
|
@@ -122,6 +122,15 @@ Style/FrozenStringLiteralComment:
|
|
122
122
|
Style/IfUnlessModifier:
|
123
123
|
AutoCorrect: false
|
124
124
|
|
125
|
+
<% if rubocop_version >= '1.37.0' %>
|
126
|
+
# This new cop can trigger on the here-doc we use for filters that contain interpolation.
|
127
|
+
# Ex:
|
128
|
+
# :javascript
|
129
|
+
# hello #{world} \. bad escape
|
130
|
+
Style/RedundantStringEscape:
|
131
|
+
Enabled: false
|
132
|
+
<% end %>
|
133
|
+
|
125
134
|
# In some case, this cop can cause a change in the spacing.
|
126
135
|
# In HAML 5.2, going from (absurd example for clarity):
|
127
136
|
# = 'abc' rescue nil
|
data/lib/haml_lint/adapter.rb
CHANGED
@@ -21,7 +21,7 @@ module HamlLint
|
|
21
21
|
case version
|
22
22
|
when '~> 4.0' then HamlLint::Adapter::Haml4
|
23
23
|
when '~> 5.0', '~> 5.1', '~> 5.2' then HamlLint::Adapter::Haml5
|
24
|
-
when '~> 6.0', '~> 6.0.a', '~> 6.1' then HamlLint::Adapter::Haml6
|
24
|
+
when '~> 6.0', '~> 6.0.a', '~> 6.1', '~> 6.2' then HamlLint::Adapter::Haml6
|
25
25
|
else fail HamlLint::Exceptions::UnknownHamlVersion, "Cannot handle Haml version: #{version}"
|
26
26
|
end
|
27
27
|
end
|
data/lib/haml_lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.51.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: 2023-
|
11
|
+
date: 2023-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|
@@ -17,9 +17,6 @@ dependencies:
|
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.0'
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '6.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -27,9 +24,6 @@ dependencies:
|
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '4.0'
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '6.2'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: parallel
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +200,7 @@ homepage: https://github.com/sds/haml-lint
|
|
206
200
|
licenses:
|
207
201
|
- MIT
|
208
202
|
metadata: {}
|
209
|
-
post_install_message:
|
203
|
+
post_install_message:
|
210
204
|
rdoc_options: []
|
211
205
|
require_paths:
|
212
206
|
- lib
|
@@ -214,15 +208,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
208
|
requirements:
|
215
209
|
- - ">="
|
216
210
|
- !ruby/object:Gem::Version
|
217
|
-
version: 2.
|
211
|
+
version: 2.7.0
|
218
212
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
219
213
|
requirements:
|
220
214
|
- - ">="
|
221
215
|
- !ruby/object:Gem::Version
|
222
216
|
version: '0'
|
223
217
|
requirements: []
|
224
|
-
rubygems_version: 3.
|
225
|
-
signing_key:
|
218
|
+
rubygems_version: 3.1.6
|
219
|
+
signing_key:
|
226
220
|
specification_version: 4
|
227
221
|
summary: HAML lint tool
|
228
222
|
test_files: []
|