frankie 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/frankie.gemspec +2 -2
- data/lib/frankie.rb +4 -2
- metadata +1 -1
data/CHANGELOG
CHANGED
data/frankie.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Frankie-0.2.
|
2
|
+
# Gem::Specification for Frankie-0.2.5
|
3
3
|
# Originally generated by Echoe
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = %q{frankie}
|
7
|
-
s.version = "0.2.
|
7
|
+
s.version = "0.2.5"
|
8
8
|
|
9
9
|
s.specification_version = 2 if s.respond_to? :specification_version=
|
10
10
|
|
data/lib/frankie.rb
CHANGED
@@ -178,8 +178,10 @@ module Frankie
|
|
178
178
|
end
|
179
179
|
|
180
180
|
def fb_url_for(url)
|
181
|
-
|
182
|
-
|
181
|
+
url = "" if url == "/"
|
182
|
+
url = URI.escape(url)
|
183
|
+
return url if !request_is_for_a_facebook_canvas?
|
184
|
+
"http://apps.facebook.com/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}/#{url}"
|
183
185
|
end
|
184
186
|
|
185
187
|
end
|