minitest_shopify_themes 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/minitest_shopify_themes/filters/json_filter.rb +9 -0
- data/lib/minitest_shopify_themes/liquid_test.rb +8 -1
- data/lib/minitest_shopify_themes/tags/style_tag.rb +8 -0
- data/lib/minitest_shopify_themes/tags/stylesheet_tag.rb +8 -0
- data/lib/minitest_shopify_themes/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b659a8ff715b5e0dc337e33da74a2c432a4b18fb7e3ec9c58b1b3263b5a06830
|
|
4
|
+
data.tar.gz: c7d0c72f38eef841957679ce4497f239c5afdfa0a6432bf534c5321eee07b2fa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 51aa0c0caf1ff495f2ff2b5754a3fb3cf277f2ddb86b1f848dfbccd6bfbaf9aaf9a1a51717f0ae6c351db3d2935bf98f41e40cdf41e5e875f29afe8c22775b2f
|
|
7
|
+
data.tar.gz: ed68f602965a3a1b920afadb87b3456f9cd7e3c1b4e3bd2908d6141f8eb5df691f120cf3d54cba4f355699b12dc218ac5b13c81ad8b9c87e1af8a8aaac287336
|
|
@@ -45,7 +45,14 @@ class MinitestShopifyThemes::LiquidTest < Minitest::Test
|
|
|
45
45
|
# Liquid expects string keys for variables, but Rails convention is to use symbols.
|
|
46
46
|
# This method recursively converts all keys to strings so either convention can be used.
|
|
47
47
|
hash.each_with_object({}) do |(key, value), acc|
|
|
48
|
-
acc[key.to_s] =
|
|
48
|
+
acc[key.to_s] = case value
|
|
49
|
+
when Hash
|
|
50
|
+
deep_stringify_keys(value)
|
|
51
|
+
when Array
|
|
52
|
+
value.map { |v| v.is_a?(Hash) ? deep_stringify_keys(v) : v }
|
|
53
|
+
else
|
|
54
|
+
value
|
|
55
|
+
end
|
|
49
56
|
end
|
|
50
57
|
end
|
|
51
58
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest_shopify_themes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Belzer
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: capybara
|
|
@@ -175,12 +175,15 @@ files:
|
|
|
175
175
|
- lib/minitest_shopify_themes/configuration.rb
|
|
176
176
|
- lib/minitest_shopify_themes/filters/assets_filter.rb
|
|
177
177
|
- lib/minitest_shopify_themes/filters/image_filter.rb
|
|
178
|
+
- lib/minitest_shopify_themes/filters/json_filter.rb
|
|
178
179
|
- lib/minitest_shopify_themes/filters/money_filter.rb
|
|
179
180
|
- lib/minitest_shopify_themes/filters/translations_filter.rb
|
|
180
181
|
- lib/minitest_shopify_themes/liquid_test.rb
|
|
181
182
|
- lib/minitest_shopify_themes/local_file_system.rb
|
|
182
183
|
- lib/minitest_shopify_themes/tags/schema_tag.rb
|
|
183
184
|
- lib/minitest_shopify_themes/tags/section_tag.rb
|
|
185
|
+
- lib/minitest_shopify_themes/tags/style_tag.rb
|
|
186
|
+
- lib/minitest_shopify_themes/tags/stylesheet_tag.rb
|
|
184
187
|
- lib/minitest_shopify_themes/version.rb
|
|
185
188
|
- lib/minitest_shopify_themes/view_test.rb
|
|
186
189
|
homepage: https://github.com/nebulab/minitest-shopify?tab=readme-ov-file#readme
|
|
@@ -206,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
206
209
|
- !ruby/object:Gem::Version
|
|
207
210
|
version: '0'
|
|
208
211
|
requirements: []
|
|
209
|
-
rubygems_version: 3.
|
|
212
|
+
rubygems_version: 3.7.2
|
|
210
213
|
specification_version: 4
|
|
211
214
|
summary: A minitest plugin for testing Shopify Liquid themes
|
|
212
215
|
test_files: []
|