plataforma_social 0.0.14 → 0.0.15
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.
|
@@ -41,8 +41,12 @@ module PlataformaSocial
|
|
|
41
41
|
|
|
42
42
|
def plataforma_social_user_data
|
|
43
43
|
if params[:signed_request]
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
response = Request.post("#{PlataformaSocial.domains('login')}/register", { :signed_request => params[:signed_request], :social_ref => params[:social_ref] })
|
|
45
|
+
|
|
46
|
+
data = {}
|
|
47
|
+
data[:reference] = data['id'] if response.present? && response['id']
|
|
48
|
+
|
|
49
|
+
data
|
|
46
50
|
end
|
|
47
51
|
end
|
|
48
52
|
|
|
@@ -62,7 +66,7 @@ module PlataformaSocial
|
|
|
62
66
|
end
|
|
63
67
|
|
|
64
68
|
def load_graph
|
|
65
|
-
@graph = Koala::Facebook::API.new parse_facebook_signed_request['oauth_token'] if parse_facebook_signed_request.present?
|
|
69
|
+
@graph = Koala::Facebook::API.new parse_facebook_signed_request['oauth_token'] if parse_facebook_signed_request.present? && parse_facebook_signed_request['oauth_token']
|
|
66
70
|
end
|
|
67
71
|
end
|
|
68
72
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plataforma_social
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.15
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-07-
|
|
12
|
+
date: 2013-07-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: capistrano
|