frankie 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/CHANGELOG +2 -0
  2. data/frankie.gemspec +3 -3
  3. data/lib/frankie.rb +7 -1
  4. metadata +2 -2
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.2.4. Add fb_url_for helper method to create link URL's that have proper Facebook application reference included
2
+
1
3
  v0.2.3. Correct README and fix Sinatra version dependency in gem
2
4
 
3
5
  v0.2.2. Updated to deal with session change in Sinatra, plus misc bug fixes with Facebooker integration
@@ -1,16 +1,16 @@
1
1
 
2
- # Gem::Specification for Frankie-0.2.3
2
+ # Gem::Specification for Frankie-0.2.4
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.3"
7
+ s.version = "0.2.4"
8
8
 
9
9
  s.specification_version = 2 if s.respond_to? :specification_version=
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Ron Evans"]
13
- s.date = %q{2008-04-21}
13
+ s.date = %q{2008-04-22}
14
14
  s.default_executable = %q{tunnel}
15
15
  s.description = %q{Easy creation of Facebook applications in Ruby using plugin for Sinatra web framework that integrates with Facebooker gem.}
16
16
  s.email = %q{}
@@ -12,7 +12,8 @@ module Frankie
12
12
 
13
13
  module Loader
14
14
 
15
- require "yaml"
15
+ require 'yaml'
16
+ require 'uri'
16
17
 
17
18
  def load_facebook_config(file, env=:development)
18
19
  if File.exist?(file)
@@ -176,6 +177,11 @@ module Frankie
176
177
  params['format']="fbml" if request_is_for_a_facebook_canvas?
177
178
  end
178
179
 
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)}"
183
+ end
184
+
179
185
  end
180
186
 
181
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-04-21 00:00:00 -07:00
12
+ date: 2008-04-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency