ember-auth-module-epf-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: b61a11c03c409ecdfa56317687da2a7ae0b1842d
4
+ data.tar.gz: 0c6d4702f1bfdb6baaa99b5a1d270963cc718f15
5
+ SHA512:
6
+ metadata.gz: f048f77ea184e8f18ad908275cc811fbea04d891b94ea1b4a509ba85dc84d2032ff32ab8054f11931f914d2c03cd403699de63f74f66ddaf9028cc6b21b8dee2
7
+ data.tar.gz: 5be416b2d3f6f2ef3e8fef156ec2c0fa0bd5c9a63626b55c3364f26412001b258c583ab6019e36eaeee70d47a03b0558b3756b3e93fb68674bc6b1aa45d78f0d
@@ -0,0 +1,55 @@
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.epf',
6
+ before: 'ember-auth-load',
7
+ initialize: function (container, app) {
8
+ return app.register('authModule:epf', get$(get$(Em, 'Auth'), 'EpfAuthModule'));
9
+ }
10
+ });
11
+ });
12
+ Em.onLoad('Ember.Application', function (application) {
13
+ return application.initializer({
14
+ name: 'ember-auth.module.epf.injection',
15
+ after: 'ember-auth.module.epf',
16
+ initialize: function (container, app) {
17
+ return app.inject('authModule:epf', 'session', 'session:main');
18
+ }
19
+ });
20
+ });// Generated by EmberScript 0.0.7
21
+ var get$ = Ember.get;
22
+ var set$ = Ember.set;
23
+ set$(get$(Em, 'Auth'), 'EpfAuthModule', Ember.Object.extend({
24
+ init: function () {
25
+ null != get$(this, 'config') || set$(this, 'config', get$(get$(this, 'auth'), 'epf'));
26
+ this.patch();
27
+ get$(this, 'auth').reopen({ user: get$(Em, 'computed').alias('module.epf.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'));
31
+ },
32
+ user: null,
33
+ findUser: function () {
34
+ var this$;
35
+ if (!(null != get$(get$(this, 'auth'), 'userId') && get$(get$(this, 'config'), 'userModel')))
36
+ return;
37
+ return get$(this, 'session').load(get$(get$(this, 'config'), 'userModel'), get$(get$(this, 'auth'), 'userId')).then((this$ = this, function (user) {
38
+ return set$(this$, 'user', user);
39
+ }));
40
+ },
41
+ clearUser: function () {
42
+ return set$(this, 'user', null);
43
+ },
44
+ patch: function () {
45
+ var self;
46
+ self = this;
47
+ return get$(Ep, 'RestAdapter').reopen({
48
+ ajax: function (url, type, settings) {
49
+ return this._super(url, type, get$(get$(self, 'auth'), '_strategy').serialize(settings || {}));
50
+ }
51
+ });
52
+ }
53
+ }));// Generated by EmberScript 0.0.7
54
+ var get$ = Ember.get;
55
+ get$(Em, 'Auth').reopen({ epf: { userModel: false } });
@@ -0,0 +1,15 @@
1
+ module Ember
2
+ module Auth
3
+ module Module
4
+ module Epf
5
+ module Source
6
+ def self.bundled_path
7
+ path = File.join '..', '..', '..', '..', '..', '..', \
8
+ 'dist', 'ember-auth-module-epf.js'
9
+ File.expand_path path, __FILE__
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,88 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ember-auth-module-epf-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: epf-source
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '0.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '0.1'
41
+ - !ruby/object:Gem::Dependency
42
+ name: ember-auth-source
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '9.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '9.0'
55
+ description: Ember-auth epf integration module source code wrapper for ruby libs.
56
+ email:
57
+ - heartsentwined.me@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - dist/ember-auth-module-epf.js
63
+ - lib/ember/auth/module/epf/source.rb
64
+ homepage: https://github.com/heartsentwined/ember-auth-module-epf
65
+ licenses:
66
+ - MIT
67
+ metadata: {}
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - '>='
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ requirements: []
83
+ rubyforge_project:
84
+ rubygems_version: 2.0.3
85
+ signing_key:
86
+ specification_version: 4
87
+ summary: Ember-auth epf integration module source code wrapper
88
+ test_files: []