ember-auth-module-action_redirectable-source 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/dist/ember-auth-module-action-redirectable.js +10 -13
- 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: 1edc09501e525826200fbd5d1c73dfb90db26805
|
|
4
|
+
data.tar.gz: 523e594d5a5a0fb82477a953801824246dedc5d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00acf00ef7b5e6c5a239a85502f57e24a54ec60916f366e53af9f3fb14b8371cfd4e514073ab4a644709c70c6ed5bd0e2fe36678e0b9567d91c1e5d7cab7d09f
|
|
7
|
+
data.tar.gz: 27b8e4486fe7fba295d38be20949cc296050ef9ed688f607859c5a5254d9aabbdc1ee917774090526f66f856a2a670478021eff449118d90c60760c8e1a54798
|
|
@@ -30,10 +30,19 @@ var get$ = Ember.get;
|
|
|
30
30
|
var set$ = Ember.set;
|
|
31
31
|
set$(get$(Em, 'Auth'), 'ActionRedirectableAuthModule', Ember.Object.extend({
|
|
32
32
|
init: function () {
|
|
33
|
-
|
|
33
|
+
get$(this, 'auth')._config('actionRedirectable', get$(this, '_defaultConfig'));
|
|
34
|
+
null != get$(this, 'config') || set$(this, 'config', get$(this, 'auth')._config('actionRedirectable'));
|
|
34
35
|
get$(this, 'auth').addHandler('signInSuccess', get$(this, 'redirect').bind(this));
|
|
35
36
|
return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'redirect').bind(this));
|
|
36
37
|
},
|
|
38
|
+
_defaultConfig: {
|
|
39
|
+
signInRoute: false,
|
|
40
|
+
signOutRoute: false,
|
|
41
|
+
signInSmart: false,
|
|
42
|
+
signOutSmart: false,
|
|
43
|
+
signInBlacklist: [],
|
|
44
|
+
signOutBlacklist: []
|
|
45
|
+
},
|
|
37
46
|
signInRedir: null,
|
|
38
47
|
signOutRedir: null,
|
|
39
48
|
registerRedirect: function (transition) {
|
|
@@ -101,15 +110,3 @@ function in$(member, list) {
|
|
|
101
110
|
return true;
|
|
102
111
|
return false;
|
|
103
112
|
};
|
|
104
|
-
// Generated by EmberScript 0.0.7
|
|
105
|
-
var get$ = Ember.get;
|
|
106
|
-
get$(Em, 'Auth').reopen({
|
|
107
|
-
actionRedirectable: {
|
|
108
|
-
signInRoute: false,
|
|
109
|
-
signOutRoute: false,
|
|
110
|
-
signInSmart: false,
|
|
111
|
-
signOutSmart: false,
|
|
112
|
-
signInBlacklist: [],
|
|
113
|
-
signOutBlacklist: []
|
|
114
|
-
}
|
|
115
|
-
});
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ember-auth-module-action_redirectable-source
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
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-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ember-source
|