ember-auth-module-timeoutable-source 1.0.0 → 1.0.1

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: 8a2e70248093606e1108aa64feab02af41ee65dd
4
- data.tar.gz: 4b4c506b3cf3a86b66340e1b144c0e0fcdeca5f0
3
+ metadata.gz: 655ab925ec97249a8f19f3f3b75b66b16616edce
4
+ data.tar.gz: af4bfcf4223e615260458827485c620ff0df3106
5
5
  SHA512:
6
- metadata.gz: 3a1587c9b67e818e204cce0b7b374861d11c5d40f08347dfea6554b7466def99c824e7fa0dd0188b58026be49eb56be7c89663597d8b1dd044d7e5461f148969
7
- data.tar.gz: c861ec74437c1066d6b52395dd097769e03fd181f53a7f13cf7a29e420edfb326cd124715a26ced0b81b5f0f8d3c8ce10ee666e384a2ebe0fcc732b1a9aa6336
6
+ metadata.gz: 21e5f2ee27cce64e08c2abffe91cec7e507e6e99713a343a1eba2830a162a2183ae951f816ae03bca0fca265de86c547c780f243071595dc016ec18d12a09e56
7
+ data.tar.gz: ce590f2239983cafb41b21c6119d0e20bb8a3d79dcb18d8e483be9e81caa866bb478b7d956d0e40d2f0ed1564ceebc872cd9fd0b9901ceae7fa53e29d83b93ef
@@ -1,11 +1,19 @@
1
1
  // Generated by EmberScript 0.0.7
2
2
  var get$ = Ember.get;
3
3
  Em.onLoad('Ember.Application', function (application) {
4
- return application.initializer({
4
+ application.initializer({
5
5
  name: 'ember-auth.module.timeoutable',
6
6
  before: 'ember-auth-load',
7
7
  initialize: function (container, app) {
8
- return app.register('authModule:timeoutable', get$(get$(Em, 'Auth'), 'TimeoutableAuthModule'));
8
+ app.register('authModule:timeoutable', get$(get$(Em, 'Auth'), 'TimeoutableAuthModule'), { singleton: true });
9
+ return app.inject('authModule:timeoutable', 'auth', 'auth:main');
10
+ }
11
+ });
12
+ return application.initializer({
13
+ name: 'ember-auth.module.timeoutable-load',
14
+ after: 'ember-auth-load',
15
+ initialize: function (container, app) {
16
+ return container.lookup('authModule:timeoutable');
9
17
  }
10
18
  });
11
19
  });// Generated by EmberScript 0.0.7
@@ -18,9 +26,9 @@ set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({
18
26
  null != get$(get$(this, 'config'), 'callback') || set$(get$(this, 'config'), 'callback', (this$ = this, function () {
19
27
  return get$(this$, 'auth').signOut();
20
28
  }));
21
- get$(this, 'auth').addHandler('signInSuccess', get$(this, 'register'));
22
- get$(this, 'auth').addHandler('signInError', get$(this, 'clear'));
23
- return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clear'));
29
+ get$(this, 'auth').addHandler('signInSuccess', get$(this, 'register').bind(this));
30
+ get$(this, 'auth').addHandler('signInError', get$(this, 'clear').bind(this));
31
+ return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clear').bind(this));
24
32
  },
25
33
  _startTime: null,
26
34
  timeout: function () {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-module-timeoutable-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - heartsentwined