<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>Generators</filename>
    </added>
    <added>
      <filename>lib/merb_relaxdb/rdb_salted_user.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,18 @@
 h2. Overview
 
-merb_relaxdb is a merb plugin that provides integration with CouchDB via the RelaxDB gem.
+merb_relaxdb is a merb plugin that provides integration with CouchDB via the RelaxDB gem. Version numbers indicate compatability with Merb. The current version has been tested against merb RC1 (0.9.9). 
 
-merb_relaxdb expects your merb app to augment the standard layout as described in the tree below.
+The current release includes integration with merb-auth, but this should not yet be considered stable. A sample integration file is included below.
+
+merb_relaxdb expects your merb app to augment the standard layout as described in the following tree.
 couchdb.yml is mandatory. Reference data, sample data and views are optional.
-couchdb.yml.sample is supplied in this distribution. Copy and modify as necessary.
+merb-gen model my_model will create a sample couchdb.yml.
 
-To use merb_relaxdb, list @dependency &quot;merb_relaxdb&quot;@ in the dependency section of your_merb_app/config/init.rb, but not in the @Merb::BootLoader.after_app_loads@ block.
+To use merb_relaxdb, list @dependency &quot;merb_relaxdb&quot;, &quot;0.9.9&quot;@ in @config/dependencies.rb@ and @use_orm :relaxdb@ in @config/init.rb@
 
 For more details on using RelaxDB, see the &quot;RelaxDB wiki&quot;:http://github.com/paulcarey/relaxdb/wikis 
+&lt;pre&gt;
+&lt;code&gt;
 
   my_merb_app $ tree
   .
@@ -30,3 +34,46 @@ For more details on using RelaxDB, see the &quot;RelaxDB wiki&quot;:http://github.com/paul
   |-- public
   |-- scratch
   `-- spec
+  
+&lt;/code&gt;
+&lt;/pre
+
+h3. Sample merb/merb-auth/setup.rb
+
+&lt;pre&gt;
+&lt;code&gt;
+begin
+  Merb::Authentication.user_class = User 
+  
+  # Mixin the salted user mixin  
+  require 'merb-auth-more/mixins/salted_user'
+  require 'merb_relaxdb/rdb_salted_user'
+  
+  Merb::Authentication.user_class.class_eval{ include Merb::Authentication::Mixins::SaltedUser }
+      
+  # Setup the session serialization
+  class Merb::Authentication
+
+    def fetch_user(session_user_id)
+      RelaxDB.load(session_user_id) rescue nil
+    end
+
+    def store_user(user)
+      user.nil? ? user : user._id
+    end
+  end
+  
+rescue =&gt; e
+  Merb.logger.error &lt;&lt;-TEXT
+  
+    You need to setup some kind of user class with merb-auth.  
+    Merb::Authentication.user_class = User
+    
+    If you want to fully customize your authentication you should use merb-core directly.  
+    
+    See lib/authentication/setup.rb and strategies.rb to customize your setup
+
+    TEXT
+end
+&lt;/code&gt;
+&lt;/pre&gt;</diff>
      <filename>README.textile</filename>
    </modified>
    <modified>
      <diff>@@ -1,16 +1,17 @@
 require 'rubygems'
 require 'rake/gempackagetask'
+require 'merb-core/tasks/merb_rake_helper'
 
 PLUGIN = &quot;merb_relaxdb&quot;
-NAME = &quot;merb_relaxdb&quot;
-GEM_VERSION = &quot;0.1.0&quot;
+GEM_NAME = &quot;merb_relaxdb&quot;
+GEM_VERSION = &quot;0.9.9&quot;
 AUTHOR = &quot;Paul Carey&quot;
 EMAIL = &quot;paul.p.carey@gmail.com&quot;
 HOMEPAGE = &quot;http://github.com/paulcarey/merb_relaxdb/&quot;
 SUMMARY = &quot;Merb plugin that provides integration with CouchDB&quot;
 
 spec = Gem::Specification.new do |s|
-  s.name = NAME
+  s.name = GEM_NAME
   s.version = GEM_VERSION
   s.platform = Gem::Platform::RUBY
   s.has_rdoc = true
@@ -20,30 +21,36 @@ spec = Gem::Specification.new do |s|
   s.author = AUTHOR
   s.email = EMAIL
   s.homepage = HOMEPAGE
-  s.add_dependency('merb', '&gt;= 0.9.4')
+  s.add_dependency('merb', '&gt;= 0.9.9')
   
   # s.add_dependency('relaxdb', '&gt;= 0.1.0') # causes rake install to fail
   # s.add_dependency('paulcarey-relaxdb', '&gt;= 0.1.0') # allows rake install to succeed
   
   s.require_path = 'lib'
   s.autorequire = PLUGIN
-  s.files = %w(LICENSE README.textile Rakefile) + Dir.glob(&quot;{lib,spec}/**/*&quot;)
+  s.files = %w(LICENSE README.textile Rakefile Generators) + Dir.glob(&quot;{lib,spec}/**/*&quot;)
 end
 
 Rake::GemPackageTask.new(spec) do |pkg|
   pkg.gem_spec = spec
 end
 
-desc &quot;Install&quot;
+desc &quot;Install the gem&quot;
 task :install =&gt; [:package] do
-  sh %{sudo gem install --local pkg/#{NAME}-#{GEM_VERSION} --no-update-sources}
+  sh %{sudo gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION} --no-update-sources}
 end
+# task :install do
+#   Merb::RakeHelper.install(GEM_NAME, :version =&gt; GEM_VERSION, :local =&gt; true)
+# end
 
-namespace :jruby do
+desc &quot;Uninstall the gem&quot;
+task :uninstall do
+  Merb::RakeHelper.uninstall(GEM_NAME, :version =&gt; GEM_VERSION)
+end
 
-  desc &quot;Run :package and install the resulting .gem with jruby&quot;
-  task :install =&gt; :package do
-    sh %{#{SUDO} jruby -S gem install pkg/#{NAME}-#{Merb::VERSION}.gem --no-rdoc --no-ri}
+desc &quot;Create a gemspec file&quot;
+task :gemspec do
+  File.open(&quot;#{GEM_NAME}.gemspec&quot;, &quot;w&quot;) do |file|
+    file.puts spec.to_ruby
   end
-  
-end
\ No newline at end of file
+end</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-Merb::Generators::ModelGenerator.template :model_relaxdb, :orm =&gt; :relaxdb do
-  source(File.dirname(__FILE__), &quot;templates/model/app/models/%file_name%.rb&quot;)
-  destination(&quot;app/models&quot;, base_path, &quot;#{file_name}.rb&quot;)
+Merb::Generators::ModelGenerator.template :model_relaxdb, :orm =&gt; :relaxdb do |template|
+  template.source = File.dirname(__FILE__) / &quot;templates/model/app/models/%file_name%.rb&quot;
+  template.destination = &quot;app/models&quot; / base_path / &quot;#{file_name}.rb&quot;
 end</diff>
      <filename>lib/generators/model.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 # make sure we're running inside Merb
 if defined?(Merb::Plugins)
+  dependency &quot;relaxdb&quot;
 
   # Merb gives you a Merb::Plugins.config hash...feel free to put your stuff in your piece of it
   Merb::Plugins.config[:merb_relaxdb] = {
@@ -7,7 +8,6 @@ if defined?(Merb::Plugins)
   }
   
   Merb::BootLoader.before_app_loads do
-    require 'relaxdb'
   end
   
   Merb::BootLoader.after_app_loads do
@@ -17,8 +17,5 @@ if defined?(Merb::Plugins)
   end
   
   Merb::Plugins.add_rakefiles &quot;merb_relaxdb/merbtasks&quot;
-  
-  generators = File.join(File.dirname(__FILE__), 'generators')
-  Merb.add_generators generators / :model
-  
-end
\ No newline at end of file
+      
+end</diff>
      <filename>lib/merb_relaxdb.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,13 +1,14 @@
 Gem::Specification.new do |s|
   s.name = &quot;merb_relaxdb&quot;
-  s.version = &quot;0.1.0&quot;
-  s.date = &quot;2008-08-26&quot;
+  s.version = &quot;0.9.9&quot;
+  s.date = &quot;2008-10-17&quot;
   s.summary = &quot;Merb plugin that provides integration with CouchDB&quot;
   s.email = &quot;paul.p.carey@gmail.com&quot;
   s.homepage = &quot;http://github.com/paulcarey/merb_relaxdb/&quot;
   s.has_rdoc = false
   s.authors = [&quot;Paul Carey&quot;]
   s.files = [&quot;LICENSE&quot;,
+   &quot;Generators&quot;,
    &quot;README.textile&quot;,
    &quot;Rakefile&quot;,
    &quot;lib/generators&quot;,
@@ -21,12 +22,13 @@ Gem::Specification.new do |s|
    &quot;lib/merb_relaxdb/connection.rb&quot;,
    &quot;lib/merb_relaxdb/couchdb.yml.sample&quot;,
    &quot;lib/merb_relaxdb/merbtasks.rb&quot;,
+   &quot;lib/merb_relaxdb/rdb_salted_user.rb&quot;,
    &quot;lib/merb_relaxdb.rb&quot;,
    &quot;spec/merb_relaxdb_spec.rb&quot;,
    &quot;spec/spec_helper.rb&quot;]
   s.bindir = &quot;bin&quot;
   s.autorequire = &quot;merb_relaxdb&quot;
-  s.add_dependency &quot;merb&quot;, &quot;&gt;= 0.9.4&quot; # removed &quot;, runtime&quot; as was failing locally
+  s.add_dependency &quot;merb&quot;, &quot;&gt;= 0.9.9&quot; # removed &quot;, runtime&quot; as was failing locally
   s.require_paths = [&quot;lib&quot;]
   s.required_rubygems_version = &quot;&gt;= 0&quot;
 end
\ No newline at end of file</diff>
      <filename>merb_relaxdb.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aed8055a228e2af155792ebcf759e21f4d34c633</id>
    </parent>
  </parents>
  <author>
    <name>Paul Carey</name>
    <email>paul.p.carey@gmail.com</email>
  </author>
  <url>http://github.com/paulcarey/merb_relaxdb/commit/50c25e1aed77a37a9d224477c6c2099d06c8809d</url>
  <id>50c25e1aed77a37a9d224477c6c2099d06c8809d</id>
  <committed-date>2008-10-17T09:01:56-07:00</committed-date>
  <authored-date>2008-10-17T09:01:56-07:00</authored-date>
  <message>Made compatible with Merb 1.0 RC1 and added support for merb-auth</message>
  <tree>488e13d1c107cd17bcef2239a4e716d4ed9ce3e0</tree>
  <committer>
    <name>Paul Carey</name>
    <email>paul.p.carey@gmail.com</email>
  </committer>
</commit>
