js_cookie_rails 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/js_cookie_rails/version.rb +1 -1
- data/vendor/assets/javascripts/js.cookie.js +12 -7
- 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: 99d98105c5b2c6141bb2b9b8738891b30d3aa7be
|
4
|
+
data.tar.gz: 36207bdf92380b76a94536323a5dc27027836c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 041f8211224d91f7d056429f21a4fd70e5302d0a57d941ae7361d076c2018c713e59be4143cf0fbbdea266b2cf994a6f14f39347073a4f5fe3e916b66a6050f6
|
7
|
+
data.tar.gz: 34c079e566ec69c8282a0119c2dfa22e33b3e1477df7361114ab4fa60721757e2d3c5d8d5fee5a798af2db6eacfbb18aa995101a4af0f48f53a718a7ed3754ea
|
@@ -1,16 +1,21 @@
|
|
1
1
|
/*!
|
2
|
-
* JavaScript Cookie v2.1.
|
2
|
+
* JavaScript Cookie v2.1.3
|
3
3
|
* https://github.com/js-cookie/js-cookie
|
4
4
|
*
|
5
5
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
6
6
|
* Released under the MIT license
|
7
7
|
*/
|
8
8
|
;(function (factory) {
|
9
|
+
var registeredInModuleLoader = false;
|
9
10
|
if (typeof define === 'function' && define.amd) {
|
10
11
|
define(factory);
|
11
|
-
|
12
|
+
registeredInModuleLoader = true;
|
13
|
+
}
|
14
|
+
if (typeof exports === 'object') {
|
12
15
|
module.exports = factory();
|
13
|
-
|
16
|
+
registeredInModuleLoader = true;
|
17
|
+
}
|
18
|
+
if (!registeredInModuleLoader) {
|
14
19
|
var OldCookies = window.Cookies;
|
15
20
|
var api = window.Cookies = factory();
|
16
21
|
api.noConflict = function () {
|
@@ -72,9 +77,9 @@
|
|
72
77
|
return (document.cookie = [
|
73
78
|
key, '=', value,
|
74
79
|
attributes.expires ? '; expires=' + attributes.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
|
75
|
-
attributes.path
|
76
|
-
attributes.domain
|
77
|
-
attributes.secure
|
80
|
+
attributes.path ? '; path=' + attributes.path : '',
|
81
|
+
attributes.domain ? '; domain=' + attributes.domain : '',
|
82
|
+
attributes.secure ? '; secure' : ''
|
78
83
|
].join(''));
|
79
84
|
}
|
80
85
|
|
@@ -127,7 +132,7 @@
|
|
127
132
|
|
128
133
|
api.set = api;
|
129
134
|
api.get = function (key) {
|
130
|
-
return api(key);
|
135
|
+
return api.call(api, key);
|
131
136
|
};
|
132
137
|
api.getJSON = function () {
|
133
138
|
return api.apply({
|
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
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Lepore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|