ember-auth-module-rememberable-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: af9a9a46d485f1df6c6852623e08fe5844f9e307
4
- data.tar.gz: 37be7de3ab069374bf89525c3a2541075389f133
3
+ metadata.gz: 36acb3de2eeb6ab2c068bcd20db78f6abc6a8fb4
4
+ data.tar.gz: 50d9cb96698e979c895ba62b971cd1f8355b73b2
5
5
  SHA512:
6
- metadata.gz: 981ed06d081d2100951c3da88899b4aba356ad6ea2a1f8764a391c3e66b8a63a2c48c9f2268359ecadf124ba930e9da24a378cb6173e14c5309f3b2e0dfc336c
7
- data.tar.gz: 2a6327f40ceee160959499f2b0b82a6834d29961585414e8f1136bcb8ae4d6f91d4a5ecded130f2131796bade760b525cd339802c4cdd364263f7610d088fb3f
6
+ metadata.gz: a8ef344e8aaf16f593e636128fd6cd31d7cd965709a3a67097cac024b58814d82f94a67f195ab1f7c4f7d39062ebfb18e76250406431d1c8cc9fb0841f2af198
7
+ data.tar.gz: b4324e7a6737e773da5cfa5222334104a3834f237a8382d7e11a306fc4572020a1d6fc344ff81005e1fac60d9660f69bf82bc1421fc2f696d6b1e21481267555
@@ -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.rememberable',
6
6
  before: 'ember-auth-load',
7
7
  initialize: function (container, app) {
8
- return app.register('authModule:rememberable', get$(get$(Em, 'Auth'), 'RememberableAuthModule'));
8
+ app.register('authModule:rememberable', get$(get$(Em, 'Auth'), 'RememberableAuthModule'), { singleton: true });
9
+ return app.inject('authModule:rememberable', 'auth', 'auth:main');
10
+ }
11
+ });
12
+ return application.initializer({
13
+ name: 'ember-auth.module.rememberable-load',
14
+ after: 'ember-auth-load',
15
+ initialize: function (container, app) {
16
+ return container.lookup('authModule:rememberable');
9
17
  }
10
18
  });
11
19
  });// Generated by EmberScript 0.0.7
@@ -15,9 +23,9 @@ set$(get$(Em, 'Auth'), 'RememberableAuthModule', Ember.Object.extend({
15
23
  init: function () {
16
24
  null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'rememberable'));
17
25
  this.patch();
18
- get$(this, 'auth').addHandler('signInSuccess', get$(this, 'remember'));
19
- get$(this, 'auth').addHandler('signInError', get$(this, 'forget'));
20
- return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'forget'));
26
+ get$(this, 'auth').addHandler('signInSuccess', get$(this, 'remember').bind(this));
27
+ get$(this, 'auth').addHandler('signInError', get$(this, 'forget').bind(this));
28
+ return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'forget').bind(this));
21
29
  },
22
30
  recall: function (opts) {
23
31
  var token;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-module-rememberable-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