serviceworker-rails 0.5.3 → 0.5.4

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
  SHA1:
3
- metadata.gz: f2b9f4ff6d8273f3ccd60abcc64955f0d4cea84b
4
- data.tar.gz: d8a87127df4ad6d976d843d6d5ea5761a8bb1078
3
+ metadata.gz: d17cdce006f3937428ea792d26d0230da7f160f2
4
+ data.tar.gz: a732500aceef5f0ebf4e9c735cd035f0d05777e2
5
5
  SHA512:
6
- metadata.gz: a1838a0ee5e588d62cbecf9071fb931da4469840c24f63392a61dc14d70d9b41ead63aa01dc5e51da25bd91924e246ebb146ed754c8cf3ad7c68bba6e23b3bee
7
- data.tar.gz: 4cd72f33d9ed0dad1497983fb1a8fcef457d22c2e11fbb9b47637c20ea82c97ecd2f8c35296aba862388874595ebf8fbdfe35f6dd659db180537ea897e4bfe1a
6
+ metadata.gz: 884781e3a6c78d0fd5dfae678b8dc1fbcb8fed0e08d5328f085da530ea1b3458b4dc704f8ff37a52fc738410cdad37d3a7a390c2aacae14dcf9497a981e5aa97
7
+ data.tar.gz: 90815d77139a1fc02a9d517475802de3e52b219878d9660e2656367e7505df43a4cebb07caaa4f7c294946c205549ab7d58f2f559867cc64c7ab52203766876f
@@ -1,3 +1,8 @@
1
+ ### 0.5.4 - 2017-02-02
2
+
3
+ * bug fixes
4
+ * Fix cache name for proper cache deletion in activation callback of serviceworker template
5
+
1
6
  ### 0.5.3 - 2017-01-11
2
7
 
3
8
  * bug fixes
data/README.md CHANGED
@@ -122,7 +122,7 @@ function onActivate(event) {
122
122
  // Return true if you want to remove this cache,
123
123
  // but remember that caches are shared across
124
124
  // the whole origin
125
- return key.indexOf('v1') !== 0;
125
+ return cacheName.indexOf('v1') !== 0;
126
126
  }).map(function(cacheName) {
127
127
  return caches.delete(cacheName);
128
128
  })
@@ -1,5 +1,5 @@
1
- var CACHE_VERSION = 'v1'
2
- var CACHE_NAME = 'sw-cache-' + CACHE_VERSION;
1
+ var CACHE_VERSION = 'v1';
2
+ var CACHE_NAME = CACHE_VERSION + ':sw-cache-';
3
3
 
4
4
  function onInstall(event) {
5
5
  console.log('[Serviceworker]', "Installing!", event);
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  module ServiceWorker
3
3
  module Rails
4
- VERSION = "0.5.3".freeze
4
+ VERSION = "0.5.4".freeze
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serviceworker-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ross Kaffenberger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-11 00:00:00.000000000 Z
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties