frankie 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGELOG +2 -0
  2. data/frankie.gemspec +2 -2
  3. data/lib/frankie.rb +4 -2
  4. metadata +1 -1
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.2.5. Bugfix for fb_url_for helper method
2
+
1
3
  v0.2.4. Add fb_url_for helper method to create link URL's that have proper Facebook application reference included
2
4
 
3
5
  v0.2.3. Correct README and fix Sinatra version dependency in gem
@@ -1,10 +1,10 @@
1
1
 
2
- # Gem::Specification for Frankie-0.2.4
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.4"
7
+ s.version = "0.2.5"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
@@ -178,8 +178,10 @@ module Frankie
178
178
  end
179
179
 
180
180
  def fb_url_for(url)
181
- return URI.escape(url) if request_is_for_a_facebook_canvas?
182
- "http://apps.facebook.com/#{ENV['FACEBOOKER_RELATIVE_URL_ROOT']}/#{URI.escape(url)}"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frankie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans