solidus_core_devise_token_auth 2.8.0.alpha.10 → 2.8.0.alpha.11

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
  SHA256:
3
- metadata.gz: 579497ecd26c2024eed03fe9ed79456eaa7f2e005c23fa588bede727a225a640
4
- data.tar.gz: 2b7cc9b40bb59f67f4c6fe7cf432b8eeb7bf2a7efa6cab501931a5fb9f7badca
3
+ metadata.gz: f41159262c1f05ae962dc29b1dacb9484ff1ea499362f7701608103ffde0920a
4
+ data.tar.gz: da26e11e23a627b9c33d1fb8b794509159a874c8a8278989fadd941a06b66ad1
5
5
  SHA512:
6
- metadata.gz: ae3ead917f930b20bb63a61729d4c8cf59b57d2b57e90790bfbed2508c01f83cd344501ccf1ee11140dd58d0fa869241d5eb083e689a6ca9e1968def3fd13fcb
7
- data.tar.gz: 488111fe9106e941b7b9eb2fd592efb020a09ee4a2b1cbd348d83d74a855196a3123b96cdd09f0496d7d1ffd03e1f4b415cc55559e2f510d13c6e75df066e0cb
6
+ metadata.gz: 825d977756cf8b8f78031c15561c36d5014af2aae67f1f661e9f3e6007585dcf68a6f31a8194cf736581f5e5c5c0ba354e016e04ae9375da6f24a5c72a6b302d
7
+ data.tar.gz: fa9638cc1d68a162648c494c336a345bdad68ca2a7f7419d2f61fd82f076b961d26f9b55d02e77dde7f68df6bfaf92bf118a4c4da3a93bb8b5be3332794e4127
@@ -37,20 +37,25 @@ Spree.url = function(uri, query) {
37
37
  return uri;
38
38
  };
39
39
 
40
+ Spree.accessTokenHeaders = function() {
41
+ var authHeaders = {};
42
+
43
+ for (var key in Spree.accessTokenData) {
44
+ authHeaders[key] = Spree.accessTokenData[key];
45
+ }
46
+
47
+ return authHeaders;
48
+ };
49
+
40
50
  Spree.ajax = function(url, options) {
41
51
  if (typeof url === "object") {
42
52
  options = url;
43
53
  url = undefined;
44
54
  }
45
55
 
46
- var authHeaders = {};
47
- for (var key in Spree.accessTokenData) {
48
- authHeaders[key] = Spree.accessTokenData[key];
49
- }
50
-
51
56
  options = options || {};
52
57
  options = $.extend(options, {
53
- headers: authHeaders,
58
+ headers: Spree.accessTokenHeaders(),
54
59
  });
55
60
  return $.ajax(url, options);
56
61
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Spree
4
4
  def self.solidus_version
5
- "2.8.0.alpha.10"
5
+ "2.8.0.alpha.11"
6
6
  end
7
7
 
8
8
  def self.solidus_gem_version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_core_devise_token_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0.alpha.10
4
+ version: 2.8.0.alpha.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Siwek (skycocker)