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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fb24d333a92c686193a4d1025a15ef229f2ad4c
4
- data.tar.gz: 0f548149a897afbb5cb29ab48aef95391efb67dc
3
+ metadata.gz: 99d98105c5b2c6141bb2b9b8738891b30d3aa7be
4
+ data.tar.gz: 36207bdf92380b76a94536323a5dc27027836c8c
5
5
  SHA512:
6
- metadata.gz: 427e275bd39b0042d837647ebb685844ac4691f49a7648d64ca0893c3480414e9bc38f0e273fb1702cb21910ca73e6ac43f4d2a676eded349c9cb0fa48969c5c
7
- data.tar.gz: ddc81652a5441bba4f7c33ba98fe16d604a5224435821d6170760c19265ea9470269e0b984c7a0987e293270b8997a39e54b9a51e2fcf6d216857a191f84fa9d
6
+ metadata.gz: 041f8211224d91f7d056429f21a4fd70e5302d0a57d941ae7361d076c2018c713e59be4143cf0fbbdea266b2cf994a6f14f39347073a4f5fe3e916b66a6050f6
7
+ data.tar.gz: 34c079e566ec69c8282a0119c2dfa22e33b3e1477df7361114ab4fa60721757e2d3c5d8d5fee5a798af2db6eacfbb18aa995101a4af0f48f53a718a7ed3754ea
@@ -1,3 +1,3 @@
1
1
  module JsCookieRails
2
- VERSION = "2.1.2"
2
+ VERSION = "2.1.3"
3
3
  end
@@ -1,16 +1,21 @@
1
1
  /*!
2
- * JavaScript Cookie v2.1.2
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
- } else if (typeof exports === 'object') {
12
+ registeredInModuleLoader = true;
13
+ }
14
+ if (typeof exports === 'object') {
12
15
  module.exports = factory();
13
- } else {
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 ? '; path=' + attributes.path : '',
76
- attributes.domain ? '; domain=' + attributes.domain : '',
77
- attributes.secure ? '; 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.2
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-07-28 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties