plataforma_social 0.0.27 → 0.0.28

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,7 +87,13 @@ module PlataformaSocial
87
87
  end
88
88
 
89
89
  def load_oauth
90
- uri = URI.parse(PlataformaSocial.facebook_callback_url.to_s)
90
+ if request.present?
91
+ callback_url = "#{request.protocol}#{request.host_with_port}#{request.fullpath}"
92
+ else
93
+ callback_url = PlataformaSocial.facebook_callback_url.to_s
94
+ end
95
+
96
+ uri = URI.parse(c)
91
97
 
92
98
  callback_url = if uri && uri.scheme.present?
93
99
  uri.query = [uri.query, "gm_referral_code=#{params[:gm_referral_code]}", "utm_source=#{params[:utm_source]}", "campaign=#{params[:utm_campaign]}", "medium=#{params[:utm_medium]}", "source=#{params[:utm_source]}"].compact.join('&')
@@ -1,3 +1,3 @@
1
1
  module PlataformaSocial
2
- VERSION = "0.0.27"
2
+ VERSION = "0.0.28"
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.27
4
+ version: 0.0.28
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-10-17 00:00:00.000000000 Z
12
+ date: 2013-12-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -307,7 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
307
307
  version: '0'
308
308
  requirements: []
309
309
  rubyforge_project:
310
- rubygems_version: 1.8.25
310
+ rubygems_version: 1.8.23
311
311
  signing_key:
312
312
  specification_version: 3
313
313
  summary: Plataforma Social's integration gem