xmppify 0.0.12 → 0.0.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78335a6fdf9cd2e350b3616431e30d6590532424
|
4
|
+
data.tar.gz: c094c45779ef8fc7d9fb95d9457d9206272ce217
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80c5deeb5f8b52047032b09460d5341f637f604c014d92c8879d046af14b35a5d2fedce6357f8034f1eaf31362f709cb05f162bfeed8fc6dd77497fb3dbe53f7
|
7
|
+
data.tar.gz: 047b4c3d15495640c92eadb7543984f32c1c01c700ddc578f90a77da754bf8c18279a674b62dd0bde18cd9ff049b7e2a44a3d28755fb1c63edecdd952616a44f
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#
|
2
|
+
class ApplicationController < ActionController::Base
|
3
|
+
protect_from_forgery
|
4
|
+
|
5
|
+
def doorkeeper_oauth_client
|
6
|
+
@client ||= OAuth2::Client.new(DOORKEEPER_APP_ID, DOORKEEPER_APP_SECRET, :site => DOORKEEPER_APP_URL)
|
7
|
+
end
|
8
|
+
|
9
|
+
def doorkeeper_access_token
|
10
|
+
@token ||= OAuth2::AccessToken.new(doorkeeper_oauth_client, current_user.doorkeeper_access_token) if current_user
|
11
|
+
end
|
12
|
+
|
13
|
+
def new_session_path *args
|
14
|
+
new_user_session_path *args
|
15
|
+
end
|
16
|
+
end
|
@@ -1,9 +1,10 @@
|
|
1
|
+
# This migration comes from xmppify_engine (originally 20140329065635)
|
1
2
|
class CreateUsers < ActiveRecord::Migration
|
2
3
|
def change
|
3
4
|
create_table :users do |t|
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
t.integer :doorkeeper_uid
|
6
|
+
t.string :doorkeeper_access_token
|
7
|
+
t.string :encrypted_data
|
7
8
|
t.timestamps
|
8
9
|
end
|
9
10
|
end
|
data/lib/xmppify/version.rb
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.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie
|
@@ -158,6 +158,7 @@ files:
|
|
158
158
|
- app/assets/javascripts/xmpp/strophejs-plugins/vcard/strophe.vcard.coffee
|
159
159
|
- app/assets/javascripts/xmpp/strophejs-plugins/vcard/strophe.vcard.js
|
160
160
|
- app/assets/stylesheets/xmpp/index.css
|
161
|
+
- app/controllers/application_controller.rb
|
161
162
|
- app/controllers/omniauth_callbacks_controller.rb
|
162
163
|
- app/controllers/ruby_bosh.rb
|
163
164
|
- app/models/identity.rb
|