<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/views/layout/merbful_authentication.html.erb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/activerecord/init.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/activerecord/map.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/activerecord/model.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/common.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/datamapper/init.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/datamapper/map.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/datamapper/model.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/adapters/map.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/controller/controller.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/controller/sessions_base.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/controller/users_base.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/initializer.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/merbtasks.rb</filename>
    </added>
    <added>
      <filename>lib/merbful_authentication/slicetasks.rb</filename>
    </added>
    <added>
      <filename>spec/merbful_authentication_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,31 +1,31 @@
-MerbAuth
+MerbfulAuthentication
 =====================
 
 A slice for the Merb framework. 
 
-MerbAuth is an authentication framework for the Merb Web Framework.  
+MerbfulAuthentication is an authentication framework for the Merb Web Framework.  
 
 Currently DataMapper and ActiveRecord supportis available.  It should be pretty easy to add your own.
 
-MerbAuth provides your model with a mixin that gives your model all the required behavior
+MerbfulAuthentication provides your model with a mixin that gives your model all the required behavior
 and links it to the controllers.  
 
 As an example.  In your normal applications model directory create your user model.
 
 class User
-  include MerbAuth::Adapter::DataMapper
-  include MerbAuth::Adapter::DataMapper::DefaultModelSetup
+  include MerbfulAuthentication::Adapter::DataMapper
+  include MerbfulAuthentication::Adapter::DataMapper::DefaultModelSetup
 end
 
 This will give the User class the required behavior and provide access to the class through
-MerbAuth[:user] for other slice authors.  To save key presses a handy constant is available
+MerbfulAuthentication[:user] for other slice authors.  To save key presses a handy constant is available
 MA.
 
 So using the MA constant you can declare your class like this
 
 class Person
   include MA::Adapter::DataMapper
-  include MerbAuth::Adapter::DataMapper::DefaultModelSetup
+  include MerbfulAuthentication::Adapter::DataMapper::DefaultModelSetup
 end
 
 And in your custom slice, get access to the user class with MA[:user]
@@ -40,14 +40,14 @@ rake slices:merb_auth:ar:setup # ActiveRecord defaults
 
 ===Useful Helpers
 
-The normal merb-auth helpers are available for your application, but also there is some consistent 
+The normal merbful_authentication helpers are available for your application, but also there is some consistent 
 helpers for other slice authors. Most notably is the controller helper
 
 :current_ma_user also aliased as :current_person, or :current_user or whatever your user class name is.
 
 === Controllers
 
-The controllers that drive MerbAuth are always named MA::Users, and MA::Sessions
+The controllers that drive MerbfulAuthentication are always named MA::Users, and MA::Sessions
 
 These are then mapped to appropriately named routes.  
 
@@ -62,10 +62,10 @@ Instructions for installation:
 === Quick Install
 # config/init.rb
 dependency &quot;merb-slices&quot;
-dependency &quot;merb-auth&quot;
+dependency &quot;merbful_authentication&quot;
 
 # router
-r.add_slice(:MerbAuth, &quot;path/to/mount/at&quot;)
+r.add_slice(:MerbfulAuthentication, &quot;path/to/mount/at&quot;)
 
 # Boot strap to your app
 rake slices:merb_auth:install
@@ -75,39 +75,39 @@ rake slices:merb_auth:install
 
 # add the slice as a regular dependency
 
-dependency 'merb-auth'
+dependency 'merbful_authentication'
 
 # if needed, configure which slices to load and in which order
 
-Merb::Plugins.config[:merb_slices] = { :queue =&gt; [&quot;MerbAuth&quot;, ...] }
+Merb::Plugins.config[:merb_slices] = { :queue =&gt; [&quot;MerbfulAuthentication&quot;, ...] }
 
 
 
 === Configure Your Router
 
-In config/router.rb you need to activate your brand new MerbAuth Slice.  You can do this a number of ways.
+In config/router.rb you need to activate your brand new MerbfulAuthentication Slice.  You can do this a number of ways.
 
 The easiest way is like this:
 
 r.add_slices
 
-If you'd like to specify MerbAuth for mounting or other routeing options given in slices
+If you'd like to specify MerbfulAuthentication for mounting or other routeing options given in slices
 
-r.add_slice(:MerbAuth)
+r.add_slice(:MerbfulAuthentication)
 
-By default this will mount the slice at /merb-auth.  So your login url will be at 
+By default this will mount the slice at /merbful_authentication.  So your login url will be at 
 
-/merb-auth/login
+/merbful_authentication/login
 
 If you'd like to specify a different mount point in your application do it like this.
 
-r.add_slice(:MerbAuth, 'authentcation') 
+r.add_slice(:MerbfulAuthentication, 'authentcation') 
 
 Your login url will now be /authentication/login, your signup url will be at /authentication/users/new
 
-Alternatively you can just mount merb-auth directly onto your application. (Recommended)
+Alternatively you can just mount merbful_authentication directly onto your application. (Recommended)
 
-r.add_slice(:MerbAuth, :path =&gt; &quot;&quot;, :default_routes =&gt; false)
+r.add_slice(:MerbfulAuthentication, :path =&gt; &quot;&quot;, :default_routes =&gt; false)
 
 If you'd like to set more options, I suggest you look up the merb-slices documentation.
 
@@ -126,7 +126,7 @@ by writing it to the config/slices.yml file
 
 ==== Login Field
 
-By default merb-auth uses the &quot;email&quot; field to login.  If you want to use a different field, even one of your own,
+By default merbful_authentication uses the &quot;email&quot; field to login.  If you want to use a different field, even one of your own,
 you can use the
 \:login_field: jid
 
@@ -180,17 +180,17 @@ There is also the subjects that you can setup for your emails
 
 === Override the Views
 
-You can override the views MerbAuth provides.  Lets face it.  They're pretty  basic.
+You can override the views MerbfulAuthentication provides.  Lets face it.  They're pretty  basic.
 
 To do this, you need to edit the files in the bootstrapped directories in your application.
 
-Merb.root/slices/merb-auth/app/views/
+Merb.root/slices/merbful_authentication/app/views/
 
 ==== Example
 
 To change the login form you'd head on over to 
 
-Merb.root/slices/merb-auth/app/views/users/new.html.(haml|erb)
+Merb.root/slices/merbful_authentication/app/views/users/new.html.(haml|erb)
 
 And put in your own view there.  The same is available for any of the components of merbful authentication
 
@@ -206,7 +206,7 @@ Merb::Slices.config[:merb_auth] = { :layout =&gt; :application }
 
 === Migrations
 
-There is a migration task for merb-auth to generate your migrations.  Make sure you have use_orm selected so that
+There is a migration task for merbful_authentication to generate your migrations.  Make sure you have use_orm selected so that
 it knows which generator to use.  Then from your host application
 
 rake slices:merb_auth:generate_migration
\ No newline at end of file</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -5,12 +5,12 @@ require 'merb-core/version'
 require 'merb-core/test/tasks/spectasks'
 require 'merb-core/tasks/merb_rake_helper'
 
-NAME = &quot;merb-auth&quot;
-AUTHOR = &quot;Merb Core&quot;
+NAME = &quot;merbful_authentication&quot;
+AUTHOR = &quot;Daniel Neighman&quot;
 EMAIL = &quot;has.sox@gmail.com&quot;
 HOMEPAGE = &quot;http://merbivore.com/&quot;
 SUMMARY = &quot;Merb Slice that provides authentication&quot;
-GEM_VERSION = &quot;0.1.0&quot;
+GEM_VERSION = &quot;0.10.0&quot;
 
 spec = Gem::Specification.new do |s|
   s.rubyforge_project = 'merb'
@@ -35,7 +35,7 @@ Rake::GemPackageTask.new(spec) do |pkg|
   pkg.gem_spec = spec
 end
 
-desc &quot;Install MerbAuth as a gem&quot;
+desc &quot;Install MerbfulAuthentication as a gem&quot;
 task :install =&gt; [:package] do
   sh %{#{sudo} gem install pkg/#{NAME}-#{GEM_VERSION} --no-update-sources}
 end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 TODO:
 
-- Fix MerbAuth.description and MerbAuth.version
+- Fix MerbfulAuthentication.description and MerbfulAuthentication.version
 - Fix LICENSE with your name
 - Fix Rakefile with your name and contact info
 - Add your code to lib/merb_auth.rb
@@ -8,7 +8,7 @@ TODO:
 
 Remove anything that you don't need:
 
-- app/controllers/main.rb MerbAuth::Main controller
+- app/controllers/main.rb MerbfulAuthentication::Main controller
 - app/views/layout/merb_auth.html.erb
 - spec/controllers/main_spec.rb controller specs
 - public/* any public files
\ No newline at end of file</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,7 @@ class MaMigrationGenerator &lt; Merb::GeneratorBase
     protected
       def banner
         &lt;&lt;-EOS
-  Creates a migration for merb-auth user model
+  Creates a migration for merbful_authentication user model
 
   USAGE: #{$0} #{spec.name} name&quot;
   EOS</diff>
      <filename>activerecord_generators/ma_migration/ma_migration_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-module MerbAuth
+module MerbfulAuthentication
   class Application &lt; Merb::Controller
   
     controller_for_slice</diff>
      <filename>app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
-class MerbAuth::Sessions &lt; MerbAuth::Application
+class MerbfulAuthentication::Sessions &lt; MerbfulAuthentication::Application
 
 end
\ No newline at end of file</diff>
      <filename>app/controllers/sessions.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,3 @@
-class MerbAuth::Users &lt; MerbAuth::Application
+class MerbfulAuthentication::Users &lt; MerbfulAuthentication::Application
   
 end
\ No newline at end of file</diff>
      <filename>app/controllers/users.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 module Merb
-  module MerbAuth
+  module MerbfulAuthentication
     module ApplicationHelper
       
       # @param *segments&lt;Array[#to_s]&gt; Path segments to append.
@@ -34,7 +34,7 @@ module Merb
       # @return &lt;String&gt; 
       #  A path relative to the public directory, with added segments.
       def public_path_for(type, *segments)
-        File.join(::MerbAuth.public_dir_for(type), *segments)
+        File.join(::MerbfulAuthentication.public_dir_for(type), *segments)
       end
       
       # Construct an app-level path.
@@ -45,7 +45,7 @@ module Merb
       # @return &lt;String&gt; 
       #  A path within the host application, with added segments.
       def app_path_for(type, *segments)
-        File.join(::MerbAuth.app_dir_for(type), *segments)
+        File.join(::MerbfulAuthentication.app_dir_for(type), *segments)
       end
       
       # Construct a slice-level path.
@@ -56,7 +56,7 @@ module Merb
       # @return &lt;String&gt; 
       #  A path within the slice source (Gem), with added segments.
       def slice_path_for(type, *segments)
-        File.join(::MerbAuth.dir_for(type), *segments)
+        File.join(::MerbfulAuthentication.dir_for(type), *segments)
       end
       
     end</diff>
      <filename>app/helpers/application_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
-class MerbAuth::UserMailer &lt; Merb::MailController
+class MerbfulAuthentication::UserMailer &lt; Merb::MailController
   
-  controller_for_slice MerbAuth, :templates_for =&gt; :mailer, :path =&gt; &quot;views&quot;
+  controller_for_slice MerbfulAuthentication, :templates_for =&gt; :mailer, :path =&gt; &quot;views&quot;
   
   def signup
     @ivar = params[MA[:single_resource]]</diff>
      <filename>app/mailers/user_mailer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,4 +2,4 @@ Your password has been reset.
 
 Please visit:
 
-  &lt;%= url(:merb_auth_password, :id =&gt; @ivar.password_reset_key ) %&gt;
\ No newline at end of file
+  &lt;%= slice_url(:password, :id =&gt; @ivar.password_reset_key ) %&gt;
\ No newline at end of file</diff>
      <filename>app/mailers/views/user_mailer/forgot_password.text.erb</filename>
    </modified>
    <modified>
      <diff>@@ -3,5 +3,5 @@ Your account has been created.
   Username: &lt;%= @ivar.email %&gt;
 
 Visit this url to activate your account:
-
-  &lt;%= url(MA[:routes][:user][:activate], :activation_code =&gt; @ivar.activation_code) %&gt;
\ No newline at end of file
+	
+  &lt;%= slice_url(MA[:routes][:user][:activate], :activation_code =&gt; @ivar.activation_code) %&gt;
\ No newline at end of file</diff>
      <filename>app/mailers/views/user_mailer/signup.text.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-&lt;%= form :action =&gt; url(:login) do -%&gt;
+&lt;%= form :action =&gt; slice_url(:login) do -%&gt;
 &lt;p&gt;&lt;label for=&quot;email&quot;&gt;Email&lt;/label&gt;&lt;br/&gt;
 &lt;%= text_field :name =&gt; &quot;email&quot; %&gt;&lt;/p&gt;
 </diff>
      <filename>app/views/sessions/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;%= error_messages_for @ivar %&gt;
-&lt;%= form_for @ivar, :action =&gt; url(MA[:routes][:user][:index]) do %&gt;
+&lt;%= form_for @ivar, :action =&gt; slice_url(MA[:routes][:user][:index]) do %&gt;
   &lt;p&gt;
     &lt;%= text_field :email, :label =&gt; &quot;Email&quot; %&gt;
   &lt;/p&gt;</diff>
      <filename>app/views/users/new.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -29,7 +29,7 @@ class MaMigrationGenerator &lt; Merb::GeneratorBase
     protected
       def banner
         &lt;&lt;-EOS
-  Creates a migration for merb-auth user model
+  Creates a migration for merbful_authentication user model
 
   USAGE: #{$0} #{spec.name} name&quot;
   EOS</diff>
      <filename>datamapper_generators/ma_migration/ma_migration_generator.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
-module MerbAuth
+module MerbfulAuthentication
   class Passwords &lt; Application
   
-    controller_for_slice :MerbAuth
+    controller_for_slice :MerbfulAuthentication
       
     def _template_location(context, type = nil, controller = controller_name)
       if controller.nil? || controller != &quot;merb_auth/passwords&quot;</diff>
      <filename>plugins/forgotten_password/app/controllers/passwords.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-module MerbAuth
+module MerbfulAuthentication
   module ForgottenPassword
     module Model
       
@@ -49,4 +49,4 @@ module MerbAuth
   end
 end
 
-MA[:user].send(:include, MerbAuth::ForgottenPassword::Model)
\ No newline at end of file
+MA[:user].send(:include, MerbfulAuthentication::ForgottenPassword::Model)
\ No newline at end of file</diff>
      <filename>plugins/forgotten_password/app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-if MerbAuth[:forgotten_password] &amp;&amp; MerbAuth[:user]
+if MerbfulAuthentication[:forgotten_password] &amp;&amp; MerbfulAuthentication[:user]
   dir = File.expand_path(File.dirname(__FILE__))
   Dir[File.join(dir, &quot;app&quot;, &quot;**/*.rb&quot;)].each{ |f| require f }  
 end</diff>
      <filename>plugins/forgotten_password/forgotten_password.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
-MerbAuth.plugins[:forgotten_password] = File.join(File.expand_path(File.dirname(__FILE__)) / &quot;forgotten_password.rb&quot;)
+MerbfulAuthentication.plugins[:forgotten_password] = File.join(File.expand_path(File.dirname(__FILE__)) / &quot;forgotten_password.rb&quot;)
 
 MA.add_routes do |r|
-  if MerbAuth[:forgotten_password] &amp;&amp; MerbAuth[:user]
+  if MerbfulAuthentication[:forgotten_password] &amp;&amp; MerbfulAuthentication[:user]
     r.match(&quot;/passwords/edit&quot;).to(:controller =&gt; &quot;Passwords&quot;, :action =&gt; &quot;edit&quot;).name(:merb_auth_edit_password_form)
     r.match(&quot;/passwords&quot;, :method =&gt; :put).to(:controller =&gt; &quot;Passwords&quot;, :action =&gt; &quot;update&quot;)
     r.resources :passwords</diff>
      <filename>plugins/forgotten_password/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,7 @@ end
   
 
 DataMapper.setup(:default, 'sqlite3::memory:')
-adapter_path = File.expand_path(File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merb-auth&quot;, &quot;adapters&quot;))
+adapter_path = File.expand_path(File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merbful_authentication&quot;, &quot;adapters&quot;))
 MA.register_adapter :datamapper, &quot;#{adapter_path}/datamapper&quot;
 MA.register_adapter :activerecord, &quot;#{adapter_path}/activerecord&quot;    
 MA.load_slice
@@ -31,6 +31,6 @@ end
 
 User.auto_migrate!
 MA.activate
-Merb::Router.prepare{|r| r.add_slice(:MerbAuth)}
+Merb::Router.prepare{|r| r.add_slice(:MerbfulAuthentication)}
 MA.load_plugins!
 </diff>
      <filename>plugins/forgotten_password/spec/spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-module MerbAuth
+module MerbfulAuthentication
   module Controller
     module Tester
       def self.included(base)</diff>
      <filename>spec/controllers/plugins/test_plugin.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,6 +3,7 @@ require File.dirname(__FILE__) + '/../spec_helper'
 describe MA::Sessions, &quot;Index action&quot; do
   
   before(:all) do
+    reload_ma!
     Object.class_eval do
       remove_const(&quot;User&quot;) if defined?(User)
     end
@@ -12,14 +13,14 @@ describe MA::Sessions, &quot;Index action&quot; do
     DataMapper.setup(:default, 'sqlite3::memory:')
     Merb.stub!(:orm_generator_scope).and_return(&quot;datamapper&quot;)
     
-    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merb-auth&quot;, &quot;adapters&quot;)
+    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merbful_authentication&quot;, &quot;adapters&quot;)
     MA.register_adapter :datamapper, &quot;#{adapter_path}/datamapper&quot;
     MA.register_adapter :activerecord, &quot;#{adapter_path}/activerecord&quot;    
     MA.load_slice
 
     class User
       include MA::Adapter::DataMapper
-      include MerbAuth::Adapter::DataMapper::DefaultModelSetup
+      include MerbfulAuthentication::Adapter::DataMapper::DefaultModelSetup
     end
 
   end
@@ -34,75 +35,75 @@ describe MA::Sessions, &quot;Index action&quot; do
   end
   
   it &quot;should have a route to Sessions#new from '/login'&quot; do
-    request_to(&quot;/merb-auth/login&quot;) do |params|
+    request_to(&quot;/merbful_authentication/login&quot;) do |params|
       params[:controller].should == &quot;Sessions&quot;
       params[:action].should == &quot;create&quot;
     end   
   end
   
   it &quot;should route to Sessions#create from '/login' via post&quot; do
-    request_to(&quot;/merb-auth/login&quot;, :post) do |params|
+    request_to(&quot;/merbful_authentication/login&quot;, :post) do |params|
       params[:controller].should  == &quot;Sessions&quot;
       params[:action].should      == &quot;create&quot;
     end      
   end
   
   it &quot;should have a named route :login&quot; do
-    @controller.url(:login).should == &quot;/merb-auth/login&quot;
+    @controller.url(:merbful_authentication_login).should == &quot;/merbful_authentication/login&quot;
   end
   
   it &quot;should have route to Sessions#destroy from '/logout' via delete&quot; do
-    request_to(&quot;/merb-auth/logout&quot;, :delete) do |params|
+    request_to(&quot;/merbful_authentication/logout&quot;, :delete) do |params|
       params[:controller].should == &quot;Sessions&quot;
       params[:action].should    == &quot;destroy&quot;
     end   
   end
   
   it &quot;should route to Sessions#destroy from '/logout' via get&quot; do
-    request_to(&quot;/merb-auth/logout&quot;) do |params|
+    request_to(&quot;/merbful_authentication/logout&quot;) do |params|
       params[:controller].should == &quot;Sessions&quot; 
       params[:action].should     == &quot;destroy&quot;
     end
   end
 
   it 'logins and redirects' do
-    controller = post &quot;/merb-auth/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'test'
+    controller = post &quot;/merbful_authentication/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'test'
     controller.session[:user].should_not be_nil
     controller.session[:user].should == @quentin.id
     controller.should redirect_to(&quot;/&quot;)
   end
    
   it 'fails login and does not redirect' do
-    controller = post &quot;/merb-auth/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'bad password'
+    controller = post &quot;/merbful_authentication/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'bad password'
     controller.session[:user].should be_nil
     controller.should be_successful
   end
 
   it 'logs out' do
-    controller = get(&quot;/merb-auth/logout&quot;){|controller| controller.stub!(:current_user).and_return(@quentin) }
+    controller = get(&quot;/merbful_authentication/logout&quot;){|controller| controller.stub!(:current_user).and_return(@quentin) }
     controller.session[:user].should be_nil
     controller.should redirect
   end
 
   it 'remembers me' do
-    controller = post &quot;/merb-auth/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'test', :remember_me =&gt; &quot;1&quot;
+    controller = post &quot;/merbful_authentication/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'test', :remember_me =&gt; &quot;1&quot;
     controller.cookies[&quot;auth_token&quot;].should_not be_nil
   end
  
   it 'does not remember me' do
-    controller = post &quot;/merb-auth/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'test', :remember_me =&gt; &quot;0&quot;
+    controller = post &quot;/merbful_authentication/login&quot;, :email =&gt; 'quentin@example.com', :password =&gt; 'test', :remember_me =&gt; &quot;0&quot;
     controller.cookies[&quot;auth_token&quot;].should be_nil
   end
   
   it 'deletes token on logout' do
-    controller = get(&quot;/merb-auth/logout&quot;) {|request| request.stub!(:current_user).and_return(@quentin) }
+    controller = get(&quot;/merbful_authentication/logout&quot;) {|request| request.stub!(:current_user).and_return(@quentin) }
     controller.cookies[&quot;auth_token&quot;].should be_blank
   end
   
   
   it 'logs in with cookie' do
     @quentin.remember_me
-    controller = get &quot;/merb-auth/login&quot; do |c|
+    controller = get &quot;/merbful_authentication/login&quot; do |c|
       c.request.env[Merb::Const::HTTP_COOKIE] = &quot;auth_token=#{@quentin.remember_token}&quot;
     end
     controller.should be_logged_in</diff>
      <filename>spec/controllers/sessions_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,14 +3,14 @@ require File.dirname(__FILE__) + '/../spec_helper'
 describe MA::Users do
   
   before(:all) do
-    
+    reload_ma!
     
     MA[:use_activation] = true
     
     DataMapper.setup(:default, 'sqlite3::memory:')
     Merb.stub!(:orm_generator_scope).and_return(&quot;datamapper&quot;)
     
-    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merb-auth&quot;, &quot;adapters&quot;)
+    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merbful_authentication&quot;, &quot;adapters&quot;)
     MA.register_adapter :datamapper, &quot;#{adapter_path}/datamapper&quot;
     MA.register_adapter :activerecord, &quot;#{adapter_path}/activerecord&quot;    
     MA.load_slice
@@ -18,7 +18,7 @@ describe MA::Users do
 
     class User
       include MA::Adapter::DataMapper
-      include MerbAuth::Adapter::DataMapper::DefaultModelSetup
+      include MerbfulAuthentication::Adapter::DataMapper::DefaultModelSetup
     end
   end
   
@@ -74,7 +74,7 @@ describe MA::Users do
    end
    
    it &quot;should have a route for user activation&quot; do
-     request_to(&quot;/merb-auth/users/activate/1234&quot;) do |params|
+     request_to(&quot;/merbful_authentication/users/activate/1234&quot;) do |params|
        params[:controller].should == &quot;Users&quot;
        params[:action].should == &quot;activate&quot; 
        params[:activation_code].should == &quot;1234&quot;    
@@ -85,7 +85,7 @@ describe MA::Users do
      controller = create_user(:email =&gt; &quot;aaron@example.com&quot;, :password =&gt; &quot;test&quot;, :password_confirmation =&gt; &quot;test&quot;)
      @user = controller.assigns(:user)
      User.authenticate('aaron@example.com', 'test').should be_nil
-     controller = get &quot;/merb-auth/users/activate/#{@user.activation_code}&quot; 
+     controller = get &quot;/merbful_authentication/users/activate/#{@user.activation_code}&quot; 
      controller.should redirect_to(&quot;/&quot;)
      User.authenticate('aaron@example.com', 'test').should_not be_nil
    end
@@ -114,6 +114,6 @@ describe MA::Users do
    
      
    def create_user(options = {})
-     post &quot;/merb-auth/users/&quot;, :user =&gt; valid_user_hash.merge(options)
+     post &quot;/merbful_authentication/users/&quot;, :user =&gt; valid_user_hash.merge(options)
    end
 end</diff>
      <filename>spec/controllers/users_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,19 +3,20 @@ require File.dirname(__FILE__) + '/../spec_helper'
 describe MA::UserMailer do
   
   before(:all) do
+    reload_ma!
     MA[:use_activation] = true
     
     DataMapper.setup(:default, 'sqlite3::memory:')
     Merb.stub!(:orm_generator_scope).and_return(&quot;datamapper&quot;)
     
-    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merb-auth&quot;, &quot;adapters&quot;)
+    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merbful_authentication&quot;, &quot;adapters&quot;)
     MA.register_adapter :datamapper, &quot;#{adapter_path}/datamapper&quot;
     MA.register_adapter :activerecord, &quot;#{adapter_path}/activerecord&quot;    
     MA.loaded
 
     class User
       include MA::Adapter::DataMapper
-      include MerbAuth::Adapter::DataMapper::DefaultModelSetup
+      include MerbfulAuthentication::Adapter::DataMapper::DefaultModelSetup
     end
   end
   
@@ -52,7 +53,7 @@ describe MA::UserMailer do
   
   it &quot;should mention the activation link in the signup emails&quot; do
     deliver(:signup, @mailer_params, :user =&gt; @u)
-    the_url = MA::UserMailer.new.url(:user_activation, :activation_code =&gt; @u.activation_code)
+    the_url = MA::UserMailer.new.url(:merbful_authentication_user_activation, :activation_code =&gt; @u.activation_code)
     the_url.should_not be_nil
     @delivery.text.should include( the_url )   
   end</diff>
      <filename>spec/mailers/user_mailer_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ describe &quot;MA ActiveRecord User Model&quot; do
     
     Merb.stub!(:orm_generator_scope).and_return(&quot;activerecord&quot;)
     
-    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merb-auth&quot;, &quot;adapters&quot;)
+    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merbful_authentication&quot;, &quot;adapters&quot;)
     MA.register_adapter :datamapper, &quot;#{adapter_path}/datamapper&quot;
     MA.register_adapter :activerecord, &quot;#{adapter_path}/activerecord&quot;    
     MA.loaded
@@ -38,13 +38,13 @@ describe &quot;MA ActiveRecord User Model&quot; do
     UserMigration.up
     
     class User &lt; ActiveRecord::Base
-      include MerbAuth::Adapter::ActiveRecord
-      include MerbAuth::Adapter::ActiveRecord::DefaultModelSetup
+      include MerbfulAuthentication::Adapter::ActiveRecord
+      include MerbfulAuthentication::Adapter::ActiveRecord::DefaultModelSetup
     end
     
     MA.activate
   end
   
-  it_should_behave_like &quot;A MerbAuth User Model&quot;
+  it_should_behave_like &quot;A MerbfulAuthentication User Model&quot;
 
 end
\ No newline at end of file</diff>
      <filename>spec/models/ar_model_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ describe &quot;MA User Model&quot; do
     DataMapper.setup(:default, 'sqlite3::memory:')
     Merb.stub!(:orm_generator_scope).and_return(&quot;datamapper&quot;)
     
-    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merb-auth&quot;, &quot;adapters&quot;)
+    adapter_path = File.join( File.dirname(__FILE__), &quot;..&quot;, &quot;..&quot;, &quot;lib&quot;, &quot;merbful_authentication&quot;, &quot;adapters&quot;)
     MA.register_adapter :datamapper, &quot;#{adapter_path}/datamapper&quot;
     MA.register_adapter :activerecord, &quot;#{adapter_path}/activerecord&quot;    
     MA.loaded
@@ -18,6 +18,6 @@ describe &quot;MA User Model&quot; do
     end
   end
   
-  it_should_behave_like &quot;A MerbAuth User Model&quot;
+  it_should_behave_like &quot;A MerbfulAuthentication User Model&quot;
 
 end
\ No newline at end of file</diff>
      <filename>spec/models/model_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
-describe &quot;A MerbAuth User Model&quot;, :shared =&gt; true do
+describe &quot;A MerbfulAuthentication User Model&quot;, :shared =&gt; true do
   
   before(:all) do
-    raise &quot;You need to set the MerbAuth[:user] class to use this spec&quot; unless MA[:user].is_a?(Class)
+    raise &quot;You need to set the MerbfulAuthentication[:user] class to use this spec&quot; unless MA[:user].is_a?(Class)
   end
   
   before(:each) do
@@ -11,7 +11,7 @@ describe &quot;A MerbAuth User Model&quot;, :shared =&gt; true do
     MA[:from_email] = &quot;example@email.com&quot;
   end
   
-  it &quot;should include MerbAuth::Adapter::Common mixin&quot; do
+  it &quot;should include MerbfulAuthentication::Adapter::Common mixin&quot; do
     MA[:user].should include(MA::Adapter::Common)  
   end
   </diff>
      <filename>spec/shared_specs/shared_model_spec.rb</filename>
    </modified>
    <modified>
      <diff>@@ -13,13 +13,13 @@ require 'merb-mailer'
 #     Merb::Config.use do |c|
 #       c[:session_store] = &quot;memory&quot;
 #     end
-#     Merb::Slices.register_and_load(File.join(File.dirname(__FILE__), '..', 'lib', 'merb-auth.rb'))
+#     Merb::Slices.register_and_load(File.join(File.dirname(__FILE__), '..', 'lib', 'merbful_authentication.rb'))
 #   end
 #   
 # end
 
 Merb::Plugins.config[:merb_slices][:auto_register] = true
-Merb::Plugins.config[:merb_slices][:search_path]   = File.join(File.dirname(__FILE__), '..', 'lib', 'merb-auth.rb')
+Merb::Plugins.config[:merb_slices][:search_path]   = File.join(File.dirname(__FILE__), '..', 'lib', 'merbful_authentication.rb')
 
 module Merb
   def self.orm_generator_scope
@@ -78,23 +78,39 @@ Spec::Runner.configure do |config|
   config.include(Merb::Test::ControllerHelper)
   config.include(Merb::Test::SliceHelper)
   config.include(ValidModelHashes)
-  config.before(:each) do
-    Merb::Router.prepare { |r| r.add_slice(:MerbAuth) } if standalone?
-  end
+  # config.before(:each) do
+  #   Merb::Router.prepare { add_slice(:MerbfulAuthentication, :default_routes =&gt; false) } if standalone?
+  # end
+  # config.after(:each) do
+  #   Merb::Router.reset!
+  # end
+end
+
+def stub_orm_scope(scope = &quot;datamapper&quot;)
+  Merb.stub!(:orm_generator_scope).and_return(scope)
+end
+
+def register_activerecord!
+  MA.register_adapter :activerecord, &quot;#{File.expand_path(File.dirname(__FILE__)) / &quot;..&quot; / &quot;lib&quot; / &quot;merbful_authentication&quot; / &quot;adapters&quot; / &quot;activerecord&quot;}&quot;
+end
+
+def register_datamapper!
+  MA.register_adapter :datamapper, &quot;#{File.expand_path(File.dirname(__FILE__)) / &quot;..&quot; / &quot;lib&quot; / &quot;merbful_authentication&quot; / &quot;adapters&quot; / &quot;datamapper&quot;}&quot;
 end
 
 
-# GLobal helpers for merb-auth
+# GLobal helpers for merbful_authentication
 def reload_ma!(create_class = nil)
   Object.class_eval do
     remove_const(&quot;User&quot;) if defined?(User)
     remove_const(&quot;MA&quot;) if defined?(MA)
-    remove_const(&quot;MerbAuth&quot;)
+    remove_const(&quot;MerbfulAuthentication&quot;)
   end
-  load File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;lib&quot;, &quot;merb-auth.rb&quot;)
+  load File.join(File.dirname(__FILE__), &quot;..&quot;, &quot;lib&quot;, &quot;merbful_authentication.rb&quot;)
   register_datamapper!
   stub_orm_scope
-
+  Merb::Router.reset!
+  Merb::Router.prepare { add_slice(:MerbfulAuthentication, :default_routes =&gt; false) } if standalone?
   MA.load_slice
   yield if block_given?
   MA[:user] = nil
@@ -104,11 +120,12 @@ def reload_ma!(create_class = nil)
     Object.class_eval &lt;&lt;-EOS
       class #{create_class}
         include DataMapper::Resource
-        include MerbAuth::Adapter::DataMapper
-        include MerbAuth::Adapter::DataMapper::DefaultModelSetup
+        include MerbfulAuthentication::Adapter::DataMapper
+        include MerbfulAuthentication::Adapter::DataMapper::DefaultModelSetup
       end
       EOS
   end 
   Merb::BootLoader::MaLoadPlugins.run
   MA.activate
+  
 end</diff>
      <filename>spec/spec_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,2 @@
-class MerbAuth::Application &lt; Merb::Controller
+class MerbfulAuthentication::Application &lt; Merb::Controller
 end
\ No newline at end of file</diff>
      <filename>stubs/app/controllers/application.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,2 @@
-class MerbAuth::Main &lt; MerbAuth::Application
+class MerbfulAuthentication::Main &lt; MerbfulAuthentication::Application
 end
\ No newline at end of file</diff>
      <filename>stubs/app/controllers/main.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/views/layout/merb_auth.html.erb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/activerecord/init.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/activerecord/map.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/activerecord/model.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/common.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/datamapper/init.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/datamapper/map.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/datamapper/model.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/adapters/map.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/controller/controller.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/controller/sessions_base.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/controller/users_base.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/initializer.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/merbtasks.rb</filename>
    </removed>
    <removed>
      <filename>lib/merb-auth/slicetasks.rb</filename>
    </removed>
    <removed>
      <filename>spec/merb_auth_spec.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>a54332fbcf3648bd7745520674cf5152df4db2b1</id>
    </parent>
  </parents>
  <author>
    <name>Daniel Neighman</name>
    <email>has.sox@gmail.com</email>
  </author>
  <url>http://github.com/hassox/merbful_authentication/commit/58c4f84b43db6adadd1e0dc4dfd637cec8dfaccb</url>
  <id>58c4f84b43db6adadd1e0dc4dfd637cec8dfaccb</id>
  <committed-date>2008-09-27T07:35:14-07:00</committed-date>
  <authored-date>2008-09-27T07:35:14-07:00</authored-date>
  <message>REnames merb-auth to merbful_authentication</message>
  <tree>1dc4e0606359a5ae0d1967d602ec81540f910abe</tree>
  <committer>
    <name>Daniel Neighman</name>
    <email>has.sox@gmail.com</email>
  </committer>
</commit>
