storejs-rails 1.3.14 → 1.3.15
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/storejs/rails/version.rb +1 -1
- data/vendor/assets/javascripts/store.js +5 -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: c2a7ffe345b530fba816e26ce65ea07aefccd2fd
|
|
4
|
+
data.tar.gz: 7e45a6e9f41ad0d8fecf9ee0f5e34aed56060b4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b12b6d1a4cdba63ad2b9fea734c906fa17d92e942fea32ed89a72c9e2374942e709ecc34c8f2c2154abfc6cefae8a82fc22496e16ba1eb35ec9f876857d192b2
|
|
7
|
+
data.tar.gz: 285744f262a85df5100a9c93cb1dee362aec8e8d774657dc99f915944158abf6dfcddf10be19a9c7f5129e640b6807fc21f0bdb91412d7f968b41d9268209592
|
|
@@ -104,10 +104,12 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
// In IE7, keys
|
|
107
|
+
// In IE7, keys cannot start with a digit or contain certain chars.
|
|
108
|
+
// See https://github.com/marcuswestin/store.js/issues/40
|
|
109
|
+
// See https://github.com/marcuswestin/store.js/issues/83
|
|
108
110
|
var forbiddenCharsRegex = new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g")
|
|
109
111
|
function ieKeyFix(key) {
|
|
110
|
-
return key.replace(forbiddenCharsRegex, '___')
|
|
112
|
+
return key.replace(/^d/, '___$&').replace(forbiddenCharsRegex, '___')
|
|
111
113
|
}
|
|
112
114
|
store.set = withIEStorage(function(storage, key, val) {
|
|
113
115
|
key = ieKeyFix(key)
|
|
@@ -162,4 +164,4 @@
|
|
|
162
164
|
else if (typeof define === 'function' && define.amd) { define(store) }
|
|
163
165
|
else { win.store = store }
|
|
164
166
|
|
|
165
|
-
})(this
|
|
167
|
+
})(Function('return this')());
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: storejs-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomek Wałkuski
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-01-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|