jekyll-pwa-plugin 1.0.1 → 1.0.2
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/jekyll-pwa-plugin.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 736c5288f23d891eabdacb0cc80dea6d1f31a584
|
4
|
+
data.tar.gz: eda060eef3b7f071b04faeb74b58ea5348302bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e43a49b5d72ae651756c98f0b8b9cb8dc9d393c1eb361806347828854d1afa1866815e181ba0d2b7b2237e5f50e3bfaa3599a3f1e43bc1e9fe767c4e74b8b7fe
|
7
|
+
data.tar.gz: 98300254bf2b5d8928e755f641f3b1a0c5504557693baee64cf85216ba239f326fe131abd214d30f481c1490c8fa07708445f6b5d858bdad45db97d5b2a82669
|
data/lib/jekyll-pwa-plugin.rb
CHANGED
@@ -86,7 +86,7 @@ class SWHelper
|
|
86
86
|
url = filepath.sub(@site.dest, '')
|
87
87
|
end
|
88
88
|
@precache_list.push({
|
89
|
-
url: @site.baseurl + url,
|
89
|
+
url: @site.baseurl.to_s + url,
|
90
90
|
revision: md5.hexdigest
|
91
91
|
})
|
92
92
|
end
|
@@ -124,7 +124,7 @@ class SWHelper
|
|
124
124
|
|
125
125
|
# write service-worker.js
|
126
126
|
import_scripts_str = copied_vendor_files.map do |vendor_filename|
|
127
|
-
vendor_url = File.join(@site.baseurl, dest_js_directory, vendor_filename)
|
127
|
+
vendor_url = File.join(@site.baseurl.to_s, dest_js_directory, vendor_filename)
|
128
128
|
<<-SCRIPT
|
129
129
|
importScripts('#{vendor_url}');
|
130
130
|
SCRIPT
|
@@ -156,7 +156,7 @@ class SWHelper
|
|
156
156
|
var firstScript = document.getElementsByTagName('script')[0];
|
157
157
|
script.type = 'text/javascript';
|
158
158
|
script.async = true;
|
159
|
-
script.src = '#{page.site.baseurl}/sw-register.js?v=' + Date.now();
|
159
|
+
script.src = '#{page.site.baseurl.to_s}/sw-register.js?v=' + Date.now();
|
160
160
|
firstScript.parentNode.insertBefore(script, firstScript);
|
161
161
|
};
|
162
162
|
</script>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-pwa-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pan Yuqi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This plugin provides PWA support for Jekyll. Generate a service worker
|
14
14
|
and provides precache with Google Workbox.
|