xmppify 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f56cec8e851a8b6caf67db52a459bfad5f5f442b
4
- data.tar.gz: 74d172a4059de199e11e6862284a6071c3a1d612
3
+ metadata.gz: 78335a6fdf9cd2e350b3616431e30d6590532424
4
+ data.tar.gz: c094c45779ef8fc7d9fb95d9457d9206272ce217
5
5
  SHA512:
6
- metadata.gz: 406536d7ce71b6abe236f74adc8ea6f7454e454ba5db590c5fc1616485f5cb4eef2b523de01a5366610c9e2718a44a43c3fdf890718ec76fadb7e373d3d07779
7
- data.tar.gz: 395b0e6b434da064f810ac0c4ac43ee5f2602d6c23abdce2a7ed226b88b4a3b730dcc99ec00178755d4866c055adbf954193f105986c65c21dcf80e0f6e5f8d6
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
- add_column :users,:doorkeeper_uid,:integer
5
- add_column :users,:doorkeeper_access_token,:string
6
- add_column :users,:encrypted_data,:string
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
@@ -1,3 +1,3 @@
1
1
  module Xmppify
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
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.12
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