Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pin it to newer version of Facebooker, updated Sinatra hook to new 0.…

…9.x style, fixed a broken test... frankie could use some tests
  • Loading branch information...
commit c9aeaffa0bc5d28c43c7fd1f3a3d54e32e11fc6f 1 parent 95bf66b
authored February 17, 2009
9  lib/frankie.rb
@@ -28,7 +28,8 @@ def load_facebook_config(file, env=:development)
28 28
   
29 29
   module EventContext
30 30
 
31  
-    require "facebooker"
  31
+    # pin it to newer version of Facebooker
  32
+    gem 'mmangino-facebooker', '>=1.0.2'
32 33
     
33 34
     def facebook_session
34 35
       @facebook_session
@@ -188,6 +189,6 @@ def fb_url_for(url)
188 189
   
189 190
 end
190 191
   
191  
-# extend sinatra with frankie methods
192  
-Sinatra::EventContext.send(:include, Frankie::EventContext)
193  
-include Frankie::Loader
  192
+# extend sinatra with frankie methods, changed to work with Sinatra 0.9.x
  193
+Sinatra::Default.send(:include, Frankie::EventContext)
  194
+include Frankie::Loader
3  test/frankie_test.rb
... ...
@@ -1,6 +1,7 @@
1 1
 require File.dirname(__FILE__) + '/helper'
2 2
 
3 3
 context "frankie" do
4  
-  it "should be a placeholder for a real test"
  4
+  it "should be a placeholder for a real test" do
  5
+  end
5 6
 end
6 7
 

0 notes on commit c9aeaff

Please sign in to comment.
Something went wrong with that request. Please try again.