ember-auth-request-jquery-source 1.0.2 → 1.0.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: 6cff8f61e273bcb40a2446bffd2323f4098d10d5
4
- data.tar.gz: 0123a8b73fb9139f0af4a4025f5668c29a000155
3
+ metadata.gz: 0b0dd41bf9502b4aa390751d9cf81e720305c281
4
+ data.tar.gz: 7589b8b6b72386cf62ecef24048879d47815fcb2
5
5
  SHA512:
6
- metadata.gz: 70f896df4a7ec9b89909f7adf957956c6dcf714e77305805dc56edd30b2893e614bf4601b9dc8b459cb356661219d9614e259858b895d0bb76c4f1d5a517e847
7
- data.tar.gz: 68116144eb0f3c1001a8e85b7d8cf39cbe51a7fe8004a2c04a6f438c5bfdef310e6d04c5a08b47611fe43c1a6bf15bd9b7f254a4ecb90aa35978a52adf23b51c
6
+ metadata.gz: 761f44da3fefdb1adf70f8e01bdaaa8a45986b8f3609995c06c0130df755b6420f2fa63704d6ec18a504be831c3cee0effc4ee7a67bc3ecaeab461de7ce90960
7
+ data.tar.gz: 31a002bc95eabfc2473dda9377888c39bd35c7113e297fe1dc36db38b94c5b07ebf15be221ae4a377bb9e39c00aaa2c69b8daecd350474bfb58337a92c4c0d6d
@@ -28,28 +28,24 @@ void function () {
28
28
  },
29
29
  jqxhr: null,
30
30
  signIn: function (url, opts) {
31
- return this.send($.extend(true, {
32
- url: url,
33
- type: 'POST'
34
- }, opts));
31
+ return this.send(url, $.extend(true, { type: 'POST' }, opts));
35
32
  },
36
33
  signOut: function (url, opts) {
37
- return this.send($.extend(true, {
38
- url: url,
39
- type: 'DELETE'
40
- }, opts));
34
+ return this.send(url, $.extend(true, { type: 'DELETE' }, opts));
41
35
  },
42
- send: function (opts) {
36
+ send: function (url, opts) {
43
37
  var def, settings, this$;
44
- def = {};
45
- set$(def, 'dataType', 'json');
38
+ def = {
39
+ url: url,
40
+ dataType: 'json'
41
+ };
46
42
  if (get$(opts, 'data') && !(null != get$(opts, 'contentType'))) {
47
43
  if (null != get$(opts, 'type') && get$(opts, 'type').toUpperCase() !== 'GET')
48
44
  set$(opts, 'data', JSON.stringify(get$(opts, 'data')));
49
45
  if ((null != get$(opts, 'type') ? get$(opts, 'type').toUpperCase() : void 0) !== 'GET')
50
46
  set$(def, 'contentType', 'application/json; charset=utf-8');
51
47
  }
52
- settings = $.extend(def, opts);
48
+ settings = $.extend(true, def, opts);
53
49
  return new (get$(get$(Em, 'RSVP'), 'Promise'))((this$ = this, function (resolve, reject) {
54
50
  var this$1, this$2;
55
51
  return $.ajax(settings).done((this$1 = this$, function (json, status, jqxhr) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-request-jquery-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - heartsentwined
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-11 00:00:00.000000000 Z
11
+ date: 2013-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ember-source