facebooker 1.0.73 → 1.0.74
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module ::ActionController
|
|
31
31
|
one_or_true @request.parameters["fb_sig_in_new_facebook"]
|
32
32
|
end
|
33
33
|
|
34
|
-
def link_to_canvas?(
|
34
|
+
def link_to_canvas?(options)
|
35
35
|
option_override = options[:canvas]
|
36
36
|
return false if option_override == false # important to check for false. nil should use default behavior
|
37
37
|
option_override || (can_safely_access_request_parameters? && (one_or_true(@request.parameters["fb_sig_in_canvas"]) || one_or_true(@request.parameters[:fb_sig_in_canvas]) || one_or_true(@request.parameters["fb_sig_is_ajax"]) ))
|
@@ -44,7 +44,7 @@ module ::ActionController
|
|
44
44
|
|
45
45
|
def rewrite_url_with_facebooker(*args)
|
46
46
|
options = args.first.is_a?(Hash) ? args.first : args.last
|
47
|
-
is_link_to_canvas = link_to_canvas?(
|
47
|
+
is_link_to_canvas = link_to_canvas?(options)
|
48
48
|
if is_link_to_canvas && !options.has_key?(:host)
|
49
49
|
options[:host] = Facebooker.canvas_server_base
|
50
50
|
end
|
data/lib/facebooker/version.rb
CHANGED
data/lib/tasks/facebooker.rake
CHANGED
@@ -6,8 +6,8 @@ namespace :facebooker do
|
|
6
6
|
task :setup => :environment do
|
7
7
|
facebook_config = File.join(RAILS_ROOT,"config","facebooker.yml")
|
8
8
|
unless File.exist?(facebook_config)
|
9
|
-
|
10
|
-
facebook_config_tpl = File.join(
|
9
|
+
facebooker_root = File.expand_path(File.join(File.dirname(__FILE__),"..",".."))
|
10
|
+
facebook_config_tpl = File.join(facebooker_root,"generators","facebook","templates","config","facebooker.yml")
|
11
11
|
FileUtils.cp facebook_config_tpl, facebook_config
|
12
12
|
puts "Ensure 'GatewayPorts yes' is enabled in the remote development server's sshd config when using any of the facebooker:tunnel:*' rake tasks"
|
13
13
|
puts "Configuration created in #{RAILS_ROOT}/config/facebooker.yml"
|
data/test/test_helper.rb
CHANGED
@@ -11,7 +11,7 @@ begin
|
|
11
11
|
require 'multi_rails_init'
|
12
12
|
rescue LoadError
|
13
13
|
# multi rails not installed, test against newest supported version of Rails
|
14
|
-
gem 'rails', '2.3.8'
|
14
|
+
gem 'rails', (ENV['RAILS_VERSION'] || '2.3.8')
|
15
15
|
end
|
16
16
|
require 'active_support'
|
17
17
|
require 'flexmock/test_unit'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facebooker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.74
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chad Fowler
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-28 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|