<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendor/haml_maruku_filter.rb</filename>
    </added>
    <added>
      <filename>view/css/clearfix.sass</filename>
    </added>
    <added>
      <filename>view/css/reset.sass</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -22,11 +22,18 @@ class AccountController &lt; Controller
   def login
     redirect_referrer if logged_in?
     push request.referrer unless inside_stack?
+
+    case request[:fail]
+    when 'session'
+      flash[:bad] =
+        'Failed to login, please make sure you have cookies enabled for this site'
+    end
+
     return unless request.post?
 
     if user_login
       flash[:good] = &quot;Welcome back #{user.login}&quot;
-      answer R(ProfileController, user.login)
+      redirect Rs(:after_login)
     end
   end
 
@@ -46,6 +53,20 @@ class AccountController &lt; Controller
     end
   end
 
+  # This method is simply to check whether we really did login and the browser
+  # sends us a cookie, if we're not logged in by now it would indicate that the
+  # client doesn't support cookies or has it disabled and so unable to use this
+  # site.
+  # For some reason, the arora seems to have problems handling cookies on
+  # localhost from rack.
+  def after_login
+    if logged_in?
+      answer R(ProfileController, user.login)
+    else
+      redirect Rs(:login, :fail =&gt; :session)
+    end
+  end
+
   def logout
     user_logout
 </diff>
      <filename>controller/account.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,8 @@
 class CssController &lt; Ramaze::Controller
   engine :Sass
+  trait :sass_options =&gt; {
+    :style =&gt; :compressed,
+  }
 end
 
 Ramaze::Route[%r!/css/(.+)\.css!] = '/css/%s'</diff>
      <filename>controller/css.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,6 +18,7 @@ SOCIAR = Configuration.for :sociar do
   end
 
   ramaze do
+    gzip true
     host '0.0.0.0'
     port 7000
     adapter :thin</diff>
      <filename>env/sociar.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,2 @@
 acquire 'model/*.rb'
-require 'db/init'
+# require 'db/init'</diff>
      <filename>model/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,14 +8,24 @@ $LOAD_PATH.unshift(__DIR__)
 require 'env'
 
 require 'vendor/flickr'
+require 'vendor/haml_maruku_filter'
 require 'vendor/image_science_cropped_resize'
 
 require 'model/init'
 require 'controller/init'
 
-require 'db/init' if SOCIAR.mode == 'dev'
+# require 'db/init' if SOCIAR.mode == 'dev'
 
 r = SOCIAR.ramaze
+
+=begin
+if r.gzip
+  require 'ramaze/contrib/gzip_filter'
+  gzip = Ramaze::Filter::Gzip
+  gzip.trait :threshold =&gt; 1
+  Ramaze::Dispatcher::Action::FILTER &lt;&lt; gzip
+=end
+
 Ramaze.start :adapter =&gt; r.adapter,
              :host =&gt; r.host,
              :port =&gt; r.port,</diff>
      <filename>start.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,53 +4,6 @@
 require 'sequel'
 require 'image_science'
 
-# Scaffold image models utilizing thumbnailing and Ramaze integration.
-# Resizing is done by ImageScience.
-#
-# Usage:
-#   class Avatar &lt; Sequel::Model
-#     IMAGE = {
-#       # specifies belongs_to, will create relation and foreign key
-#
-#       :owner =&gt; :User,
-#
-#
-#       # Remove original and thumbnails on Avatar#destroy
-#
-#       :cleanup =&gt; true,
-#
-#
-#       # Algorithm to use in ImageScience
-#       #
-#       # * resize(width, height)
-#       #     Resizes the image to +width+ and +height+ using a cubic-bspline
-#       #     filter.
-#       #
-#       # * thumbnail(size)
-#       #     Creates a proportional thumbnail of the image scaled so its
-#       #     longest edge is resized to +size+.
-#       #
-#       # * cropped_thumbnail(size)
-#       #     Creates a square thumbnail of the image cropping the longest edge
-#       #     to match the shortest edge, resizes to +size+.
-#
-#       :agorithm =&gt; :thumbnail,
-#
-#
-#       # Key specifies the filename and accessors, value are arguments to the
-#       # algorithm
-#
-#       :sizes =&gt; {
-#         :small =&gt; 150,
-#         :medium =&gt; 300,
-#         :large =&gt; 600
-#       }
-#     }
-#
-#     # Perform the scaffold
-#     include SequelImage
-#   end
-
 module Sequel
   module Plugins
     module Image</diff>
      <filename>vendor/image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,57 @@
 #about
-  %h1 About Sociar
-  %p
-    Sociar is an open source social network system. It is designed for ease of use and customization.
+  :maruku
+    * ToC
+    {:toc}
+
+    # About Sociar
+
+    Sociar is an open source social network system. It's designed for ease of
+    use and customization.
+
+    ## Features
+
+    * User
+      * Authentication
+        * Ordinary email/password
+          * Recover lost password
+        * OpenID
+      * Avatar / gravatar
+      * Profile
+    * Images
+      * Lightbox
+      * Tagging
+      * Thumbnailing
+      * Upload
+      * Flickr integration
+    * Blog
+      * Commenting
+      * Email-Notification and Feeds
+      * Every user has a blog
+    * Messaging
+      * Email-Notification and Feeds
+      * User2User PM
+    * Search
+      * For User
+        * by location
+        * by name
+      * For Blog Post
+        * by fulltext
+        * by title
+
+    ## Obtaining
+
+    ## Dependencies
+
+    * configuration
+    * erubis
+    * faker
+    * haml
+    * maruku
+    * rack
+    * ramaze
+    * sequel
+    * sqlite3-ruby
+    * xml-simple
+
+
+-# vi: syntax=haml</diff>
      <filename>view/about.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 #login
+  #flashbox= flashbox
   %form{:method =&gt; 'POST', :name =&gt; :login}
     %fieldset
       %legend Login</diff>
      <filename>view/account/login.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,8 @@
 .comment.clearfix
-  .avatar
-    = @comment.from.avatar_linked_image(50)
+  .avatar= @comment.from.avatar_linked_image(50)
   .message
     .head
       %span.time= &quot;#{time_diff @comment.updated_at} ago,&quot;
       = @comment.from.name_linked
       wrote:
-    .body
-      = h(@comment.abstract(@size))
+    .body= h(@comment.abstract(@size))</diff>
      <filename>view/comment/_show.haml</filename>
    </modified>
    <modified>
      <diff>@@ -78,17 +78,17 @@
 
 #footer
   :text-align center
+  :color #fff
   :margin-top 1em
   :width 100%
   .info
     // :margin-left 25%
-    :background #fdb
     :float left
     :width 90%
     a
       :margin-right 0.2em
       :margin-left 0.2em
-      :color #06a
+      :color #07b
   img
     :text-align center
     :height 40
@@ -96,8 +96,9 @@
 
 #comments
   .comment
-    :width 100%
-    :margin-bottom 1em
+    :padding 1em
+    :margin 1em
+    :border 1px solid #f60
     .avatar
       :width 60px
       :float left</diff>
      <filename>view/css/layout.sass</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>public/css/clearfix.css</filename>
    </removed>
    <removed>
      <filename>public/css/reset.css</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>bd1fdd1385796493ed0b4c496e52ec19f354063b</id>
    </parent>
  </parents>
  <author>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </author>
  <url>http://github.com/manveru/sociar/commit/ebb91316a0aedb88a8ae865a0bfe7788f0a0bc9f</url>
  <id>ebb91316a0aedb88a8ae865a0bfe7788f0a0bc9f</id>
  <committed-date>2008-10-19T08:42:11-07:00</committed-date>
  <authored-date>2008-10-19T08:42:11-07:00</authored-date>
  <message>Refactoring and cleaning up</message>
  <tree>97ddaf717c1907e27e1eda9c4fa8d72bbe16d8be</tree>
  <committer>
    <name>Michael Fellinger</name>
    <email>m.fellinger@gmail.com</email>
  </committer>
</commit>
