<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>autotest/discover.rb</filename>
    </added>
    <added>
      <filename>autotest/merb.rb</filename>
    </added>
    <added>
      <filename>autotest/merb_rspec.rb</filename>
    </added>
    <added>
      <filename>slices/merb-auth/app/controllers/users.rb</filename>
    </added>
    <added>
      <filename>slices/merb-auth/app/views/sessions/new.html.erb</filename>
    </added>
    <added>
      <filename>slices/merb-auth/app/views/users/_user.html.erb</filename>
    </added>
    <added>
      <filename>slices/merb-auth/app/views/users/edit.html.erb</filename>
    </added>
    <added>
      <filename>slices/merb-auth/app/views/users/index.html.erb</filename>
    </added>
    <added>
      <filename>slices/merb-auth/app/views/users/new.html.erb</filename>
    </added>
    <added>
      <filename>slices/merb-auth/app/views/users/show.html.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,7 +6,7 @@ class Application &lt; Merb::Controller
   before :load_plugins
   before :fire_before_event
   before :fix_cache_issue_with_merb_093
-  
+
   ##
   # This just makes sure that params[:format] isn't null, to get around the merb 0.9.3 cache issue
   def fix_cache_issue_with_merb_093</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -107,7 +107,7 @@ module Merb
       items &lt;&lt; {:text =&gt; &quot;Articles&quot;, :url =&gt; url(:admin_articles)}
       items &lt;&lt; {:text =&gt; &quot;Plugins&quot;, :url =&gt; url(:admin_plugins)}
       items &lt;&lt; {:text =&gt; &quot;Settings&quot;, :url =&gt; url(:admin_configurations)}
-      items &lt;&lt; {:text =&gt; &quot;Users&quot;, :url =&gt; url(:admin_users)}
+      items &lt;&lt; {:text =&gt; &quot;Users&quot;, :url =&gt; url(:users)}
       if self.current_user == :false
         items &lt;&lt; {:text =&gt; &quot;Login&quot;, :url =&gt; url(:login)}
       else</diff>
      <filename>app/helpers/global_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,39 +1,11 @@
-require 'digest/sha1'
-begin
-  require File.join(File.dirname(__FILE__), '..', '..', &quot;lib&quot;, &quot;authenticated_system&quot;, &quot;authenticated_dependencies&quot;)
-rescue 
-  nil
-end
 class User
-  include DataMapper::Validate
-  include AuthenticatedSystem::Model
-  include DataMapper::Resource
-
-  attr_accessor :password, :password_confirmation
+  include MerbAuth::Adapter::DataMapper
+  include MerbAuth::Adapter::DataMapper::DefaultModelSetup
 
-  property :id, Integer, :key =&gt; true, :serial =&gt; true
-  property :login,                      String
-  property :email,                      String, :length =&gt; 255
-  property :crypted_password,           String
-  property :salt,                       String
-  property :remember_token_expires_at,  DateTime
-  property :remember_token,             String
   property :time_zone,                  String
-  property :created_at,                 DateTime
-  property :updated_at,                 DateTime
   property :name,                       String
   property :default_formatter,          String
 
-  validates_length            :login,                   :within =&gt; 3..40
-  validates_is_unique         :login
-  validates_present           :password,                :if =&gt; :password_required?
-  validates_present           :password_confirmation,   :if =&gt; :password_required?
-  validates_length            :password,                :within =&gt; 4..40, :if =&gt; :password_required?
-  validates_is_confirmed      :password,                :groups =&gt; :create
-  validates_present           :email
-
-  before :save, :encrypt_password
-
   after :save, :set_create_activity
   after :save, :set_update_activity
 
@@ -52,8 +24,4 @@ class User
       a.save
     end
   end
-
-  def login=(value);
-    attribute_set :login, value.downcase unless value.nil?
-  end
 end</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,20 +40,23 @@ use_orm :datamapper
 ### merb.
 ###
 # use_test :test_unit
-use_test :rspec, &quot;merb_stories&quot;
+use_test :rspec
 
 ### Add your other dependencies here
 
 # These are some examples of how you might specify dependencies.
 # 
 gem &quot;archive-tar-minitar&quot;
-dependencies &quot;merb_helpers&quot;
 dependency &quot;merb_helpers&quot;
 dependency &quot;merb-assets&quot;
 dependency &quot;merb-cache&quot;
 dependency &quot;merb-action-args&quot;
+dependency &quot;merb_has_flash&quot;
+dependency &quot;merb_helpers&quot;
 dependency &quot;merb-mailer&quot;
 dependency 'merb_paginate'
+dependency &quot;merb-slices&quot;
+dependency &quot;merb-auth&quot;
 dependency &quot;dm-aggregates&quot;
 dependency &quot;dm-validations&quot;
 dependency &quot;dm-timestamps&quot;
@@ -62,6 +65,13 @@ dependency &quot;dm-timestamps&quot;
 # OR
 # dependencies &quot;RedCloth&quot; =&gt; &quot;&gt; 3.0&quot;, &quot;ruby-aes-cext&quot; =&gt; &quot;= 1.0&quot;
 
+Merb::BootLoader.before_app_loads do
+  Merb::Slices.config[:merb_auth] = {
+    :layout =&gt; :admin,
+    :login_field =&gt; :login
+  }
+end
+
 Merb::BootLoader.after_app_loads do
   require &quot;tzinfo&quot;
   require &quot;net/http&quot;
@@ -94,10 +104,6 @@ Merb::BootLoader.after_app_loads do
 end
 
 require File.join(File.join(Merb.root_path, &quot;lib&quot;), &quot;cache_helper&quot;)
-begin 
-  require File.join(File.dirname(__FILE__), '..', 'lib', 'authenticated_system/authenticated_dependencies') 
-rescue LoadError
-end
 
 Merb::Plugins.config[:merb_cache] = {
    :cache_html_directory =&gt; Merb.dir_for(:public)  / &quot;cache&quot;,</diff>
      <filename>config/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,7 +27,7 @@ Merb::Router.prepare do |r|
       {:controller =&gt; &quot;articles&quot;, :action =&gt; &quot;show&quot;, :id =&gt; article.id}
     end
   end
-  
+
   # Admin namespace
   r.namespace :admin do |admin|
     admin.resource :configurations
@@ -37,7 +37,10 @@ Merb::Router.prepare do |r|
     admin.resources :articles
     admin.match(&quot;&quot;).to(:controller =&gt; &quot;dashboard&quot;, :action =&gt; &quot;index&quot;)
   end
-  
+
+  # Mount merb-auth.
+  r.add_slice :MerbAuth, &quot;admin&quot;
+
   # Year/month/day routes
   r.match(&quot;/:year&quot;).to(:controller =&gt; &quot;articles&quot;, :action =&gt; &quot;index&quot;).name(:year)
   r.match(&quot;/:year/:month&quot;).to(:controller =&gt; &quot;articles&quot;, :action =&gt; &quot;index&quot;).name(:month)
@@ -48,4 +51,3 @@ Merb::Router.prepare do |r|
   r.match('/').to(:controller =&gt; 'articles', :action =&gt;'index')
 end
 
-AuthenticatedSystem.add_routes</diff>
      <filename>config/router.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,10 +9,7 @@ module Admin
     
     describe &quot;/admin/articles&quot; do
       it &quot;should get all articles in descending created order&quot; do
-        Article.should_receive(:all) do |args|
-          args[:order].should == [:created_at.desc]
-          @articles
-        end
+        Article.should_receive(:all).with(:order =&gt; [:created_at.desc], :offset =&gt; 0, :limit =&gt; 10).and_return(@articles)
         controller = dispatch_to(Articles, :index) do |controller|
           controller.should_receive(:login_required).and_return(true)
           controller.should_receive(:display).with(@articles)</diff>
      <filename>spec/controllers/admin/articles_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/controllers/admin/sessions.rb</filename>
    </removed>
    <removed>
      <filename>app/controllers/admin/users.rb</filename>
    </removed>
    <removed>
      <filename>app/views/admin/sessions/new.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/admin/users/_user.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/admin/users/edit.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/admin/users/index.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/admin/users/new.html.erb</filename>
    </removed>
    <removed>
      <filename>app/views/admin/users/show.html.erb</filename>
    </removed>
    <removed>
      <filename>lib/authenticated_system/authenticated_dependencies.rb</filename>
    </removed>
    <removed>
      <filename>lib/authenticated_system/authenticated_routes.rb</filename>
    </removed>
    <removed>
      <filename>lib/authenticated_system/authenticated_system_controller.rb</filename>
    </removed>
    <removed>
      <filename>lib/authenticated_system/authenticated_system_model.rb</filename>
    </removed>
    <removed>
      <filename>lib/authenticated_system/authenticated_system_orm_map.rb</filename>
    </removed>
    <removed>
      <filename>spec/authenticated_system_spec_helper.rb</filename>
    </removed>
    <removed>
      <filename>spec/controllers/admin/sessions_spec.rb</filename>
    </removed>
    <removed>
      <filename>spec/controllers/admin/users_spec.rb</filename>
    </removed>
    <removed>
      <filename>spec/helpers/admin/sessions_helper_spec.rb</filename>
    </removed>
    <removed>
      <filename>spec/helpers/admin/users_helper_spec.rb</filename>
    </removed>
    <removed>
      <filename>spec/models/user_spec.rb</filename>
    </removed>
    <removed>
      <filename>spec/user_spec_helper.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>eafb1861bfdc0f92b07282451731d59c3ba7a11d</id>
    </parent>
    <parent>
      <id>658fab8c25a8670708f811533cca6a7076720f08</id>
    </parent>
  </parents>
  <author>
    <name>El Draper</name>
    <email>el@eldiablo.co.uk</email>
  </author>
  <url>http://github.com/mleung/feather/commit/d9fdcdc6d8770b111dbf9df8835d92c89aeec166</url>
  <id>d9fdcdc6d8770b111dbf9df8835d92c89aeec166</id>
  <committed-date>2008-07-18T14:14:02-07:00</committed-date>
  <authored-date>2008-07-18T14:14:02-07:00</authored-date>
  <message>fixed conflicts

Merge branch 'master' of git://github.com/thewordnerd/feather into thewordnerd/master

Conflicts:

	config/init.rb
	spec/controllers/admin/articles_spec.rb
	spec/models/user_spec.rb</message>
  <tree>c0776e53a7068c7173dedb53f3e38cb9734e84de</tree>
  <committer>
    <name>El Draper</name>
    <email>el@eldiablo.co.uk</email>
  </committer>
</commit>
