xmppify 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/application_controller.rb +0 -1
- data/app/controllers/omniauth_callbacks_controller.rb +12 -1
- data/app/views/layouts/application.html.erb +1 -1
- data/app/views/xmppify/layouts/application.html.erb +1 -1
- data/bin/rails +0 -0
- data/lib/xmppify/version.rb +1 -1
- data/xmppify.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 382b1ac4107b3e0297420a62884308577ded0772
|
4
|
+
data.tar.gz: 1995a4e376a25fdc0ed5b8e83c4eaff4ba67799f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aed61de93be7a8ee9e76c3954400b051ae8bb903e347caf3fc1fe42e95b73c18da0c78f0f0b4b092b90d2e20e7fbc5d2a7a5b41d10c3f3fb3f992eb81e065638
|
7
|
+
data.tar.gz: 8577e9a2d2e5e8f7df9e5097ad038fae1888ad93c0b356b05093e83c7b8fe5abd4a0bb3029cbc579d3340715f1616cadcaf6f10a43dd8247e57c39ede58fc66b
|
@@ -5,11 +5,22 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
|
5
5
|
@user = User.find_or_create_for_doorkeeper_oauth(oauth_data)
|
6
6
|
@user.update_doorkeeper_credentials(oauth_data)
|
7
7
|
@user.save
|
8
|
-
@user
|
8
|
+
sign_in_as @user
|
9
|
+
flash[:attacher] = attacher(self.resource)
|
9
10
|
if @user.identities.find_by(provider:"github").nil?
|
10
11
|
@user.identities.create(provider:"github",auth_token:oauth_data.info.github_auth_token,email:oauth_data.info.github_email)
|
11
12
|
end
|
12
13
|
sign_in @user
|
13
14
|
redirect_to dashboard_path
|
14
15
|
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def attacher(user)
|
20
|
+
{
|
21
|
+
jid: user.jid,
|
22
|
+
id: user.sid,
|
23
|
+
rid: user.rid
|
24
|
+
}
|
25
|
+
end
|
15
26
|
end
|
data/bin/rails
CHANGED
File without changes
|
data/lib/xmppify/version.rb
CHANGED
data/xmppify.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmppify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: angularjs-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: 'We have extracted out the logic from IdleCampus and built xmppify because
|
42
56
|
I want to help anyone built a real time communication platform or a product as soon
|
43
57
|
as possible. I am also working on creating a service so that mobile developers could
|