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

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: 655ab925ec97249a8f19f3f3b75b66b16616edce
4
- data.tar.gz: af4bfcf4223e615260458827485c620ff0df3106
3
+ metadata.gz: 5c9463c11393fa692c7c88a825bae9399e8eb151
4
+ data.tar.gz: df46ea5d2ba338e3ceeb38ea0316826201eef99c
5
5
  SHA512:
6
- metadata.gz: 21e5f2ee27cce64e08c2abffe91cec7e507e6e99713a343a1eba2830a162a2183ae951f816ae03bca0fca265de86c547c780f243071595dc016ec18d12a09e56
7
- data.tar.gz: ce590f2239983cafb41b21c6119d0e20bb8a3d79dcb18d8e483be9e81caa866bb478b7d956d0e40d2f0ed1564ceebc872cd9fd0b9901ceae7fa53e29d83b93ef
6
+ metadata.gz: 4cde740e45af45dac82ca503db0bacc28d0bd26482852bb123eea350e223b1aad648e03dd4703696c8d95d663b73d08ad860da16f9f16bb917d6cb426fa3ba1b
7
+ data.tar.gz: bfdfe30107a287c2cb2fe4b0489ae9e540a5679674e7af6df9b37148e902b38c0ee5b70d77047401925ea38125a96c518fcf3fc918f35743c002c1bc2ab6e279
@@ -22,7 +22,8 @@ var set$ = Ember.set;
22
22
  set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({
23
23
  init: function () {
24
24
  var this$;
25
- null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'timeoutable'));
25
+ get$(this, 'auth')._config('timeoutable', get$(this, '_defaultConfig'));
26
+ null != get$(this, 'config') || set$(this, 'config', get$(this, 'auth')._config('timeoutable'));
26
27
  null != get$(get$(this, 'config'), 'callback') || set$(get$(this, 'config'), 'callback', (this$ = this, function () {
27
28
  return get$(this$, 'auth').signOut();
28
29
  }));
@@ -30,6 +31,10 @@ set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({
30
31
  get$(this, 'auth').addHandler('signInError', get$(this, 'clear').bind(this));
31
32
  return get$(this, 'auth').addHandler('signOutSuccess', get$(this, 'clear').bind(this));
32
33
  },
34
+ _defaultConfig: {
35
+ period: 20,
36
+ callback: null
37
+ },
33
38
  _startTime: null,
34
39
  timeout: function () {
35
40
  var period;
@@ -55,11 +60,4 @@ set$(get$(Em, 'Auth'), 'TimeoutableAuthModule', Ember.Object.extend({
55
60
  clear: function () {
56
61
  return set$(this, '_startTime', null);
57
62
  }
58
- }));// Generated by EmberScript 0.0.7
59
- var get$ = Ember.get;
60
- get$(Em, 'Auth').reopen({
61
- timeoutable: {
62
- period: 20,
63
- callback: null
64
- }
65
- });
63
+ }));
metadata CHANGED
@@ -1,14 +1,14 @@
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.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