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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b2030ff2b31b156e7803dd6fe7d3cb6ea6e59fd22100c74e676f7313e90cc9a
4
- data.tar.gz: ed788aefe38153a07cf6b663d9e8b43722bf1c0c9df0f4b534e9229129b63372
3
+ metadata.gz: 778c76677f49e12c6b7af95602b87f6cbf9ca7fec7308859dc452be09e9924ac
4
+ data.tar.gz: a59abcde993050ecda09eeec3c67e0689021c4d91e89db3792e2d16abdcb4fdf
5
5
  SHA512:
6
- metadata.gz: dfb98ff65bc099db834246000b1947c76f5e94d5142fef0c85db91536497cf4441b30b23339ca1f040b8cb17ec519b3c76a9f58255c8ea059987900457c3a733
7
- data.tar.gz: 555ce9b20061b3c0cb1cb9cecf6047920609fe58a7408dab2780ab0283bf0f518aaad97cdb687c1dfa19789eda9b6580b995defc1a446a796b308cf2cd4e0d15
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
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Spree
4
4
  def self.solidus_version
5
- "2.8.0.alpha.8"
5
+ "2.8.0.alpha.9"
6
6
  end
7
7
 
8
8
  def self.solidus_gem_version
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.8
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-25 00:00:00.000000000 Z
11
+ date: 2018-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer