ember-auth-module-ember_data-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: 89625735af97fafcfcf4391e9db86a4b25e20031
4
- data.tar.gz: 20725040a5efd40792ab4f68bc2de1cf2ccef691
3
+ metadata.gz: 0a9233ec91a9327e976cd176e18366f2094b4584
4
+ data.tar.gz: 694186ac60d6c39d58160b1b8a1202a62a41c77c
5
5
  SHA512:
6
- metadata.gz: 4bc3b0ba709c0751e5b4f0d7835ff3388fe8f0e57addf4ff36b135ae0bb4a9f644cb684b82ceffb264aef553f60a092193f3de465a1d0fce0dbd9fb555e04268
7
- data.tar.gz: fa1927d44d3385bbb1277cb66262f0348949b29ff1da8bdb4cb51d50c9a1e0525a19af6012f1e04ab9b860a6006cce717afebc783d6103a3d7ffa299ff30e19f
6
+ metadata.gz: a73b496a98bd35833a821e095afb9e032ca7e6e19cf16eae8b078e428fe4e6fa5fbf09922c88365085e18405a071ee05d11a67630b75e14085d924e5a57ff0f4
7
+ data.tar.gz: 454f77e822a8e8fa14f769eb05cfcb2130d68de007e9396089bc3d0d38b4c9bafd0322202a486408772b7bdfd2d3669be56dcbbeea701f02da692864eb89c98c
@@ -1,20 +1,20 @@
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.ember-data',
6
6
  before: 'ember-auth-load',
7
7
  initialize: function (container, app) {
8
- return app.register('authModule:emberData', get$(get$(Em, 'Auth'), 'EmberDataAuthModule'));
8
+ app.register('authModule:emberData', get$(get$(Em, 'Auth'), 'EmberDataAuthModule'), { singleton: true });
9
+ app.inject('authModule:emberData', 'auth', 'auth:main');
10
+ return app.inject('authModule:emberData', 'store', 'store:main');
9
11
  }
10
12
  });
11
- });
12
- Em.onLoad('Ember.Application', function (application) {
13
13
  return application.initializer({
14
- name: 'ember-auth.module.ember-data.injection',
15
- after: 'ember-auth.module.ember-data',
14
+ name: 'ember-auth.module.ember-data-load',
15
+ after: 'ember-auth-load',
16
16
  initialize: function (container, app) {
17
- return app.inject('authModule:emberData', 'store', 'store:main');
17
+ return container.lookup('authModule:emberData');
18
18
  }
19
19
  });
20
20
  });// Generated by EmberScript 0.0.7
@@ -25,9 +25,9 @@ set$(get$(Em, 'Auth'), 'EmberDataAuthModule', Ember.Object.extend({
25
25
  null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'emberData'));
26
26
  this.patch();
27
27
  get$(this, 'auth').reopen({ user: get$(Em, 'computed').alias('module.emberData.user') });
28
- get$(this, 'auth').addHandler('signInSuccess', get$(this, 'findUser'));
29
- get$(this, 'auth').addHandler('signInError', get$(this, 'clearUser'));
30
- return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clearUser'));
28
+ get$(this, 'auth').addHandler('signInSuccess', get$(this, 'findUser').bind(this));
29
+ get$(this, 'auth').addHandler('signInError', get$(this, 'clearUser').bind(this));
30
+ return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clearUser').bind(this));
31
31
  },
32
32
  user: null,
33
33
  findUser: function () {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ember-auth-module-ember_data-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