xmppify 0.0.20 → 0.0.21

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: b3f06a57119f054aff38b2b3a98bf028dcbd9582
4
- data.tar.gz: 9e7157e912de4c04780073e0ee99b5d94d8298a7
3
+ metadata.gz: 67a1821a49fc3b39cd20abce201a82535f6c5eb4
4
+ data.tar.gz: 0edf1d11fd0ea102a57fb949c7e1c71801efb634
5
5
  SHA512:
6
- metadata.gz: ad118ed881e6b0955dfe3f17484200b0499ebc62db0fa38292e7fe2d9eca13e72c6e32400b0bf1eaa3620f1fa37da9a8d865c1f84f14cfa65e1902a21c788d8f
7
- data.tar.gz: d80a28ee4e4adbf35f7b5ce34a42d30b930816970614d377d536028d83474e13dbac7618953844b63f5fb7216fe36312f33c44389c5fd91eedc61a73df2704aa
6
+ metadata.gz: 8f37a16a75be6f6beb0debcc8c43994f363dfe9389773a8433b0e8cf69b4d3a84083725d4f57d8b9474381bffddcac8ccea401d141dff255ad03e2e93a9c08cd
7
+ data.tar.gz: 6e328ef278eae8f313e0b881dbd5b0c56075b9fb84f1c66aaa7c508dd45bf8ed1eedaecc6a57d302fce376c600246b414726be413484e44f8300970e4299ddfb
@@ -6,7 +6,7 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
6
6
  @user.update_doorkeeper_credentials(oauth_data)
7
7
  @user.save
8
8
  sign_in_as @user
9
- p @user
9
+ ap @user
10
10
  flash[:attacher] = attacher(@user)
11
11
  if @user.identities.find_by(provider:"github").nil?
12
12
  @user.identities.create(provider:"github",auth_token:oauth_data.info.github_auth_token,email:oauth_data.info.github_email)
@@ -18,7 +18,7 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
18
18
  private
19
19
 
20
20
  def sign_in_as(user)
21
- user.connect
21
+ p user.connect
22
22
  end
23
23
 
24
24
  def attacher(user)
data/app/models/user.rb CHANGED
@@ -36,5 +36,6 @@ class User < ActiveRecord::Base
36
36
 
37
37
  def connect
38
38
  @jid, @sid, @rid = RubyBOSH.initialize_session("#{self.encrypted_data}@idlecampus.com", "#{ENV['DOORKEEPER_APP_SECRET']}", "http://idlecampus.com:5280/http-bind")
39
+ @jid, @sid, @rid
39
40
  end
40
41
  end
@@ -1,3 +1,3 @@
1
1
  module Xmppify
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
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.20
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charlie