storejs-rails 1.3.14 → 1.3.15

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: e90ab21426ffaa9bdd48a6aaa0fd354f8d01f3df
4
- data.tar.gz: 9be20559a1d2bc0afe49b60a0a1cbd66deeff5bb
3
+ metadata.gz: c2a7ffe345b530fba816e26ce65ea07aefccd2fd
4
+ data.tar.gz: 7e45a6e9f41ad0d8fecf9ee0f5e34aed56060b4c
5
5
  SHA512:
6
- metadata.gz: 60ac471a0d948945274885e074304ffde669eabd7c5354961a6b39e70f82107422ec754f4436a57844b8038dc3dfcd7ccaeb70729f6f0ef7dfff66328248f09c
7
- data.tar.gz: 2580bca3a473d5e6ad952a9473b7949c5e2c4d7c02be1775ff7c210f34956d146f6c6b69f4e2ef9a78972a8031d3c0e4705a7c2b7b305f2161b6143161974224
6
+ metadata.gz: b12b6d1a4cdba63ad2b9fea734c906fa17d92e942fea32ed89a72c9e2374942e709ecc34c8f2c2154abfc6cefae8a82fc22496e16ba1eb35ec9f876857d192b2
7
+ data.tar.gz: 285744f262a85df5100a9c93cb1dee362aec8e8d774657dc99f915944158abf6dfcddf10be19a9c7f5129e640b6807fc21f0bdb91412d7f968b41d9268209592
@@ -1,5 +1,5 @@
1
1
  module Storejs
2
2
  module Rails
3
- VERSION = "1.3.14"
3
+ VERSION = "1.3.15"
4
4
  end
5
5
  end
@@ -104,10 +104,12 @@
104
104
  }
105
105
  }
106
106
 
107
- // In IE7, keys may not contain special chars. See all of https://github.com/marcuswestin/store.js/issues/40
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.window || global);
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.14
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: 2013-12-27 00:00:00.000000000 Z
11
+ date: 2014-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler