plataforma_social 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,7 +47,14 @@ module PlataformaSocial
47
47
  @user_data = { :facebook => facebook_data, :plataforma_social => plataforma_social_data }
48
48
  end
49
49
 
50
- def plataforma_social_user_data settings = {}
50
+ def plataforma_social_user_data options = {}
51
+ settings = {
52
+ referral_code: params[:gm_referral_code],
53
+ source: params[:utm_source],
54
+ referrer: request.referer,
55
+ signed_request: params[:signed_request]
56
+ }.merge options
57
+
51
58
  if settings[:signed_request]
52
59
  response = Request.post("#{PlataformaSocial.domains('login')}/register", settings)
53
60
 
@@ -1,3 +1,3 @@
1
1
  module PlataformaSocial
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  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.22
4
+ version: 0.0.23
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-08-23 00:00:00.000000000 Z
12
+ date: 2013-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano