horse_power 0.1.2 → 0.1.5

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: 0318e08773e2a4da887ee861e658cac4b0c0939a
4
- data.tar.gz: 6ef59dd2a72a957bca385175ffa63020d3b6c861
3
+ metadata.gz: 2cfb226c21aa4fa5aae98ea61d9f9d3e55291a13
4
+ data.tar.gz: 6cc3d9d1004334a14d245c307ee711b91efe9ba5
5
5
  SHA512:
6
- metadata.gz: 352a461ae393325ec4164c812b9e9292517b110fd9bb61d1ebc316417153fef5675f3cc0819a050a32e97e062ed1ef3248a70f6f4810bfe5f5710d9505e78f17
7
- data.tar.gz: 5e399bba9f7b9a16ef58907332a170b2fa0a6f8362da67a18b753fe18a85a056d23a02d40f15a30447e5aa5d24b6d42d4a67ac9dd91f7b1683df19ea5d7917f9
6
+ metadata.gz: e039ace470d966cd7e9e1adfe2f09c7e5e44d1cb954a4da94e697ab2659b6fc619532aa19876096cb7f625ec0b5072bcf599410ae239af0f2236b218ce669140
7
+ data.tar.gz: 3e808ee7c4506cc3ef9e136d2c240a1a48986e8fe4bb24248e6b19c97d6aa4b89e42f6f94feb8601a2ccde0589aa58f0dff2d11b77296e606ee37c127c6e7605
@@ -63,7 +63,7 @@ class Api::V1::UsersController < Api::V1::ApplicationController
63
63
 
64
64
  # POST /api/1/users/facebook_login
65
65
  def facebook_login
66
- objHash = ::User.facebook_login(params)
66
+ objHash = ::User.facebook_login(params,request)
67
67
  if objHash.nil?
68
68
  objHash = {error: "Could not retrieve the facebook user_id from your token"}
69
69
  render :json => objHash, status: :unauthorized
@@ -51,7 +51,7 @@ class User < ActiveRecord::Base
51
51
  end
52
52
  end
53
53
 
54
- def self.facebook_login(params)
54
+ def self.facebook_login(params,request)
55
55
  short_token = params[:token]
56
56
  fb_api = Facebook.new
57
57
  long_token = fb_api.get_long_token(short_token)
@@ -1,3 +1,3 @@
1
1
  module HorsePower
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: horse_power
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cleophus Robinson IV