<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README</filename>
    </added>
    <added>
      <filename>db/schema.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -39,6 +39,11 @@ class ApplicationController &lt; ActionController::Base
   end
   helper_method :base_url
   
+  def callback_base
+    &quot;http://#{FACEBOOK['server_host']}/&quot;
+  end
+  helper_method :callback_base
+  
   def callback_url
     &quot;http://#{FACEBOOK['server_host']}#{FACEBOOK['callback_path']}&quot;
   end</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,4 @@ class HomeController &lt; ApplicationController
     
   end
   
-  def privacy
-  end
-  
 end</diff>
      <filename>app/controllers/home_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,6 @@
 # Methods added to this helper will be available to all templates in the application.
 module ApplicationHelper
   
-  ## TODO for each unique app -- modify below functions:
-  
-  def invite_question
-    &quot;Do you have what it takes?&quot;
-  end
-  
-  ### /TODO
-  
   def invite_fbml
     &quot;&lt;fb:req-choice url=\&quot;#{base_url}\&quot; label=\&quot;Add the #{app_name} app&gt;\&quot;&quot;
   end</diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,4 @@
 &lt;h1&gt;Home#index&lt;/h1&gt;
 &lt;p&gt;Find me in app/views/home/index.html.erb&lt;/p&gt;
+
+&lt;%= FACEBOOK.inspect %&gt;</diff>
      <filename>app/views/home/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
 &lt;fb:fbml&gt;
-	&lt;fb:request-form action=&quot;&lt;%= url('?invites_sent=true') %&gt;&quot; method=&quot;POST&quot; invite=&quot;true&quot; type=&quot;&lt;%= app_name %&gt;&quot; content=&quot;&lt;%= invite_question %&gt; &lt;%= encoded_invite_fbml %&gt;&quot;&gt;
+	&lt;fb:request-form action=&quot;&lt;%= url('?invites_sent=true') %&gt;&quot; method=&quot;POST&quot; invite=&quot;true&quot; type=&quot;&lt;%= app_name %&gt;&quot; content=&quot;You have been invited to check out &lt;%= app_name %&gt;. &lt;%= encoded_invite_fbml %&gt;&quot;&gt;
 	&lt;fb:multi-friend-selector showborder=&quot;false&quot; actiontext=&quot;Invite your friends to checkout the &lt;%= app_name %&gt; app.&quot;&gt; &lt;/fb:request-form&gt;
 &lt;/fb:fbml&gt;
\ No newline at end of file</diff>
      <filename>app/views/invite/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 %&gt;
 &lt;/style&gt;
 
-&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;&lt;%= callback_url %&gt;stylesheets/style.css?v=1.0&quot; /&gt;
+&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;screen&quot; href=&quot;&lt;%= callback_base %&gt;stylesheets/style.css?v=1.0&quot; /&gt;
 		
 &lt;div id=&quot;content&quot;&gt;
 
@@ -25,7 +25,7 @@
 &lt;script&gt;
 &lt;!--
 // Important -- this must be set to the RAILS app URL (i.e. joyent.foo.com *not* apps.facebook.com/maven/)
-var callback_url = '&lt;%= RAILS_URL %&gt;';
+var callback_url = '&lt;%= callback_url %&gt;';
 //--&gt;
 &lt;/script&gt;
 
@@ -35,7 +35,7 @@ var callback_url = '&lt;%= RAILS_URL %&gt;';
 #= File.read(RAILS_ROOT + '/public/javascripts/application.js')
 %&gt;
 
-&lt;script src=&quot;&lt;%= callback_url %&gt;javascripts/application.js?v=1.0&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;&lt;%= callback_base %&gt;javascripts/application.js?v=1.0&quot;&gt;&lt;/script&gt;
 
 
 </diff>
      <filename>app/views/layouts/application.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -2,5 +2,4 @@
 &lt;fb:tabs&gt;
 	&lt;fb:tab-item href=&quot;&lt;%= base_url %&gt;&quot; title=&quot;Home&quot; &lt;%= selected if (@tab == 'home') %&gt;&gt;Home&lt;/fb:tab_item&gt;
 	&lt;fb:tab-item href=&quot;&lt;%= base_url %&gt;invite&quot; title=&quot;Invite Friends&quot; &lt;%= selected if (@tab == 'invite') %&gt;&gt;Invite Friends&lt;/fb:tab_item&gt;
-	&lt;fb:tab-item href=&quot;&lt;%= base_url %&gt;people&quot; title=&quot;People&quot; &lt;%= selected if @tab == 'people' %&gt; &gt;People&lt;/fb:tab_item&gt;
 &lt;/fb:tabs&gt;
\ No newline at end of file</diff>
      <filename>app/views/shared/_menu.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,7 @@ development:
   encoding: utf8
   database: fb
   username: root
-  password: 
+  password: sparq411 
 
 test:
   adapter: mysql</diff>
      <filename>config/database.yml</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,3 @@
-# Be sure to restart your server when you modify this file
-
-# Uncomment below to force Rails into production mode when
-# you don't control web/app server and can't set it the proper way
-# ENV['RAILS_ENV'] ||= 'production'
-
-# Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
-
 # Bootstrap the Rails environment, frameworks, and default configuration
 require File.join(File.dirname(__FILE__), 'boot')
 
@@ -58,48 +49,6 @@ Rails::Initializer.run do |config|
   # config.active_record.default_timezone = :utc
 end
 
-
-=begin
-
-Create a new Quick FB app with:
-
-  git clone git://github.com/sbraford/quick-fb.git fb_foo
-
-TODO after cloning the quick-fb git repo:
-   
-  1. Create your app's database.  Modify 'config/database.yml'.
-
-  2. Open 'config/facebook.yml' and modify the following:
-
-      key: YOUR_API_KEY_HERE
-      secret: YOUR_API_SECRET_HERE
-      canvas_path: /yourAppName/
-      callback_path: /relative_root/
-      sever_host: foo.com
-      app_name: Foo App
-
-  3. Modify the relative URL root below.
-  
-  4. Open up 'app/helpers/application_helper.rb' and modify the invitation text.
-  
-  5. Generate a new secret app key with:
-    
-        rake secret
-  
-  Copy &amp; paste this into the session config section above.
-
-  Note: to port this over to SVN, I believe you can simply do a:
-
-    rm -rf .git/
-    rm .gitignore  # and any other .gitignore files
-
-  ... and you should be good to go.
-  
-=end
-
-ActionController::AbstractRequest.relative_url_root = &quot;/change-me&quot; 
-
-
 WillPaginate::ViewHelpers.pagination_options[:prev_label] = 'prev'
 WillPaginate::ViewHelpers.pagination_options[:next_label] = 'next'
 
@@ -110,3 +59,4 @@ gem 'rfacebook'
 gem 'htmlentities'
 
 require 'htmlentities'
+</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,7 +12,6 @@ config.whiny_nils = true
 config.action_controller.consider_all_requests_local = true
 config.action_view.debug_rjs                         = true
 config.action_controller.perform_caching             = false
-config.action_view.cache_template_extensions         = false
 
 # Don't care if the mailer can't send
 config.action_mailer.raise_delivery_errors = false
\ No newline at end of file</diff>
      <filename>config/environments/development.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,15 +1,15 @@
 
 development:
-    key: YOUR_API_KEY_HERE
-    secret: YOUR_API_SECRET_HERE
-    canvas_path: /yourAppName/
-    callback_path: /relative_root/
+    key: 20fb4d25be166b7f28594cc391acdb3c
+    secret: bbc3dcddb22365bc6a632a596a061bed
+    canvas_path: /translationhero/
+    callback_path: /
     # These config options added by me:
-    sever_host: foo.com
-    app_name: Foo App
+    server_host: dealbonzai.com:8888
+    app_name: Translation Hero
     tunnel:
       username: deploy
-      host: foo.com
+      host: dealbonzai.com
       port: 8888
       local_port: 3000
 
@@ -30,7 +30,7 @@ production:
     canvas_path: /yourAppName/
     callback_path: /path/to/your/callback/
     # This config option added by me:
-    sever_host: foo.com
+    server_host: foo.com
     app_name: Foo App
     tunnel:
       username: yourLoginName</diff>
      <filename>config/facebook.yml</filename>
    </modified>
    <modified>
      <diff>@@ -12,14 +12,6 @@ end
 
 module StringExtensions
 
-  def trim_dot(chars = 30, dots = &quot;...&quot;)
-    new_str = self
-    if self.size &gt; chars
-      new_str = self[0..chars] + dots
-    end
-    return new_str
-  end
-  
   def ensure_url
     without_http = self.gsub(/^http:\/\// , '')
     return &quot;http://#{without_http}&quot;
@@ -97,79 +89,10 @@ module NumberExtensions
     return &quot;#{currency}%.2f&quot; % self
   end
 
-  # Formats a number with the number of decimal places provided.  Defaults to 2 if none provided.
-  #   Usage: (3.14159).number_format =&gt; &quot;3.14&quot;
-  def number_format(decimal_places = 2)
-    return &quot;%.#{decimal_places}f&quot; % self
-  end
-  
-  # Returns a comma-delimited (3 digits per comma) representation of the number.
-  # Usage: 123456789.commify --&gt; &quot;123,456,789&quot;
-  def commify
-    text = self.to_s.reverse
-    text.gsub!(/(\d\d\d)(?=\d)(?!\d*\.)/, '\1,')
-    return text.reverse
-  end
-  
-  def to_ordinal
-    num = self.to_i
-    if (10...20)===num
-      &quot;#{num}th&quot;
-    else
-      g = %w{ th st nd rd th th th th th th }
-      a = num.to_s
-      c=a[-1..-1].to_i
-      a + g[c]
-    end
-  end
-  
-end
-
-# Date and time extensions to extend the core Ruby Date and Time classes.
-
-module TimeExtensions
-
-  # Returns a Date object
-  def to_date
-    return Date.new(self.year, self.month, self.mday)
-  end
-
-  def nice_print
-    return self.strftime(&quot;%b %d, %Y&quot;)
-  end
-
-  # Prints the date like:  Monday, June 10th of 2006.
-  def full_print
-    day_ordinal = self.day.to_ordinal
-    return self.strftime(&quot;%A, %B #{day_ordinal} of %Y&quot;)
-  end
-  
-  def custom_print
-    day_ordinal = self.day.to_ordinal
-    return self.strftime(&quot;%A #{day_ordinal} %b&quot;)
-  end
-  
-end
-
-module DateExtensions
-
-  def to_time
-    return Time.gm(self.year, self.month, self.mday)
-  end
-
-  def nice_print
-    return self.strftime(&quot;%b %d, %Y&quot;)
-  end
-  
 end
 
 module ArrayExtensions
 
-  # Behaves like Array#inspect only without the '[]' around the items.
-  def inspect_raw
-    self.join(', ')
-  end
-
   def randomize
     self.sort_by { rand }
   end
@@ -200,14 +123,6 @@ class Bignum
   include NumberExtensions
 end
 
-class Time
-  include TimeExtensions
-end
-
-class Date
-  include DateExtensions
-end
-
 class Array
   include ArrayExtensions
 end</diff>
      <filename>lib/core_class_extensions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,50 +1,50 @@
 function go_jax(url) {
-	var ajax = new Ajax();
-	ajax.requireLogin = true;
-	ajax.responseType = Ajax.FBML;
-	ajax.ondone = function(data) { document.getElementById('ajax-notice').setInnerFBML(data); }
-	ajax.post(url);
+  var ajax = new Ajax();
+  ajax.requireLogin = true;
+  ajax.responseType = Ajax.FBML;
+  ajax.ondone = function(data) { document.getElementById('ajax-notice').setInnerFBML(data); }
+  ajax.post(url);
 }
 // When your AJAX call simply returns some text that can be stuffed into 'ajax-notice' ...
 function go_jax_example(id) {
-	go_jax(callback_url + 'viewing/remove/' + id);
+  go_jax(callback_url + 'viewing/remove/' + id);
 }
 
 function hide_element(id) {
-	document.getElementById(id).setStyle(&quot;display&quot;, &quot;none&quot;);
+  document.getElementById(id).setStyle(&quot;display&quot;, &quot;none&quot;);
 }
 
 function set_inner_fbml(id, fbml) {
-	document.getElementById(id).setInnerFBML(data);
+  document.getElementById(id).setInnerFBML(data);
 }
 
 function set_inner_text(id, text) {
-	document.getElementById(id).setTextValue(text);
+  document.getElementById(id).setTextValue(text);
 }
 
 // Clear a search field that has a (Find ...) already populated in it, such as:
 //    &lt;input name=&quot;query&quot; type=&quot;text&quot; size=&quot;16&quot; value=&quot; (Find Foo) &quot; id=&quot;movie_input&quot; onclick=&quot;clear_search();&quot;&gt;
 function clear_search() {
-	val = document.getElementById('search_input').getValue();
-	if (val == ' (Find Foo) ') {
-		document.getElementById('search_input').setValue('');
-	}
+  val = document.getElementById('search_input').getValue();
+  if (val == ' (Find Foo) ') {
+    document.getElementById('search_input').setValue('');
+  }
 }
 
 // Example from Facebook:
 function do_ajax(type) {
-	var ajax = new Ajax();
-	ajax.responseType = type;
-	
-	switch (type) {
-		case Ajax.JSON:
-			ajax.ondone = function(data) { document.getElementById('ajax1').setTextValue(data.message + ' The current time is: ' + data.time + '. '); document.getElementById('ajax2').setInnerFBML(data.fbml_test); }
-			break;
-		case Ajax.FBML:
-			ajax.ondone = function(data) { document.getElementById('ajax1').setInnerFBML(data); document.getElementById('ajax2').setTextValue(''); }
-			break;
-		case Ajax.RAW: ajax.ondone = function(data) { document.getElementById('ajax1').setTextValue(data); document.getElementById('ajax2').setTextValue(''); }
-		break; }
-	ajax.requireLogin = document.getElementById('requirelogin').getChecked();
-	ajax.post(callback_url + 'facebook/foo?t='+type);
+  var ajax = new Ajax();
+  ajax.responseType = type;
+  
+  switch (type) {
+    case Ajax.JSON:
+      ajax.ondone = function(data) { document.getElementById('ajax1').setTextValue(data.message + ' The current time is: ' + data.time + '. '); document.getElementById('ajax2').setInnerFBML(data.fbml_test); }
+      break;
+    case Ajax.FBML:
+      ajax.ondone = function(data) { document.getElementById('ajax1').setInnerFBML(data); document.getElementById('ajax2').setTextValue(''); }
+      break;
+    case Ajax.RAW: ajax.ondone = function(data) { document.getElementById('ajax1').setTextValue(data); document.getElementById('ajax2').setTextValue(''); }
+    break; }
+  ajax.requireLogin = document.getElementById('requirelogin').getChecked();
+  ajax.post(callback_url + 'facebook/foo?t='+type);
 }
\ No newline at end of file</diff>
      <filename>public/javascripts/application.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a523cad5590245e555c689f1bee44470e433b117</id>
    </parent>
  </parents>
  <author>
    <name>shanti</name>
    <email>sems@sparqs-macbook-pro-15.local</email>
  </author>
  <url>http://github.com/sbraford/quick-fb/commit/77583fada578769ea5dac3f085a9276b46d82bdd</url>
  <id>77583fada578769ea5dac3f085a9276b46d82bdd</id>
  <committed-date>2008-10-10T22:30:07-07:00</committed-date>
  <authored-date>2008-10-10T22:30:07-07:00</authored-date>
  <message>fixes to bring quick-fb up to snuff; working with Rails 2.1.1</message>
  <tree>eef9c628b1e45a1ec504e250e4f6c598a47ea813</tree>
  <committer>
    <name>shanti</name>
    <email>sems@sparqs-macbook-pro-15.local</email>
  </committer>
</commit>
