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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db84f3469a649ec9c6b49fd7251b7c70103c1172a35277c9af1bdcb8e9aecb81
4
- data.tar.gz: 93689a31bca7742554559864c8f909bd49999ee5265f3c893796aa9f889e6e67
3
+ metadata.gz: 765c13d4cf9d6ad554948b9f3be6a2deacfb27fd4bef3b33722911257e9924ed
4
+ data.tar.gz: 8e2f0b65b46c9e3e59f7f4fe99926529db5d6f225ed959517e9611d3f0c0eb3a
5
5
  SHA512:
6
- metadata.gz: 398cf87b7c2f1a1f5626943c4713d6471135d468bfba61f6911062b2ef7bb311bbb6f948a94819f7330943130826f7cba3e37de0faa56f1434246e396695ec07
7
- data.tar.gz: 0db8c430fb82a25ee89da3e02e4295d469735b976713565dce7aeaa4cbc71d6be2c2d790b0d0d86a843d4cdad95656a8e41a10bf9dba335a16c166deaa5a3cb0
6
+ metadata.gz: 372396a0d2273fb49934a21a792c19bba18a68e74b0611010bdcba2aebcd39bd779168de7515354a2d2790b79d548f893352edd5c409f241f3033ef10148f0de
7
+ data.tar.gz: 84e4ef8cfcad368d80728c3bcac65afa719147257ce130ea18afd21de9b9156e428629b8b239aae1fc56ee956314f6396bc5a5371679479fbc1c64a411991a97
@@ -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
- endpoint = Digest::MD5.hexdigest(svelte_data)
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}"] = #{svelte_data};
148
+ window.svelteSlabs["#{endpoint}"] = "#{encoded_svelte_data}";
148
149
  </script>
149
- <div data-svelte-slab="#{file}" data-svelte-slab-props="window:#{endpoint}">
150
+ <div data-svelte-slab="#{file}" data-svelte-slab-props="window_b:#{endpoint}">
150
151
  #{text}
151
152
  </div>
152
153
  MSG
@@ -1,3 +1,3 @@
1
1
  module JekyllSvelteSlabs
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.7"
3
3
  end
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
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-01-17 00:00:00.000000000 Z
11
+ date: 2021-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll