theme-check 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/theme_check/html_node.rb +24 -1
- data/lib/theme_check/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c667ad2be8d10ffe3ded0b949e5ceb4372350462addcfa0f4ecc30b575b3a1cf
|
4
|
+
data.tar.gz: 0ce4f520a0992413b151d2a2d607d81848ed151e6bb0d71ebd154978b44ffd28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a3b48d0bc8e896385bdf838e6e6e722e7a960f20af11987a51771c8203da2c39fc76ac97c9621da3c807efe2eca13b7599466f12c086785b3c3812cdd5351dc
|
7
|
+
data.tar.gz: 39daf33306825516b5316356c1ea8a2523cbe7c0b1406fa988d46d50d94356815d817b9a24f6e2c373a3041f6ac0856e186d160104590948c27291333a1c2a03
|
data/CHANGELOG.md
CHANGED
@@ -140,9 +140,32 @@ module ThemeCheck
|
|
140
140
|
end
|
141
141
|
|
142
142
|
def parseable_markup
|
143
|
+
return @parseable_source if @value.name == "#document-fragment"
|
144
|
+
|
143
145
|
start_index = from_row_column_to_index(@parseable_source, line_number - 1, 0)
|
144
146
|
@parseable_source
|
145
|
-
.match(/<\s*#{
|
147
|
+
.match(/<\s*#{name}[^>]*>/im, start_index)[0]
|
148
|
+
rescue NoMethodError
|
149
|
+
# Don't know what's up with the following issue. Don't think
|
150
|
+
# null check is correct approach. This should give us more info.
|
151
|
+
# https://github.com/Shopify/theme-check/issues/528
|
152
|
+
ThemeCheck.bug(<<~MSG)
|
153
|
+
Can't find a parseable tag of name #{name} inside the parseable HTML.
|
154
|
+
|
155
|
+
Tag name:
|
156
|
+
#{@value.name.inspect}
|
157
|
+
|
158
|
+
File:
|
159
|
+
#{@theme_file.relative_path}
|
160
|
+
|
161
|
+
Line number:
|
162
|
+
#{line_number}
|
163
|
+
|
164
|
+
Excerpt:
|
165
|
+
```
|
166
|
+
#{@parseable_source.lines[line_number - 1...line_number + 5]}
|
167
|
+
```
|
168
|
+
MSG
|
146
169
|
end
|
147
170
|
|
148
171
|
def content
|
data/lib/theme_check/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: theme-check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marc-André Cournoyer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|