jekyll-svelte-slabs 0.0.4 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-svelte-slabs.rb +4 -3
- data/lib/jekyll-svelte-slabs/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: 765c13d4cf9d6ad554948b9f3be6a2deacfb27fd4bef3b33722911257e9924ed
|
4
|
+
data.tar.gz: 8e2f0b65b46c9e3e59f7f4fe99926529db5d6f225ed959517e9611d3f0c0eb3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372396a0d2273fb49934a21a792c19bba18a68e74b0611010bdcba2aebcd39bd779168de7515354a2d2790b79d548f893352edd5c409f241f3033ef10148f0de
|
7
|
+
data.tar.gz: 84e4ef8cfcad368d80728c3bcac65afa719147257ce130ea18afd21de9b9156e428629b8b239aae1fc56ee956314f6396bc5a5371679479fbc1c64a411991a97
|
data/lib/jekyll-svelte-slabs.rb
CHANGED
@@ -139,14 +139,15 @@ module JekyllSvelteSlabs
|
|
139
139
|
validate_file_name(file)
|
140
140
|
|
141
141
|
svelte_data = @params ? parse_params(context).to_json : "{}"
|
142
|
-
|
142
|
+
encoded_svelte_data = Base64.strict_encode64(svelte_data)
|
143
|
+
endpoint = Digest::MD5.hexdigest(encoded_svelte_data)
|
143
144
|
|
144
145
|
<<~MSG
|
145
146
|
<script>
|
146
147
|
window.svelteSlabs = window.svelteSlabs || {};
|
147
|
-
window.svelteSlabs["#{endpoint}"] = #{
|
148
|
+
window.svelteSlabs["#{endpoint}"] = "#{encoded_svelte_data}";
|
148
149
|
</script>
|
149
|
-
<div data-svelte-slab="#{file}" data-svelte-slab-props="
|
150
|
+
<div data-svelte-slab="#{file}" data-svelte-slab-props="window_b:#{endpoint}">
|
150
151
|
#{text}
|
151
152
|
</div>
|
152
153
|
MSG
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-svelte-slabs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Bigelow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|