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 +4 -4
- data/dist/ember-auth-request-jquery.js +8 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b0dd41bf9502b4aa390751d9cf81e720305c281
|
4
|
+
data.tar.gz: 7589b8b6b72386cf62ecef24048879d47815fcb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.
|
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
|
+
date: 2013-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ember-source
|