ember-auth-module-auth_redirectable-source 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 597159d322ab7f22b03ea01c88bba3b2f9222e0b
4
+ data.tar.gz: d9b54eb38a3242efc218e93cafdc90a8b26fbfb5
5
+ SHA512:
6
+ metadata.gz: ed1d5746981aea839e1701fc980cdceec53d8cd1415d366809de621c4183c1040dbd78c0daa4a351ac773d3076c812de629061486cee690ba16d06d24c8857df
7
+ data.tar.gz: 01ec13b8c1b3675b9c43b8f9dd0aeb4da09bfeaa82752aed4c59365efddca54f9e85bee9cb5193c5f6ff867c62fc703a5b97d43f525e5f4b03db0436d53d62cf
@@ -0,0 +1,53 @@
1
+ // Generated by EmberScript 0.0.7
2
+ var get$ = Ember.get;
3
+ Em.onLoad('Ember.Application', function (application) {
4
+ return application.initializer({
5
+ name: 'ember-auth.module.auth-redirectable',
6
+ before: 'ember-auth-load',
7
+ initialize: function (container, app) {
8
+ return app.register('authModule:authRedirectable', get$(get$(Em, 'Auth'), 'AuthRedirectableAuthModule'));
9
+ }
10
+ });
11
+ });// Generated by EmberScript 0.0.7
12
+ var get$ = Ember.get;
13
+ var set$ = Ember.set;
14
+ set$(get$(Em, 'Auth'), 'AuthRedirectableAuthModule', Ember.Object.extend({
15
+ init: function () {
16
+ null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'authRedirectable'));
17
+ set$(get$(get$(this, 'auth'), '_handlers'), 'authAccess', []);
18
+ return this.patch();
19
+ },
20
+ patch: function () {
21
+ var self;
22
+ self = this;
23
+ return get$(Em, 'Route').reopen({
24
+ beforeModel: function (queryParams, transition) {
25
+ var handler, promises, ret, this$, this$1;
26
+ ret = this._super.apply(this, arguments);
27
+ if (get$(get$(self, 'auth'), 'signedIn') || !get$(this, 'authRedirectable'))
28
+ return ret;
29
+ if (!(null != transition))
30
+ transition = queryParams;
31
+ promises = [];
32
+ for (var i$ = 0, length$ = get$(get$(get$(self, 'auth'), '_handlers'), 'authAccess').length; i$ < length$; ++i$) {
33
+ handler = get$(get$(get$(self, 'auth'), '_handlers'), 'authAccess')[i$];
34
+ promises.push(handler(transition));
35
+ }
36
+ if (typeof get$(ret, 'then') === 'function') {
37
+ return ret.then((this$ = this, function () {
38
+ var this$1;
39
+ return get$(Em, 'RSVP').all(promises).then((this$1 = this$, function () {
40
+ return this$1.transitionTo(get$(get$(self, 'config'), 'route'));
41
+ }));
42
+ }));
43
+ } else {
44
+ return get$(Em, 'RSVP').all(promises).then((this$1 = this, function () {
45
+ return this$1.transitionTo(get$(get$(self, 'config'), 'route'));
46
+ }));
47
+ }
48
+ }
49
+ });
50
+ }
51
+ }));// Generated by EmberScript 0.0.7
52
+ var get$ = Ember.get;
53
+ get$(Em, 'Auth').reopen({ authRedirectable: { route: null } });
@@ -0,0 +1,15 @@
1
+ module Ember
2
+ module Auth
3
+ module Module
4
+ module AuthRedirectable
5
+ module Source
6
+ def self.bundled_path
7
+ path = File.join '..', '..', '..', '..', '..', '..', \
8
+ 'dist', 'ember-auth-module-auth-redirectable.js'
9
+ File.expand_path path, __FILE__
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ember-auth-module-auth_redirectable-source
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - heartsentwined
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-10-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ember-source
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ember-auth-source
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '9.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '9.0'
41
+ description: Ember-auth auth redirectable module source code wrapper for ruby libs.
42
+ email:
43
+ - heartsentwined.me@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - dist/ember-auth-module-auth-redirectable.js
49
+ - lib/ember/auth/module/auth_redirectable/source.rb
50
+ homepage: https://github.com/heartsentwined/ember-auth-module-auth-redirectable
51
+ licenses:
52
+ - MIT
53
+ metadata: {}
54
+ post_install_message:
55
+ rdoc_options: []
56
+ require_paths:
57
+ - lib
58
+ required_ruby_version: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ requirements: []
69
+ rubyforge_project:
70
+ rubygems_version: 2.0.3
71
+ signing_key:
72
+ specification_version: 4
73
+ summary: Ember-auth auth redirectable module source code wrapper
74
+ test_files: []