<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>db</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 tmp/*
 log/*
 db/*
+waves</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -4,16 +4,11 @@ module Pages
     class Development &lt; Default
       
       reloadable [ Pages ]
-	          
-      #include Waves::Cache::RackCache
-      application.use Rack::Session::Cookie, :key =&gt; 'rack.session',
-        # :domain =&gt; 'foo.com',
-        :path =&gt; '/',
-        :expire_after =&gt; 2592000,
-        :secret =&gt; 'Change it'
+	    port 2030
+	    debug true
       
       application.run Waves::Dispatchers::Default.new
-
+      
       server Waves::Servers::Mongrel
     end
   end</diff>
      <filename>configurations/development.rb</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,7 @@ module Pages
         :secret =&gt; 'Change it'
         
       application.run Waves::Dispatchers::Default.new
-        
+      
       server Waves::Servers::Mongrel
     end
   end</diff>
      <filename>configurations/production.rb</filename>
    </modified>
    <modified>
      <diff>@@ -49,8 +49,8 @@ module Pages
       private
 
       def resolve( path )
-        unless File.extname( path ).empty?
-          path = [ :db / domain / :file / path, :public / :images / path  ].find do | path |
+        unless request.extension.nil?
+          path = [ :db / domain / :file / &quot;#{path}.#{extension}&quot;, :public / :images / &quot;#{path}.#{extension}&quot;  ].find do | path |
             File.exist?( path )
           end
           path or not_found</diff>
      <filename>controllers/image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,23 +1,24 @@
-require 'RMagick'
+require 'rmagick'
+
 
 class Image
-	
+
 	API = Magick::Image
 
   # width, height
   Dimensions = { :xlarge =&gt; [ 1200, 900 ], :large =&gt; [ 800, 600 ], :medium =&gt; [ 600, 400 ],
     :small =&gt; [ 300, 200 ], :xsmall =&gt; [ 200, 150 ], :thumb =&gt; [ 150,  100 ] }
-	
+
 	attr_reader :data
 
 	def initialize( data = nil )
 		@data = data
 	end
-	
+
 	def Image.read( path )
 		Image.new( ::File.read( path ) ) 
 	end
-	
+
 	def resize!( size = nil )
 		return self unless ( size &amp;&amp; Array === size )
 		width, height = *size
@@ -25,7 +26,8 @@ class Image
 		@data = image.resize_to_fit!(width,height).to_blob
 		self
 	end
-		
+	
 	def to_blob ; @data ; end
 
-end
\ No newline at end of file
+end
+</diff>
      <filename>lib/image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 require 'filebase/drivers/yaml'
 Filebase.storage = Filebase::Drivers::YAML
+
 module Pages
 
   module Models</diff>
      <filename>models/default.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,8 +6,6 @@ module Pages
       
       # special image handling to deal with image resizing
       on( :get, :get =&gt; [ 'images', { :asset =&gt; true } ]  ) do
-        # example of http freshness - images are valid for 1 hour - rack-cache will return the cached copy.
-        response['Cache-Control'] = 'max-age=3600' unless response['Cache-Control']
         controller.get( captured.asset * '/' )
       end
       </diff>
      <filename>resources/image.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,36 +9,39 @@ module Pages
       # otherwise assume we are matching against a resource
       on( true, [ :resource, { :rest =&gt; true } ] ) { to( captured.resource ) }
 
-      # for accessing admin page and updating site info -- requires authentication
-      on( [ :get, :post ], [ 'admin' ] ) { to( :site ) }
-      on( [ :get, :post ], [ 'admin', { :rest =&gt; true } ] ) { to( :site ) }
+      on( :get, [ 'javascript', true ] ) { to( :media ) }
+      on( :get, [ 'css', true ] ) { to( :media ) }
+      on( :get, [ 'images', true ] ) { to( :image ) }
 
-      # special URL just for login and authenticating
-      on( [ :get, :post ], [ 'login' ] ) { to( :user ) }
-      
-      # logout
-      on( :get, [ 'logout' ] ) { to( :user ) }
-      
-      # register
-      on( :get, :register =&gt; [ 'user' ] ) { to( :user ) }
-      
-      # images
-      on( :get, [ 'images' , true ] ) { to( :image ) }
-      
-      # whatever as an extension comes from public or theme directory.
-      # on( :get, true, :ext =&gt; [ :css, :js, :swf, :gif, :png, :jpg, :htm, :ico ] ) { to( :media ) }
-      # on( :get, true, :ext =&gt; [ :* ] ) { to( :media ) }
-      on( true, [ :resource, { :rest =&gt; true } ], :ext =&gt; [ :rss, :xml ] ) { to( captured.resource ) }
-      
-      # before anything else, check the accepts headers and route accordingly
-      on( :get, true, :accept =&gt; [ :rss ] ) { to( :blog ) }
-      
-      # updating status on social network
-      on( true, [ 'social' , :name ] ) { to( :social ) }
-      
-      # # special URL just payment notification
-      # on( :post, [ 'donation' ] ) { to( :payment ) }
-      # on( [ :get, :post ], [ 'payment-notification' ] ) { to( :payment ) }
+      # # for accessing admin page and updating site info -- requires authentication
+      # on( [ :get, :post ], [ 'admin' ] ) { to( :site ) }
+      # on( [ :get, :post ], [ 'admin', { :rest =&gt; true } ] ) { to( :site ) }
+      # 
+      # # special URL just for login and authenticating
+      # on( [ :get, :post ], [ 'login' ] ) { to( :user ) }
+      # 
+      # # logout
+      # on( :get, [ 'logout' ] ) { to( :user ) }
+      # 
+      # # register
+      # on( :get, :register =&gt; [ 'user' ] ) { to( :user ) }
+      # 
+      # # images
+      # on( :get, [ 'images' , true ] ) { to( :image ) }
+      # 
+      # # whatever as an extension comes from public or theme directory.
+      # on( :get, [ %w( javascript css) ] ) { to( :media ) }
+      # on( true, [ :resource, { :rest =&gt; true } ], :ext =&gt; [ :rss, :xml ] ) { to( captured.resource ) }
+      # 
+      # # before anything else, check the accepts headers and route accordingly
+      # on( :get, true, :accept =&gt; [ :rss ] ) { to( :blog ) }
+      # 
+      # # updating status on social network
+      # on( true, [ 'social' , :name ] ) { to( :social ) }
+      # 
+      # # # special URL just payment notification
+      # # on( :post, [ 'donation' ] ) { to( :payment ) }
+      # # on( [ :get, :post ], [ 'payment-notification' ] ) { to( :payment ) }
         
     end
   end</diff>
      <filename>resources/map.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,9 +6,7 @@ module Pages
 
       include Waves::Resources::Mixin
 
-      on( :get, :get =&gt; [ 'media', :mediatype, { :asset =&gt; true } ] ) do
-        # example of http freshness - js and css are valid for 1 hour - rack-cache will return the cached copy of css and js.
-        response['Cache-Control'] = 'max-age=3600'
+      on( :get, :get =&gt; [ :mediatype, { :asset =&gt; true } ], :ext =&gt; true ) do
         controller.get( captured.mediatype, (captured.asset  * '/') + (request.ext || ''))
       end
 </diff>
      <filename>resources/media.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>example_db/localhost/blog/test-blog.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/file/feed.gif</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/file/feed.png</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/image/banner.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/image/files/.DS_Store.jpg</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/image/files/banner</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/site.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/banner.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/feed.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/footer.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/head.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/home.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/menu.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/sidebar.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/test-story-1.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/story/test-story-2.yml</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/theme/comments.css</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/theme/forms.css</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/theme/site.css</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/theme/site.js</filename>
    </removed>
    <removed>
      <filename>example_db/localhost/user/default-example-com.yml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>366011771bc90f6c77f07180bf5ca15497a29e9d</id>
    </parent>
  </parents>
  <author>
    <name>Dan Yoder</name>
    <email>dan@zeraweb.com</email>
  </author>
  <url>http://github.com/dyoder/pages/commit/3611209356661cadbefbb8e9625d38bcc0f64d90</url>
  <id>3611209356661cadbefbb8e9625d38bcc0f64d90</id>
  <committed-date>2009-08-05T00:22:36-07:00</committed-date>
  <authored-date>2009-08-05T00:22:36-07:00</authored-date>
  <message>Fixed loading image as a file (i.e. not as an image object).</message>
  <tree>48c54cfbeabd3e70a5aea02147f5ce8b5993f3a3</tree>
  <committer>
    <name>Dan Yoder</name>
    <email>dan@zeraweb.com</email>
  </committer>
</commit>
