theme-check 1.10.0 → 1.10.1
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/RELEASING.md +4 -4
- data/lib/theme_check/tags.rb +2 -2
- data/lib/theme_check/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 131d90a928b4130827c6e41ea99ccd852e650417e88baceb66910ff083cf3aaa
|
4
|
+
data.tar.gz: a754d8b221da85eea053ce6f7547c9cad5a3a1e5f7a41562d61922a1278abe5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e2bc230eee811d2d0d8b62a09d11b3b88f2e54939f0c1aeda843d3f8d8455e34d0379aa89a9f388401d4ebb593a00abdfbb57357717fb9167bf7a73fb89943d
|
7
|
+
data.tar.gz: f901b9cd064ee47fa39a6b661524e2d4eafc52b6cda54aceabd4ff371c1d562cfb43967c666642b1ef4d1c1b72cb793ab3cf202bfaee2a5f80aedb1840335155
|
data/CHANGELOG.md
CHANGED
data/RELEASING.md
CHANGED
@@ -73,11 +73,11 @@
|
|
73
73
|
|
74
74
|
1. Release `theme-check` on RubyGems by following the steps in the previous section.
|
75
75
|
|
76
|
-
2. Update the `theme-check` version in [`shopify-cli`](https://github.com/shopify/shopify-cli)'s `
|
76
|
+
2. Update the `theme-check` version in [`shopify-cli`](https://github.com/shopify/shopify-cli)'s `shopify-cli.gemspec` file.
|
77
77
|
|
78
|
-
|
78
|
+
3. Run `bundle update theme-check` and get an updated `Gemfile.lock`
|
79
79
|
|
80
|
-
|
80
|
+
4. Create a branch + a commit on the [`shopify-cli`](https://github.com/Shopify/shopify-cli) repository.
|
81
81
|
|
82
82
|
```bash
|
83
83
|
VERSION=X.X.X
|
@@ -87,7 +87,7 @@
|
|
87
87
|
git commit -m "Bump theme-check version to $VERSION"
|
88
88
|
```
|
89
89
|
|
90
|
-
|
90
|
+
5. Create a pull-request for those changes on the [`shopify-cli`](https://github.com/Shopify/shopify-cli) repository.
|
91
91
|
|
92
92
|
```bash
|
93
93
|
# shortcut if you have `hub` installed
|
data/lib/theme_check/tags.rb
CHANGED
@@ -125,7 +125,7 @@ module ThemeCheck
|
|
125
125
|
end
|
126
126
|
|
127
127
|
class Render < Liquid::Tag
|
128
|
-
SYNTAX = /((?:#{Liquid::QuotedString}
|
128
|
+
SYNTAX = /((?:#{Liquid::QuotedString}|#{Liquid::VariableSegment})+)(\s+(with|#{Liquid::Render::FOR})\s+(#{Liquid::QuotedFragment}+))?(\s+(?:as)\s+(#{Liquid::VariableSegment}+))?/o
|
129
129
|
|
130
130
|
disable_tags "include"
|
131
131
|
|
@@ -134,7 +134,7 @@ module ThemeCheck
|
|
134
134
|
def initialize(tag_name, markup, options)
|
135
135
|
super
|
136
136
|
|
137
|
-
raise
|
137
|
+
raise SyntaxError, options[:locale].t("errors.syntax.render") unless markup =~ SYNTAX
|
138
138
|
|
139
139
|
template_name = Regexp.last_match(1)
|
140
140
|
with_or_for = Regexp.last_match(3)
|
data/lib/theme_check/version.rb
CHANGED