solidus_core_devise_token_auth 2.8.0.alpha.8 → 2.8.0.alpha.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/spree.js.erb +7 -3
- data/lib/spree/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 778c76677f49e12c6b7af95602b87f6cbf9ca7fec7308859dc452be09e9924ac
|
4
|
+
data.tar.gz: a59abcde993050ecda09eeec3c67e0689021c4d91e89db3792e2d16abdcb4fdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2df284855d46d5a7669901f92697d2ac95f12421c56f148f57039e62bf224f340f57a0c2360e31953d3ae0c067e12c869001dff580f60b594bb971ca8604f5fe
|
7
|
+
data.tar.gz: 127f6fb3b2fece7df065cee46171ef3b0952d3b6489ad7495245c7afde489792c5793fc6a6669b071055ed8b307ffe1efc7dad5e5a8cb13136f5c5c066111247
|
@@ -42,11 +42,15 @@ Spree.ajax = function(url, options) {
|
|
42
42
|
options = url;
|
43
43
|
url = undefined;
|
44
44
|
}
|
45
|
+
|
46
|
+
var authHeaders = {};
|
47
|
+
for (var key in Spree.accessTokenData) {
|
48
|
+
authHeaders[key] = Spree.accessTokenData[key];
|
49
|
+
}
|
50
|
+
|
45
51
|
options = options || {};
|
46
52
|
options = $.extend(options, {
|
47
|
-
headers:
|
48
|
-
"X-Spree-Token": Spree.api_key
|
49
|
-
}
|
53
|
+
headers: authHeaders,
|
50
54
|
});
|
51
55
|
return $.ajax(url, options);
|
52
56
|
};
|
data/lib/spree/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.
|
4
|
+
version: 2.8.0.alpha.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Siwek (skycocker)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|