js_cookie_rails 2.1.4 → 2.2.0

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: 6918f292607b303cd4893242fd43954b021177d8
4
- data.tar.gz: 63bc53ce8bdc4b48bff5b1ac8cf8f7b113d8a5c8
3
+ metadata.gz: 2bbaa113f6db055acd0df4c69fc7aa5bd213d525
4
+ data.tar.gz: 42772557cb771a0fbbafcdad2d09564f130adbc7
5
5
  SHA512:
6
- metadata.gz: eca07c0043caa4375f5108cc8dcbff122244d486ff745f027eb59b99d686f3155a474326118e383e069c9c018fe136ed652e43a4cdb6c3a22cc9c731fcced395
7
- data.tar.gz: a3fa688895845cc61e087a46ce933fca31408745d1d5cf379792a6df91c4a06346091a77031e6f5fd682088df9acdea53b84c5d7835fa72c5024a8431383a9d4
6
+ metadata.gz: bf5c1c6ea6c29972e5f06335817ca3dfe16fbc35c2fa505ef34e2c608ab77a59a3b99c12129f8c8df435ea62a88f15e20e8ee9df81ffcdfb3f898027114b16df
7
+ data.tar.gz: 57c8d2d77a6bd34b128003ab0ac1ca030a204fd3f74b285d62974417807aa0e1edcad284128118f788060d085641df9d9ff3c6761e2fca98f5d44a12fc781bc8
@@ -1,3 +1,3 @@
1
1
  module JsCookieRails
2
- VERSION = "2.1.4"
2
+ VERSION = "2.2.0"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * JavaScript Cookie v2.1.4
2
+ * JavaScript Cookie v2.2.0
3
3
  * https://github.com/js-cookie/js-cookie
4
4
  *
5
5
  * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
@@ -109,7 +109,7 @@
109
109
  var parts = cookies[i].split('=');
110
110
  var cookie = parts.slice(1).join('=');
111
111
 
112
- if (cookie.charAt(0) === '"') {
112
+ if (!this.json && cookie.charAt(0) === '"') {
113
113
  cookie = cookie.slice(1, -1);
114
114
  }
115
115
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_cookie_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.4
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Lepore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-03 00:00:00.000000000 Z
11
+ date: 2018-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.5.1
97
+ rubygems_version: 2.5.2
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Adds js-cookie to the Rails asset pipeline.