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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d2a61d49e4776b06d071db1debeee169e1e7360
4
- data.tar.gz: 9638c20a1e4c2358508b20d37a1234b5c14e4e2e
3
+ metadata.gz: 1edc09501e525826200fbd5d1c73dfb90db26805
4
+ data.tar.gz: 523e594d5a5a0fb82477a953801824246dedc5d9
5
5
  SHA512:
6
- metadata.gz: 5fb584a64803b5cb6c7de333f6700d8e6d639c4ab2449eeac2eee2bf25b74ba9c1f7461853568b718f1e4ca847a53bf8d75f771f9c32b5e3cffcebc46974c3b6
7
- data.tar.gz: 5dfdfea62b6b3a7d89c3c914fa0c9836a57f794181f27e46fd63590fb9b2ccd5f4bb10cbc85bb672ffefcf7c1bba9051dacabf866a246fc616024ab4d2281869
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
- null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'actionRedirectable'));
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.1
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-10 00:00:00.000000000 Z
11
+ date: 2013-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ember-source