<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>config/initializers/10-patches.rb</filename>
    </added>
    <added>
      <filename>config/initializers/20-mime_types.rb</filename>
    </added>
    <added>
      <filename>config/initializers/30-redmine.rb</filename>
    </added>
    <added>
      <filename>script/dbconsole</filename>
    </added>
    <added>
      <filename>script/performance/request</filename>
    </added>
    <added>
      <filename>script/process/inspector</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -52,7 +52,7 @@ class ProjectsController &lt; ApplicationController
     respond_to do |format|
       format.html { 
         @project_tree = projects.group_by {|p| p.parent || p}
-        @project_tree.each_key {|p| @project_tree[p] -= [p]} 
+        @project_tree.keys.each {|p| @project_tree[p] -= [p]} 
       }
       format.atom {
         render_feed(projects.sort_by(&amp;:created_on).reverse.slice(0, Setting.feeds_limit.to_i), </diff>
      <filename>app/controllers/projects_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,6 +22,10 @@ module RepositoriesHelper
     txt.to_s[0,8]
   end
   
+  def to_path_param(path)
+    path.to_s.split(%r{[/\\]}).select {|p| !p.blank?}
+  end
+  
   def to_utf8(str)
     return str if /\A[\r\n\t\x20-\x7e]*\Z/n.match(str) # for us-ascii
     @encodings ||= Setting.repositories_encodings.split(',').collect(&amp;:strip)</diff>
      <filename>app/helpers/repositories_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -42,8 +42,10 @@ class UserPreference &lt; ActiveRecord::Base
     if attribute_present? attr_name
       super
     else
-      self.others ||= {}
-      self.others.store attr_name, value
+      h = read_attribute(:others).dup || {}
+      h.update(attr_name =&gt; value)
+      write_attribute(:others, h)
+      value
     end
   end
   </diff>
      <filename>app/models/user_preference.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,14 +4,14 @@
 &lt;tr id=&quot;&lt;%= tr_id %&gt;&quot; class=&quot;&lt;%= params[:parent_id] %&gt; entry &lt;%= entry.kind %&gt;&quot;&gt;
 &lt;td style=&quot;padding-left: &lt;%=18 * depth%&gt;px;&quot; class=&quot;filename&quot;&gt;
 &lt;% if entry.is_dir? %&gt;
-&lt;span class=&quot;expander&quot; onclick=&quot;&lt;%=  remote_function :url =&gt; {:action =&gt; 'browse', :id =&gt; @project, :path =&gt; entry.path, :rev =&gt; @rev, :depth =&gt; (depth + 1), :parent_id =&gt; tr_id},
+&lt;span class=&quot;expander&quot; onclick=&quot;&lt;%=  remote_function :url =&gt; {:action =&gt; 'browse', :id =&gt; @project, :path =&gt; to_path_param(entry.path), :rev =&gt; @rev, :depth =&gt; (depth + 1), :parent_id =&gt; tr_id},
                   :update =&gt; { :success =&gt; tr_id },
                   :position =&gt; :after,
                   :success =&gt; &quot;scmEntryLoaded('#{tr_id}')&quot;,
                   :condition =&gt; &quot;scmEntryClick('#{tr_id}')&quot;%&gt;&quot;&gt;&amp;nbsp&lt;/span&gt;
 &lt;% end %&gt;
 &lt;%=  link_to h(entry.name),
-          {:action =&gt; (entry.is_dir? ? 'browse' : 'changes'), :id =&gt; @project, :path =&gt; entry.path, :rev =&gt; @rev},
+          {:action =&gt; (entry.is_dir? ? 'browse' : 'changes'), :id =&gt; @project, :path =&gt; to_path_param(entry.path), :rev =&gt; @rev},
           :class =&gt; (entry.is_dir? ? 'icon icon-folder' : 'icon icon-file')%&gt;
 &lt;/td&gt;
 &lt;td class=&quot;size&quot;&gt;&lt;%= (entry.size ? number_to_human_size(entry.size) : &quot;?&quot;) unless entry.is_dir? %&gt;&lt;/td&gt;</diff>
      <filename>app/views/repositories/_dir_list_content.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -10,10 +10,10 @@ dirs.each do |dir|
     link_path &lt;&lt; '/' unless link_path.empty?
     link_path &lt;&lt; &quot;#{dir}&quot; 
     %&gt;
-    / &lt;%= link_to h(dir), :action =&gt; 'browse', :id =&gt; @project, :path =&gt; link_path, :rev =&gt; @rev %&gt;
+    / &lt;%= link_to h(dir), :action =&gt; 'browse', :id =&gt; @project, :path =&gt; to_path_param(link_path), :rev =&gt; @rev %&gt;
 &lt;% end %&gt;
 &lt;% if filename %&gt;
-    / &lt;%= link_to h(filename), :action =&gt; 'changes', :id =&gt; @project, :path =&gt; &quot;#{link_path}/#{filename}&quot;, :rev =&gt; @rev %&gt;
+    / &lt;%= link_to h(filename), :action =&gt; 'changes', :id =&gt; @project, :path =&gt; to_path_param(&quot;#{link_path}/#{filename}&quot;), :rev =&gt; @rev %&gt;
 &lt;% end %&gt;
 
 &lt;%= &quot;@ #{revision}&quot; if revision %&gt;</diff>
      <filename>app/views/repositories/_navigation.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-&lt;% form_tag({:controller =&gt; 'repositories', :action =&gt; 'diff', :id =&gt; @project, :path =&gt; path}, :method =&gt; :get) do %&gt;
+&lt;% form_tag({:controller =&gt; 'repositories', :action =&gt; 'diff', :id =&gt; @project, :path =&gt; to_path_param(path)}, :method =&gt; :get) do %&gt;
 &lt;table class=&quot;list changesets&quot;&gt;
 &lt;thead&gt;&lt;tr&gt;
 &lt;th&gt;#&lt;/th&gt;</diff>
      <filename>app/views/repositories/_revisions.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -4,12 +4,12 @@
 
 &lt;p&gt;
 &lt;% if @repository.supports_cat? %&gt;
-    &lt;%= link_to l(:button_view), {:action =&gt; 'entry', :id =&gt; @project, :path =&gt; @path, :rev =&gt; @rev } %&gt; |
+    &lt;%= link_to l(:button_view), {:action =&gt; 'entry', :id =&gt; @project, :path =&gt; to_path_param(@path), :rev =&gt; @rev } %&gt; |
 &lt;% end %&gt;
 &lt;% if @repository.supports_annotate? %&gt;
-    &lt;%= link_to l(:button_annotate), {:action =&gt; 'annotate', :id =&gt; @project, :path =&gt; @path, :rev =&gt; @rev } %&gt; |
+    &lt;%= link_to l(:button_annotate), {:action =&gt; 'annotate', :id =&gt; @project, :path =&gt; to_path_param(@path), :rev =&gt; @rev } %&gt; |
 &lt;% end %&gt;
-&lt;%= link_to(l(:button_download), {:action =&gt; 'entry', :id =&gt; @project, :path =&gt; @path, :rev =&gt; @rev, :format =&gt; 'raw' }) if @repository.supports_cat? %&gt;
+&lt;%= link_to(l(:button_download), {:action =&gt; 'entry', :id =&gt; @project, :path =&gt; to_path_param(@path), :rev =&gt; @rev, :format =&gt; 'raw' }) if @repository.supports_cat? %&gt;
 &lt;%= &quot;(#{number_to_human_size(@entry.size)})&quot; if @entry.size %&gt;
 &lt;/p&gt;
 </diff>
      <filename>app/views/repositories/changes.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -55,7 +55,7 @@
 &lt;%= &quot;(#{change.revision})&quot; unless change.revision.blank?  %&gt;&lt;/td&gt;
 &lt;td align=&quot;right&quot;&gt;
 &lt;% if change.action == &quot;M&quot; %&gt;
-&lt;%= link_to l(:label_view_diff), :action =&gt; 'diff', :id =&gt; @project, :path =&gt; without_leading_slash(change.relative_path), :rev =&gt; @changeset.revision %&gt;
+&lt;%= link_to l(:label_view_diff), :action =&gt; 'diff', :id =&gt; @project, :path =&gt; to_path_param(change.relative_path), :rev =&gt; @changeset.revision %&gt;
 &lt;% end %&gt;
 &lt;/td&gt;
 &lt;/tr&gt;</diff>
      <filename>app/views/repositories/revision.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,19 +1,109 @@
-# Don't change this file. Configuration is done in config/environment.rb and config/environments/*.rb
+# Don't change this file!
+# Configure your app in config/environment.rb and config/environments/*.rb
 
-unless defined?(RAILS_ROOT)
-  root_path = File.join(File.dirname(__FILE__), '..')
-  unless RUBY_PLATFORM =~ /mswin32/
-    require 'pathname'
-    root_path = Pathname.new(root_path).cleanpath(true).to_s
+RAILS_ROOT = &quot;#{File.dirname(__FILE__)}/..&quot; unless defined?(RAILS_ROOT)
+
+module Rails
+  class &lt;&lt; self
+    def boot!
+      unless booted?
+        preinitialize
+        pick_boot.run
+      end
+    end
+
+    def booted?
+      defined? Rails::Initializer
+    end
+
+    def pick_boot
+      (vendor_rails? ? VendorBoot : GemBoot).new
+    end
+
+    def vendor_rails?
+      File.exist?(&quot;#{RAILS_ROOT}/vendor/rails&quot;)
+    end
+
+    def preinitialize
+      load(preinitializer_path) if File.exist?(preinitializer_path)
+    end
+
+    def preinitializer_path
+      &quot;#{RAILS_ROOT}/config/preinitializer.rb&quot;
+    end
   end
-  RAILS_ROOT = root_path
-end
 
-if File.directory?(&quot;#{RAILS_ROOT}/vendor/rails&quot;)
-  require &quot;#{RAILS_ROOT}/vendor/rails/railties/lib/initializer&quot;
-else
-  require 'rubygems'
-  require 'initializer'
+  class Boot
+    def run
+      load_initializer
+      Rails::Initializer.run(:set_load_path)
+    end
+  end
+
+  class VendorBoot &lt; Boot
+    def load_initializer
+      require &quot;#{RAILS_ROOT}/vendor/rails/railties/lib/initializer&quot;
+      Rails::Initializer.run(:install_gem_spec_stubs)
+    end
+  end
+
+  class GemBoot &lt; Boot
+    def load_initializer
+      self.class.load_rubygems
+      load_rails_gem
+      require 'initializer'
+    end
+
+    def load_rails_gem
+      if version = self.class.gem_version
+        gem 'rails', version
+      else
+        gem 'rails'
+      end
+    rescue Gem::LoadError =&gt; load_error
+      $stderr.puts %(Missing the Rails #{version} gem. Please `gem install -v=#{version} rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed.)
+      exit 1
+    end
+
+    class &lt;&lt; self
+      def rubygems_version
+        Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
+      end
+
+      def gem_version
+        if defined? RAILS_GEM_VERSION
+          RAILS_GEM_VERSION
+        elsif ENV.include?('RAILS_GEM_VERSION')
+          ENV['RAILS_GEM_VERSION']
+        else
+          parse_gem_version(read_environment_rb)
+        end
+      end
+
+      def load_rubygems
+        require 'rubygems'
+
+        unless rubygems_version &gt;= '0.9.4'
+          $stderr.puts %(Rails requires RubyGems &gt;= 0.9.4 (you have #{rubygems_version}). Please `gem update --system` and try again.)
+          exit 1
+        end
+
+      rescue LoadError
+        $stderr.puts %(Rails requires RubyGems &gt;= 0.9.4. Please install RubyGems and try again: http://rubygems.rubyforge.org)
+        exit 1
+      end
+
+      def parse_gem_version(text)
+        $1 if text =~ /^[^#]*RAILS_GEM_VERSION\s*=\s*[&quot;']([!~&lt;&gt;=]*\s*[\d.]+)[&quot;']/
+      end
+
+      private
+        def read_environment_rb
+          File.read(&quot;#{RAILS_ROOT}/config/environment.rb&quot;)
+        end
+    end
+  end
 end
 
-Rails::Initializer.run(:set_load_path)
+# All that for this:
+Rails.boot!</diff>
      <filename>config/boot.rb</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 # ENV['RAILS_ENV'] ||= 'production'
 
 # Specifies gem version of Rails to use when vendor/rails is not present
-RAILS_GEM_VERSION = '2.0.2' unless defined? RAILS_GEM_VERSION
+RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
 
 # Bootstrap the Rails environment, frameworks, and default configuration
 require File.join(File.dirname(__FILE__), 'boot')
@@ -71,32 +71,3 @@ Rails::Initializer.run do |config|
 	config.action_mailer.delivery_method = :smtp  
 
 end
-
-ActiveRecord::Errors.default_error_messages = {
-  :inclusion =&gt; &quot;activerecord_error_inclusion&quot;,
-  :exclusion =&gt; &quot;activerecord_error_exclusion&quot;,
-  :invalid =&gt; &quot;activerecord_error_invalid&quot;,
-  :confirmation =&gt; &quot;activerecord_error_confirmation&quot;,
-  :accepted  =&gt; &quot;activerecord_error_accepted&quot;,
-  :empty =&gt; &quot;activerecord_error_empty&quot;,
-  :blank =&gt; &quot;activerecord_error_blank&quot;,
-  :too_long =&gt; &quot;activerecord_error_too_long&quot;,
-  :too_short =&gt; &quot;activerecord_error_too_short&quot;,
-  :wrong_length =&gt; &quot;activerecord_error_wrong_length&quot;,
-  :taken =&gt; &quot;activerecord_error_taken&quot;,
-  :not_a_number =&gt; &quot;activerecord_error_not_a_number&quot;
-}
-
-ActionView::Base.field_error_proc = Proc.new{ |html_tag, instance| &quot;#{html_tag}&quot; }
-
-Mime::SET &lt;&lt; Mime::CSV unless Mime::SET.include?(Mime::CSV)
-Mime::Type.register 'application/pdf', :pdf
-
-GLoc.set_config :default_language =&gt; :en
-GLoc.clear_strings
-GLoc.set_kcode
-GLoc.load_localized_strings
-GLoc.set_config(:raise_string_not_found_errors =&gt; false)
-
-require 'redmine'
-</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class AddEnumerationsPosition &lt; ActiveRecord::Migration
   def self.up
     add_column(:enumerations, :position, :integer, :default =&gt; 1) unless Enumeration.column_names.include?('position')
-    Enumeration.find(:all).group_by(&amp;:opt).each_value  do |enums|
+    Enumeration.find(:all).group_by(&amp;:opt).each do |opt, enums|
       enums.each_with_index do |enum, i|
         # do not call model callbacks
         Enumeration.update_all &quot;position = #{i+1}&quot;, {:id =&gt; enum.id}</diff>
      <filename>db/migrate/072_add_enumerations_position.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 class AddCustomFieldsPosition &lt; ActiveRecord::Migration
   def self.up
     add_column(:custom_fields, :position, :integer, :default =&gt; 1)
-    CustomField.find(:all).group_by(&amp;:type).each_value  do |fields|
+    CustomField.find(:all).group_by(&amp;:type).each  do |t, fields|
       fields.each_with_index do |field, i|
         # do not call model callbacks
         CustomField.update_all &quot;position = #{i+1}&quot;, {:id =&gt; field.id}</diff>
      <filename>db/migrate/078_add_custom_fields_position.rb</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@ class TabularFormBuilder &lt; ActionView::Helpers::FormBuilder
   
   def initialize(object_name, object, template, options, proc)
     set_language_if_valid options.delete(:lang)
-    @object_name, @object, @template, @options, @proc = object_name, object, template, options, proc        
+    super
   end      
       
   (field_helpers - %w(radio_button hidden_field) + %w(date_select)).each do |selector|</diff>
      <filename>lib/tabular_form_builder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,7 @@ class ProjectsControllerTest &lt; Test::Unit::TestCase
     assert_template 'index'
     assert_not_nil assigns(:project_tree)
     # Root project as hash key
-    assert assigns(:project_tree).has_key?(Project.find(1))
+    assert assigns(:project_tree).keys.include?(Project.find(1))
     # Subproject in corresponding value
     assert assigns(:project_tree)[Project.find(1)].include?(Project.find(3))
   end</diff>
      <filename>test/functional/projects_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,8 +20,11 @@ require &quot;#{File.dirname(__FILE__)}/../test_helper&quot;
 class IssuesTest &lt; ActionController::IntegrationTest
   fixtures :projects, 
            :users,
+           :roles,
+           :members,
            :trackers,
            :projects_trackers,
+           :enabled_modules,
            :issue_statuses,
            :issues,
            :enumerations,</diff>
      <filename>test/integration/issues_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -65,20 +65,3 @@ class Test::Unit::TestCase
     Attachment.storage_path = &quot;#{RAILS_ROOT}/tmp/test/attachments&quot;
   end
 end
-
-
-# ActionController::TestUploadedFile bug
-# see http://dev.rubyonrails.org/ticket/4635
-class String
-  def original_filename
-    &quot;testfile.txt&quot;
-  end
-  
-  def content_type
-    &quot;text/plain&quot;
-  end
-  
-  def read
-    self.to_s
-  end
-end</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -26,7 +26,7 @@ class RoleTest &lt; Test::Unit::TestCase
     
     target = Role.new(:name =&gt; 'Target')
     assert target.save
-    assert target.workflows.copy(source)
+    target.workflows.copy(source)
     target.reload
     assert_equal 90, target.workflows.size
   end</diff>
      <filename>test/unit/role_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -26,7 +26,7 @@ class TrackerTest &lt; Test::Unit::TestCase
     
     target = Tracker.new(:name =&gt; 'Target')
     assert target.save
-    assert target.workflows.copy(source)
+    target.workflows.copy(source)
     target.reload
     assert_equal 89, target.workflows.size
   end</diff>
      <filename>test/unit/tracker_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,182 +1,182 @@
-require 'rubygems'
-
-Gem::manage_gems
-
-require 'rake/rdoctask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/testtask'
-require 'rake/contrib/rubyforgepublisher'
-
-PKG_NAME           = 'acts_as_versioned'
-PKG_VERSION        = '0.3.1'
-PKG_FILE_NAME      = &quot;#{PKG_NAME}-#{PKG_VERSION}&quot;
-PROD_HOST          = &quot;technoweenie@bidwell.textdrive.com&quot;
-RUBY_FORGE_PROJECT = 'ar-versioned'
-RUBY_FORGE_USER    = 'technoweenie'
-
-desc 'Default: run unit tests.'
-task :default =&gt; :test
-
-desc 'Test the calculations plugin.'
-Rake::TestTask.new(:test) do |t|
-  t.libs &lt;&lt; 'lib'
-  t.pattern = 'test/**/*_test.rb'
-  t.verbose = true
-end
-
-desc 'Generate documentation for the calculations plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
-  rdoc.rdoc_dir = 'rdoc'
-  rdoc.title    = &quot;#{PKG_NAME} -- Simple versioning with active record models&quot;
-  rdoc.options &lt;&lt; '--line-numbers --inline-source'
-  rdoc.rdoc_files.include('README', 'CHANGELOG', 'RUNNING_UNIT_TESTS')
-  rdoc.rdoc_files.include('lib/**/*.rb')
-end
-
-spec = Gem::Specification.new do |s|
-  s.name            = PKG_NAME
-  s.version         = PKG_VERSION
-  s.platform        = Gem::Platform::RUBY
-  s.summary         = &quot;Simple versioning with active record models&quot;
-  s.files           = FileList[&quot;{lib,test}/**/*&quot;].to_a + %w(README MIT-LICENSE CHANGELOG RUNNING_UNIT_TESTS)
-  s.files.delete      &quot;acts_as_versioned_plugin.sqlite.db&quot;
-  s.files.delete      &quot;acts_as_versioned_plugin.sqlite3.db&quot;
-  s.files.delete      &quot;test/debug.log&quot;
-  s.require_path    = 'lib'
-  s.autorequire     = 'acts_as_versioned'
-  s.has_rdoc        = true
-  s.test_files      = Dir['test/**/*_test.rb']
-  s.add_dependency    'activerecord', '&gt;= 1.10.1'
-  s.add_dependency    'activesupport', '&gt;= 1.1.1'
-  s.author          = &quot;Rick Olson&quot;
-  s.email           = &quot;technoweenie@gmail.com&quot;
-  s.homepage        = &quot;http://techno-weenie.net&quot;
-end
-
-Rake::GemPackageTask.new(spec) do |pkg|
-  pkg.need_tar = true
-end
-
-desc &quot;Publish the API documentation&quot;
-task :pdoc =&gt; [:rdoc] do
-  Rake::RubyForgePublisher.new(RUBY_FORGE_PROJECT, RUBY_FORGE_USER).upload
-end
-
-desc 'Publish the gem and API docs'
-task :publish =&gt; [:pdoc, :rubyforge_upload]
-
-desc &quot;Publish the release files to RubyForge.&quot;
-task :rubyforge_upload =&gt; :package do
-  files = %w(gem tgz).map { |ext| &quot;pkg/#{PKG_FILE_NAME}.#{ext}&quot; }
-
-  if RUBY_FORGE_PROJECT then
-    require 'net/http'
-    require 'open-uri'
-
-    project_uri = &quot;http://rubyforge.org/projects/#{RUBY_FORGE_PROJECT}/&quot;
-    project_data = open(project_uri) { |data| data.read }
-    group_id = project_data[/[?&amp;]group_id=(\d+)/, 1]
-    raise &quot;Couldn't get group id&quot; unless group_id
-
-    # This echos password to shell which is a bit sucky
-    if ENV[&quot;RUBY_FORGE_PASSWORD&quot;]
-      password = ENV[&quot;RUBY_FORGE_PASSWORD&quot;]
-    else
-      print &quot;#{RUBY_FORGE_USER}@rubyforge.org's password: &quot;
-      password = STDIN.gets.chomp
-    end
-
-    login_response = Net::HTTP.start(&quot;rubyforge.org&quot;, 80) do |http|
-      data = [
-        &quot;login=1&quot;,
-        &quot;form_loginname=#{RUBY_FORGE_USER}&quot;,
-        &quot;form_pw=#{password}&quot;
-      ].join(&quot;&amp;&quot;)
-      http.post(&quot;/account/login.php&quot;, data)
-    end
-
-    cookie = login_response[&quot;set-cookie&quot;]
-    raise &quot;Login failed&quot; unless cookie
-    headers = { &quot;Cookie&quot; =&gt; cookie }
-
-    release_uri = &quot;http://rubyforge.org/frs/admin/?group_id=#{group_id}&quot;
-    release_data = open(release_uri, headers) { |data| data.read }
-    package_id = release_data[/[?&amp;]package_id=(\d+)/, 1]
-    raise &quot;Couldn't get package id&quot; unless package_id
-
-    first_file = true
-    release_id = &quot;&quot;
-
-    files.each do |filename|
-      basename  = File.basename(filename)
-      file_ext  = File.extname(filename)
-      file_data = File.open(filename, &quot;rb&quot;) { |file| file.read }
-
-      puts &quot;Releasing #{basename}...&quot;
-
-      release_response = Net::HTTP.start(&quot;rubyforge.org&quot;, 80) do |http|
-        release_date = Time.now.strftime(&quot;%Y-%m-%d %H:%M&quot;)
-        type_map = {
-          &quot;.zip&quot;    =&gt; &quot;3000&quot;,
-          &quot;.tgz&quot;    =&gt; &quot;3110&quot;,
-          &quot;.gz&quot;     =&gt; &quot;3110&quot;,
-          &quot;.gem&quot;    =&gt; &quot;1400&quot;
-        }; type_map.default = &quot;9999&quot;
-        type = type_map[file_ext]
-        boundary = &quot;rubyqMY6QN9bp6e4kS21H4y0zxcvoor&quot;
-
-        query_hash = if first_file then
-          {
-            &quot;group_id&quot; =&gt; group_id,
-            &quot;package_id&quot; =&gt; package_id,
-            &quot;release_name&quot; =&gt; PKG_FILE_NAME,
-            &quot;release_date&quot; =&gt; release_date,
-            &quot;type_id&quot; =&gt; type,
-            &quot;processor_id&quot; =&gt; &quot;8000&quot;, # Any
-            &quot;release_notes&quot; =&gt; &quot;&quot;,
-            &quot;release_changes&quot; =&gt; &quot;&quot;,
-            &quot;preformatted&quot; =&gt; &quot;1&quot;,
-            &quot;submit&quot; =&gt; &quot;1&quot;
-          }
-        else
-          {
-            &quot;group_id&quot; =&gt; group_id,
-            &quot;release_id&quot; =&gt; release_id,
-            &quot;package_id&quot; =&gt; package_id,
-            &quot;step2&quot; =&gt; &quot;1&quot;,
-            &quot;type_id&quot; =&gt; type,
-            &quot;processor_id&quot; =&gt; &quot;8000&quot;, # Any
-            &quot;submit&quot; =&gt; &quot;Add This File&quot;
-          }
-        end
-
-        query = &quot;?&quot; + query_hash.map do |(name, value)|
-          [name, URI.encode(value)].join(&quot;=&quot;)
-        end.join(&quot;&amp;&quot;)
-
-        data = [
-          &quot;--&quot; + boundary,
-          &quot;Content-Disposition: form-data; name=\&quot;userfile\&quot;; filename=\&quot;#{basename}\&quot;&quot;,
-          &quot;Content-Type: application/octet-stream&quot;,
-          &quot;Content-Transfer-Encoding: binary&quot;,
-          &quot;&quot;, file_data, &quot;&quot;
-          ].join(&quot;\x0D\x0A&quot;)
-
-        release_headers = headers.merge(
-          &quot;Content-Type&quot; =&gt; &quot;multipart/form-data; boundary=#{boundary}&quot;
-        )
-
-        target = first_file ? &quot;/frs/admin/qrs.php&quot; : &quot;/frs/admin/editrelease.php&quot;
-        http.post(target + query, data, release_headers)
-      end
-
-      if first_file then
-        release_id = release_response.body[/release_id=(\d+)/, 1]
-        raise(&quot;Couldn't get release id&quot;) unless release_id
-      end
-
-      first_file = false
-    end
-  end
+require 'rubygems'
+
+Gem::manage_gems
+
+require 'rake/rdoctask'
+require 'rake/packagetask'
+require 'rake/gempackagetask'
+require 'rake/testtask'
+require 'rake/contrib/rubyforgepublisher'
+
+PKG_NAME           = 'acts_as_versioned'
+PKG_VERSION        = '0.3.1'
+PKG_FILE_NAME      = &quot;#{PKG_NAME}-#{PKG_VERSION}&quot;
+PROD_HOST          = &quot;technoweenie@bidwell.textdrive.com&quot;
+RUBY_FORGE_PROJECT = 'ar-versioned'
+RUBY_FORGE_USER    = 'technoweenie'
+
+desc 'Default: run unit tests.'
+task :default =&gt; :test
+
+desc 'Test the calculations plugin.'
+Rake::TestTask.new(:test) do |t|
+  t.libs &lt;&lt; 'lib'
+  t.pattern = 'test/**/*_test.rb'
+  t.verbose = true
+end
+
+desc 'Generate documentation for the calculations plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+  rdoc.rdoc_dir = 'rdoc'
+  rdoc.title    = &quot;#{PKG_NAME} -- Simple versioning with active record models&quot;
+  rdoc.options &lt;&lt; '--line-numbers --inline-source'
+  rdoc.rdoc_files.include('README', 'CHANGELOG', 'RUNNING_UNIT_TESTS')
+  rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+spec = Gem::Specification.new do |s|
+  s.name            = PKG_NAME
+  s.version         = PKG_VERSION
+  s.platform        = Gem::Platform::RUBY
+  s.summary         = &quot;Simple versioning with active record models&quot;
+  s.files           = FileList[&quot;{lib,test}/**/*&quot;].to_a + %w(README MIT-LICENSE CHANGELOG RUNNING_UNIT_TESTS)
+  s.files.delete      &quot;acts_as_versioned_plugin.sqlite.db&quot;
+  s.files.delete      &quot;acts_as_versioned_plugin.sqlite3.db&quot;
+  s.files.delete      &quot;test/debug.log&quot;
+  s.require_path    = 'lib'
+  s.autorequire     = 'acts_as_versioned'
+  s.has_rdoc        = true
+  s.test_files      = Dir['test/**/*_test.rb']
+  s.add_dependency    'activerecord', '&gt;= 1.10.1'
+  s.add_dependency    'activesupport', '&gt;= 1.1.1'
+  s.author          = &quot;Rick Olson&quot;
+  s.email           = &quot;technoweenie@gmail.com&quot;
+  s.homepage        = &quot;http://techno-weenie.net&quot;
+end
+
+Rake::GemPackageTask.new(spec) do |pkg|
+  pkg.need_tar = true
+end
+
+desc &quot;Publish the API documentation&quot;
+task :pdoc =&gt; [:rdoc] do
+  Rake::RubyForgePublisher.new(RUBY_FORGE_PROJECT, RUBY_FORGE_USER).upload
+end
+
+desc 'Publish the gem and API docs'
+task :publish =&gt; [:pdoc, :rubyforge_upload]
+
+desc &quot;Publish the release files to RubyForge.&quot;
+task :rubyforge_upload =&gt; :package do
+  files = %w(gem tgz).map { |ext| &quot;pkg/#{PKG_FILE_NAME}.#{ext}&quot; }
+
+  if RUBY_FORGE_PROJECT then
+    require 'net/http'
+    require 'open-uri'
+
+    project_uri = &quot;http://rubyforge.org/projects/#{RUBY_FORGE_PROJECT}/&quot;
+    project_data = open(project_uri) { |data| data.read }
+    group_id = project_data[/[?&amp;]group_id=(\d+)/, 1]
+    raise &quot;Couldn't get group id&quot; unless group_id
+
+    # This echos password to shell which is a bit sucky
+    if ENV[&quot;RUBY_FORGE_PASSWORD&quot;]
+      password = ENV[&quot;RUBY_FORGE_PASSWORD&quot;]
+    else
+      print &quot;#{RUBY_FORGE_USER}@rubyforge.org's password: &quot;
+      password = STDIN.gets.chomp
+    end
+
+    login_response = Net::HTTP.start(&quot;rubyforge.org&quot;, 80) do |http|
+      data = [
+        &quot;login=1&quot;,
+        &quot;form_loginname=#{RUBY_FORGE_USER}&quot;,
+        &quot;form_pw=#{password}&quot;
+      ].join(&quot;&amp;&quot;)
+      http.post(&quot;/account/login.php&quot;, data)
+    end
+
+    cookie = login_response[&quot;set-cookie&quot;]
+    raise &quot;Login failed&quot; unless cookie
+    headers = { &quot;Cookie&quot; =&gt; cookie }
+
+    release_uri = &quot;http://rubyforge.org/frs/admin/?group_id=#{group_id}&quot;
+    release_data = open(release_uri, headers) { |data| data.read }
+    package_id = release_data[/[?&amp;]package_id=(\d+)/, 1]
+    raise &quot;Couldn't get package id&quot; unless package_id
+
+    first_file = true
+    release_id = &quot;&quot;
+
+    files.each do |filename|
+      basename  = File.basename(filename)
+      file_ext  = File.extname(filename)
+      file_data = File.open(filename, &quot;rb&quot;) { |file| file.read }
+
+      puts &quot;Releasing #{basename}...&quot;
+
+      release_response = Net::HTTP.start(&quot;rubyforge.org&quot;, 80) do |http|
+        release_date = Time.now.strftime(&quot;%Y-%m-%d %H:%M&quot;)
+        type_map = {
+          &quot;.zip&quot;    =&gt; &quot;3000&quot;,
+          &quot;.tgz&quot;    =&gt; &quot;3110&quot;,
+          &quot;.gz&quot;     =&gt; &quot;3110&quot;,
+          &quot;.gem&quot;    =&gt; &quot;1400&quot;
+        }; type_map.default = &quot;9999&quot;
+        type = type_map[file_ext]
+        boundary = &quot;rubyqMY6QN9bp6e4kS21H4y0zxcvoor&quot;
+
+        query_hash = if first_file then
+          {
+            &quot;group_id&quot; =&gt; group_id,
+            &quot;package_id&quot; =&gt; package_id,
+            &quot;release_name&quot; =&gt; PKG_FILE_NAME,
+            &quot;release_date&quot; =&gt; release_date,
+            &quot;type_id&quot; =&gt; type,
+            &quot;processor_id&quot; =&gt; &quot;8000&quot;, # Any
+            &quot;release_notes&quot; =&gt; &quot;&quot;,
+            &quot;release_changes&quot; =&gt; &quot;&quot;,
+            &quot;preformatted&quot; =&gt; &quot;1&quot;,
+            &quot;submit&quot; =&gt; &quot;1&quot;
+          }
+        else
+          {
+            &quot;group_id&quot; =&gt; group_id,
+            &quot;release_id&quot; =&gt; release_id,
+            &quot;package_id&quot; =&gt; package_id,
+            &quot;step2&quot; =&gt; &quot;1&quot;,
+            &quot;type_id&quot; =&gt; type,
+            &quot;processor_id&quot; =&gt; &quot;8000&quot;, # Any
+            &quot;submit&quot; =&gt; &quot;Add This File&quot;
+          }
+        end
+
+        query = &quot;?&quot; + query_hash.map do |(name, value)|
+          [name, URI.encode(value)].join(&quot;=&quot;)
+        end.join(&quot;&amp;&quot;)
+
+        data = [
+          &quot;--&quot; + boundary,
+          &quot;Content-Disposition: form-data; name=\&quot;userfile\&quot;; filename=\&quot;#{basename}\&quot;&quot;,
+          &quot;Content-Type: application/octet-stream&quot;,
+          &quot;Content-Transfer-Encoding: binary&quot;,
+          &quot;&quot;, file_data, &quot;&quot;
+          ].join(&quot;\x0D\x0A&quot;)
+
+        release_headers = headers.merge(
+          &quot;Content-Type&quot; =&gt; &quot;multipart/form-data; boundary=#{boundary}&quot;
+        )
+
+        target = first_file ? &quot;/frs/admin/qrs.php&quot; : &quot;/frs/admin/editrelease.php&quot;
+        http.post(target + query, data, release_headers)
+      end
+
+      if first_file then
+        release_id = release_response.body[/release_id=(\d+)/, 1]
+        raise(&quot;Couldn't get release id&quot;) unless release_id
+      end
+
+      first_file = false
+    end
+  end
 end
\ No newline at end of file</diff>
      <filename>vendor/plugins/acts_as_versioned/Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -22,7 +22,7 @@
 module ActiveRecord #:nodoc:
   module Acts #:nodoc:
     # Specify this act if you want to save a copy of the row in a versioned table.  This assumes there is a 
-    # versioned table ready and that your model has a version field.  This works with optimisic locking if the lock_version
+    # versioned table ready and that your model has a version field.  This works with optimistic locking if the lock_version
     # column is present as well.
     #
     # The class for the versioned model is derived the first time it is seen. Therefore, if you change your database schema you have to restart
@@ -49,9 +49,24 @@ module ActiveRecord #:nodoc:
     #   page.revert_to(page.versions.last) # using versioned instance
     #   page.title         # =&gt; 'hello world'
     #
+    #   page.versions.earliest # efficient query to find the first version
+    #   page.versions.latest   # efficient query to find the most recently created version
+    #
+    #
+    # Simple Queries to page between versions
+    #
+    #   page.versions.before(version) 
+    #   page.versions.after(version)
+    #
+    # Access the previous/next versions from the versioned model itself
+    #
+    #   version = page.versions.latest
+    #   version.previous # go back one version
+    #   version.next     # go forward one version
+    #
     # See ActiveRecord::Acts::Versioned::ClassMethods#acts_as_versioned for configuration options
     module Versioned
-      CALLBACKS = [:set_new_version, :save_version_on_create, :save_version?, :clear_changed_attributes]
+      CALLBACKS = [:set_new_version, :save_version_on_create, :save_version?, :clear_altered_attributes]
       def self.included(base) # :nodoc:
         base.extend ClassMethods
       end
@@ -80,7 +95,7 @@ module ActiveRecord #:nodoc:
         #     end
         #
         # * &lt;tt&gt;if_changed&lt;/tt&gt; - Simple way of specifying attributes that are required to be changed before saving a model.  This takes
-        #   either a symbol or array of symbols.  WARNING - This will attempt to overwrite any attribute setters you may have.  
+        #   either a symbol or array of symbols.  WARNING - This will attempt to overwrite any attribute setters you may have.
         #   Use this instead if you want to write your own attribute setters (and ignore if_changed):
         # 
         #     def name=(new_name)
@@ -133,7 +148,7 @@ module ActiveRecord #:nodoc:
         #       # that create_table does
         #       Post.create_versioned_table
         #     end
-        #   
+        # 
         #     def self.down
         #       Post.drop_versioned_table
         #     end
@@ -157,11 +172,11 @@ module ActiveRecord #:nodoc:
           return if self.included_modules.include?(ActiveRecord::Acts::Versioned::ActMethods)
 
           send :include, ActiveRecord::Acts::Versioned::ActMethods
-          
+
           cattr_accessor :versioned_class_name, :versioned_foreign_key, :versioned_table_name, :versioned_inheritance_column, 
-            :version_column, :max_version_limit, :track_changed_attributes, :version_condition, :version_sequence_name, :non_versioned_columns,
+            :version_column, :max_version_limit, :track_altered_attributes, :version_condition, :version_sequence_name, :non_versioned_columns,
             :version_association_options
-            
+
           # legacy
           alias_method :non_versioned_fields,  :non_versioned_columns
           alias_method :non_versioned_fields=, :non_versioned_columns=
@@ -171,7 +186,7 @@ module ActiveRecord #:nodoc:
             alias_method :non_versioned_fields=, :non_versioned_columns=
           end
 
-          send :attr_accessor, :changed_attributes
+          send :attr_accessor, :altered_attributes
 
           self.versioned_class_name         = options[:class_name]  || &quot;Version&quot;
           self.versioned_foreign_key        = options[:foreign_key] || self.to_s.foreign_key
@@ -184,8 +199,7 @@ module ActiveRecord #:nodoc:
           self.non_versioned_columns        = [self.primary_key, inheritance_column, 'version', 'lock_version', versioned_inheritance_column]
           self.version_association_options  = {
                                                 :class_name  =&gt; &quot;#{self.to_s}::#{versioned_class_name}&quot;,
-                                                :foreign_key =&gt; &quot;#{versioned_foreign_key}&quot;,
-                                                :order       =&gt; 'version',
+                                                :foreign_key =&gt; versioned_foreign_key,
                                                 :dependent   =&gt; :delete_all
                                               }.merge(options[:association_options] || {})
 
@@ -194,20 +208,30 @@ module ActiveRecord #:nodoc:
             silence_warnings do
               self.const_set(extension_module_name, Module.new(&amp;extension))
             end
-            
+
             options[:extend] = self.const_get(extension_module_name)
           end
 
           class_eval do
-            has_many :versions, version_association_options
+            has_many :versions, version_association_options do
+              # finds earliest version of this record
+              def earliest
+                @earliest ||= find(:first, :order =&gt; 'version')
+              end
+
+              # find latest version of this record
+              def latest
+                @latest ||= find(:first, :order =&gt; 'version desc')
+              end
+            end
             before_save  :set_new_version
             after_create :save_version_on_create
             after_update :save_version
             after_save   :clear_old_versions
-            after_save   :clear_changed_attributes
-            
+            after_save   :clear_altered_attributes
+
             unless options[:if_changed].nil?
-              self.track_changed_attributes = true
+              self.track_altered_attributes = true
               options[:if_changed] = [options[:if_changed]] unless options[:if_changed].is_a?(Array)
               options[:if_changed].each do |attr_name|
                 define_method(&quot;#{attr_name}=&quot;) do |value|
@@ -215,15 +239,40 @@ module ActiveRecord #:nodoc:
                 end
               end
             end
-            
+
             include options[:extend] if options[:extend].is_a?(Module)
           end
 
           # create the dynamic versioned model
           const_set(versioned_class_name, Class.new(ActiveRecord::Base)).class_eval do
             def self.reloadable? ; false ; end
+            # find first version before the given version
+            def self.before(version)
+              find :first, :order =&gt; 'version desc',
+                :conditions =&gt; [&quot;#{original_class.versioned_foreign_key} = ? and version &lt; ?&quot;, version.send(original_class.versioned_foreign_key), version.version]
+            end
+
+            # find first version after the given version.
+            def self.after(version)
+              find :first, :order =&gt; 'version',
+                :conditions =&gt; [&quot;#{original_class.versioned_foreign_key} = ? and version &gt; ?&quot;, version.send(original_class.versioned_foreign_key), version.version]
+            end
+
+            def previous
+              self.class.before(self)
+            end
+
+            def next
+              self.class.after(self)
+            end
+
+            def versions_count
+              page.version
+            end
           end
-          
+
+          versioned_class.cattr_accessor :original_class
+          versioned_class.original_class = self
           versioned_class.set_table_name versioned_table_name
           versioned_class.belongs_to self.to_s.demodulize.underscore.to_sym, 
             :class_name  =&gt; &quot;::#{self.to_s}&quot;, 
@@ -232,17 +281,22 @@ module ActiveRecord #:nodoc:
           versioned_class.set_sequence_name version_sequence_name if version_sequence_name
         end
       end
-    
+
       module ActMethods
         def self.included(base) # :nodoc:
           base.extend ClassMethods
         end
-        
+
+        # Finds a specific version of this record
+        def find_version(version = nil)
+          self.class.find_version(id, version)
+        end
+
         # Saves a version of the model if applicable
         def save_version
           save_version_on_create if save_version?
         end
-        
+
         # Saves a version of the model in the versioned table.  This is called in the after_save callback by default
         def save_version_on_create
           rev = self.class.versioned_class.new
@@ -263,16 +317,8 @@ module ActiveRecord #:nodoc:
           end
         end
 
-        # Finds a specific version of this model.
-        def find_version(version)
-          return version if version.is_a?(self.class.versioned_class)
-          return nil if version.is_a?(ActiveRecord::Base)
-          find_versions(:conditions =&gt; ['version = ?', version], :limit =&gt; 1).first
-        end
-        
-        # Finds versions of this model.  Takes an options hash like &lt;tt&gt;find&lt;/tt&gt;
-        def find_versions(options = {})
-          versions.find(:all, options)
+        def versions_count
+          version
         end
 
         # Reverts a model to a given version.  Takes either a version number or an instance of the versioned model
@@ -280,14 +326,14 @@ module ActiveRecord #:nodoc:
           if version.is_a?(self.class.versioned_class)
             return false unless version.send(self.class.versioned_foreign_key) == self.id and !version.new_record?
           else
-            return false unless version = find_version(version)
+            return false unless version = versions.find_by_version(version)
           end
           self.clone_versioned_model(version, self)
           self.send(&quot;#{self.class.version_column}=&quot;, version.version)
           true
         end
 
-        # Reverts a model to a given version and saves the model.  
+        # Reverts a model to a given version and saves the model.
         # Takes either a version number or an instance of the versioned model
         def revert_to!(version)
           revert_to(version) ? save_without_revision : false
@@ -313,36 +359,36 @@ module ActiveRecord #:nodoc:
         def versioned_attributes
           self.attributes.keys.select { |k| !self.class.non_versioned_columns.include?(k) }
         end
-        
+
         # If called with no parameters, gets whether the current model has changed and needs to be versioned.
         # If called with a single parameter, gets whether the parameter has changed.
         def changed?(attr_name = nil)
           attr_name.nil? ?
-            (!self.class.track_changed_attributes || (changed_attributes &amp;&amp; changed_attributes.length &gt; 0)) :
-            (changed_attributes &amp;&amp; changed_attributes.include?(attr_name.to_s))
+            (!self.class.track_altered_attributes || (altered_attributes &amp;&amp; altered_attributes.length &gt; 0)) :
+            (altered_attributes &amp;&amp; altered_attributes.include?(attr_name.to_s))
         end
-        
+
         # keep old dirty? method
         alias_method :dirty?, :changed?
-        
+
         # Clones a model.  Used when saving a new version or reverting a model's version.
         def clone_versioned_model(orig_model, new_model)
           self.versioned_attributes.each do |key|
-            new_model.send(&quot;#{key}=&quot;, orig_model.attributes[key]) if orig_model.has_attribute?(key)
+            new_model.send(&quot;#{key}=&quot;, orig_model.send(key)) if orig_model.has_attribute?(key)
           end
-          
+
           if orig_model.is_a?(self.class.versioned_class)
             new_model[new_model.class.inheritance_column] = orig_model[self.class.versioned_inheritance_column]
           elsif new_model.is_a?(self.class.versioned_class)
             new_model[self.class.versioned_inheritance_column] = orig_model[orig_model.class.inheritance_column]
           end
         end
-        
+
         # Checks whether a new version shall be saved or not.  Calls &lt;tt&gt;version_condition_met?&lt;/tt&gt; and &lt;tt&gt;changed?&lt;/tt&gt;.
         def save_version?
           version_condition_met? &amp;&amp; changed?
         end
-        
+
         # Checks condition set in the :if option to check whether a revision should be created or not.  Override this for
         # custom version condition checking.
         def version_condition_met?
@@ -353,7 +399,7 @@ module ActiveRecord #:nodoc:
             version_condition.call(self)
           else
             version_condition
-          end          
+          end
         end
 
         # Executes the block with the versioning callbacks disabled.
@@ -378,43 +424,45 @@ module ActiveRecord #:nodoc:
 
         def empty_callback() end #:nodoc:
 
-        protected          
+        protected
           # sets the new version before saving, unless you're using optimistic locking.  In that case, let it take care of the version.
           def set_new_version
             self.send(&quot;#{self.class.version_column}=&quot;, self.next_version) if new_record? || (!locking_enabled? &amp;&amp; save_version?)
           end
-          
+
           # Gets the next available version for the current record, or 1 for a new record
           def next_version
             return 1 if new_record?
             (versions.calculate(:max, :version) || 0) + 1
           end
-          
+
           # clears current changed attributes.  Called after save.
-          def clear_changed_attributes
-            self.changed_attributes = []
+          def clear_altered_attributes
+            self.altered_attributes = []
           end
 
           def write_changed_attribute(attr_name, attr_value)
             # Convert to db type for comparison. Avoids failing Float&lt;=&gt;String comparisons.
             attr_value_for_db = self.class.columns_hash[attr_name.to_s].type_cast(attr_value)
-            (self.changed_attributes ||= []) &lt;&lt; attr_name.to_s unless self.changed?(attr_name) || self.send(attr_name) == attr_value_for_db
+            (self.altered_attributes ||= []) &lt;&lt; attr_name.to_s unless self.changed?(attr_name) || self.send(attr_name) == attr_value_for_db
             write_attribute(attr_name, attr_value_for_db)
           end
 
-        private
-          CALLBACKS.each do |attr_name| 
-            alias_method &quot;orig_#{attr_name}&quot;.to_sym, attr_name
-          end
-
         module ClassMethods
           # Finds a specific version of a specific row of this model
-          def find_version(id, version)
-            find_versions(id, 
-              :conditions =&gt; [&quot;#{versioned_foreign_key} = ? AND version = ?&quot;, id, version], 
-              :limit =&gt; 1).first
+          def find_version(id, version = nil)
+            return find(id) unless version
+
+            conditions = [&quot;#{versioned_foreign_key} = ? AND version = ?&quot;, id, version]
+            options = { :conditions =&gt; conditions, :limit =&gt; 1 }
+
+            if result = find_versions(id, options).first
+              result
+            else
+              raise RecordNotFound, &quot;Couldn't find #{name} with ID=#{id} and VERSION=#{version}&quot;
+            end
           end
-        
+
           # Finds versions of a specific model.  Takes an options hash like &lt;tt&gt;find&lt;/tt&gt;
           def find_versions(id, options = {})
             versioned_class.find :all, {
@@ -426,7 +474,7 @@ module ActiveRecord #:nodoc:
           def versioned_columns
             self.columns.select { |c| !non_versioned_columns.include?(c.name) }
           end
-    
+
           # Returns an instance of the dynamic versioned model
           def versioned_class
             const_get versioned_class_name
@@ -438,36 +486,40 @@ module ActiveRecord #:nodoc:
             if !self.content_columns.find { |c| %w(version lock_version).include? c.name }
               self.connection.add_column table_name, :version, :integer
             end
-            
+
             self.connection.create_table(versioned_table_name, create_table_options) do |t|
               t.column versioned_foreign_key, :integer
               t.column :version, :integer
             end
-            
+
             updated_col = nil
             self.versioned_columns.each do |col| 
               updated_col = col if !updated_col &amp;&amp; %(updated_at updated_on).include?(col.name)
               self.connection.add_column versioned_table_name, col.name, col.type, 
                 :limit =&gt; col.limit, 
-                :default =&gt; col.default
+                :default =&gt; col.default,
+                :scale =&gt; col.scale,
+                :precision =&gt; col.precision
             end
-        
+
             if type_col = self.columns_hash[inheritance_column]
               self.connection.add_column versioned_table_name, versioned_inheritance_column, type_col.type, 
                 :limit =&gt; type_col.limit, 
-                :default =&gt; type_col.default
+                :default =&gt; type_col.default,
+                :scale =&gt; type_col.scale,
+                :precision =&gt; type_col.precision
             end
-    
+
             if updated_col.nil?
               self.connection.add_column versioned_table_name, :updated_at, :timestamp
             end
           end
-          
+
           # Rake migration task to drop the versioned table
           def drop_versioned_table
             self.connection.drop_table versioned_table_name
           end
-          
+
           # Executes the block with the versioning callbacks disabled.
           #
           #   Foo.without_revision do
@@ -476,17 +528,18 @@ module ActiveRecord #:nodoc:
           #
           def without_revision(&amp;block)
             class_eval do 
-              CALLBACKS.each do |attr_name| 
+              CALLBACKS.each do |attr_name|
+                alias_method &quot;orig_#{attr_name}&quot;.to_sym, attr_name
                 alias_method attr_name, :empty_callback
               end
             end
-            result = block.call
+            block.call
+          ensure
             class_eval do 
               CALLBACKS.each do |attr_name|
                 alias_method attr_name, &quot;orig_#{attr_name}&quot;.to_sym
               end
             end
-            result
           end
 
           # Turns off optimistic locking for the duration of the block
@@ -501,7 +554,7 @@ module ActiveRecord #:nodoc:
             result = block.call
             ActiveRecord::Base.lock_optimistically = true if current
             result
-          end          
+          end
         end
       end
     end</diff>
      <filename>vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,12 +1,21 @@
+$:.unshift(File.dirname(__FILE__) + '/../../../rails/activesupport/lib')
+$:.unshift(File.dirname(__FILE__) + '/../../../rails/activerecord/lib')
 $:.unshift(File.dirname(__FILE__) + '/../lib')
-
 require 'test/unit'
-require File.expand_path(File.join(File.dirname(__FILE__), '../../../../config/environment.rb'))
-require 'active_record/fixtures'
+begin
+  require 'active_support'
+  require 'active_record'
+  require 'active_record/fixtures'
+rescue LoadError
+  require 'rubygems'
+  retry
+end
+require 'acts_as_versioned'
 
 config = YAML::load(IO.read(File.dirname(__FILE__) + '/database.yml'))
 ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + &quot;/debug.log&quot;)
-ActiveRecord::Base.establish_connection(config[ENV['DB'] || 'sqlite'])
+ActiveRecord::Base.configurations = {'test' =&gt; config[ENV['DB'] || 'sqlite3']}
+ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])
 
 load(File.dirname(__FILE__) + &quot;/schema.rb&quot;)
 
@@ -19,17 +28,9 @@ if ENV['DB'] == 'postgresql'
 end
 
 Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + &quot;/fixtures/&quot;
-$LOAD_PATH.unshift(Test::Unit::TestCase.fixture_path)
+$:.unshift(Test::Unit::TestCase.fixture_path)
 
 class Test::Unit::TestCase #:nodoc:
-  def create_fixtures(*table_names)
-    if block_given?
-      Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names) { yield }
-    else
-      Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
-    end
-  end
-
   # Turn off transactional fixtures if you're working with MyISAM tables in MySQL
   self.use_transactional_fixtures = true
   </diff>
      <filename>vendor/plugins/acts_as_versioned/test/abstract_unit.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 class Widget &lt; ActiveRecord::Base
   acts_as_versioned :sequence_name =&gt; 'widgets_seq', :association_options =&gt; {
-    :dependent =&gt; nil, :order =&gt; 'version desc'
+    :dependent =&gt; :nullify, :order =&gt; 'version desc'
   }
   non_versioned_columns &lt;&lt; 'foo'
 end
\ No newline at end of file</diff>
      <filename>vendor/plugins/acts_as_versioned/test/fixtures/widget.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,9 +9,14 @@ if ActiveRecord::Base.connection.supports_migrations?
   class MigrationTest &lt; Test::Unit::TestCase
     self.use_transactional_fixtures = false
     def teardown
-      ActiveRecord::Base.connection.initialize_schema_information
-      ActiveRecord::Base.connection.update &quot;UPDATE schema_info SET version = 0&quot;
-
+      if ActiveRecord::Base.connection.respond_to?(:initialize_schema_information)
+        ActiveRecord::Base.connection.initialize_schema_information
+        ActiveRecord::Base.connection.update &quot;UPDATE schema_info SET version = 0&quot;
+      else
+        ActiveRecord::Base.connection.initialize_schema_migrations_table
+        ActiveRecord::Base.connection.assume_migrated_upto_version(0)
+      end
+      
       Thing.connection.drop_table &quot;things&quot; rescue nil
       Thing.connection.drop_table &quot;thing_versions&quot; rescue nil
       Thing.reset_column_information
@@ -21,8 +26,17 @@ if ActiveRecord::Base.connection.supports_migrations?
       assert_raises(ActiveRecord::StatementInvalid) { Thing.create :title =&gt; 'blah blah' }
       # take 'er up
       ActiveRecord::Migrator.up(File.dirname(__FILE__) + '/fixtures/migrations/')
-      t = Thing.create :title =&gt; 'blah blah'
+      t = Thing.create :title =&gt; 'blah blah', :price =&gt; 123.45, :type =&gt; 'Thing'
       assert_equal 1, t.versions.size
+      
+      # check that the price column has remembered its value correctly
+      assert_equal t.price,  t.versions.first.price
+      assert_equal t.title,  t.versions.first.title
+      assert_equal t[:type], t.versions.first[:type]
+      
+      # make sure that the precision of the price column has been preserved
+      assert_equal 7, Thing::Version.columns.find{|c| c.name == &quot;price&quot;}.precision
+      assert_equal 2, Thing::Version.columns.find{|c| c.name == &quot;price&quot;}.scale
 
       # now lets take 'er back down
       ActiveRecord::Migrator.down(File.dirname(__FILE__) + '/fixtures/migrations/')</diff>
      <filename>vendor/plugins/acts_as_versioned/test/migration_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,9 +4,10 @@ require File.join(File.dirname(__FILE__), 'fixtures/widget')
 
 class VersionedTest &lt; Test::Unit::TestCase
   fixtures :pages, :page_versions, :locked_pages, :locked_pages_revisions, :authors, :landmarks, :landmark_versions
+  set_fixture_class :page_versions =&gt; Page::Version
 
   def test_saves_versioned_copy
-    p = Page.create :title =&gt; 'first title', :body =&gt; 'first body'
+    p = Page.create! :title =&gt; 'first title', :body =&gt; 'first body'
     assert !p.new_record?
     assert_equal 1, p.versions.size
     assert_equal 1, p.version
@@ -16,13 +17,13 @@ class VersionedTest &lt; Test::Unit::TestCase
   def test_saves_without_revision
     p = pages(:welcome)
     old_versions = p.versions.count
-    
+
     p.save_without_revision
-    
+
     p.without_revision do
       p.update_attributes :title =&gt; 'changed'
     end
-    
+
     assert_equal old_versions, p.versions.count
   end
 
@@ -30,7 +31,7 @@ class VersionedTest &lt; Test::Unit::TestCase
     p = pages(:welcome)
     assert_equal 24, p.version
     assert_equal 'Welcome to the weblog', p.title
-    
+
     assert p.revert_to!(p.versions.first.version), &quot;Couldn't revert to 23&quot;
     assert_equal 23, p.version
     assert_equal 'Welcome to the weblg', p.title
@@ -57,56 +58,56 @@ class VersionedTest &lt; Test::Unit::TestCase
     p = pages(:welcome)
     assert_equal 24, p.version
     assert_equal 'Welcome to the weblog', p.title
-    
+
     assert p.revert_to!(p.versions.first), &quot;Couldn't revert to 23&quot;
     assert_equal 23, p.version
     assert_equal 'Welcome to the weblg', p.title
   end
-  
+
   def test_rollback_fails_with_invalid_revision
     p = locked_pages(:welcome)
     assert !p.revert_to!(locked_pages(:thinking))
   end
 
   def test_saves_versioned_copy_with_options
-    p = LockedPage.create :title =&gt; 'first title'
+    p = LockedPage.create! :title =&gt; 'first title'
     assert !p.new_record?
     assert_equal 1, p.versions.size
     assert_instance_of LockedPage.versioned_class, p.versions.first
   end
-  
+
   def test_rollback_with_version_number_with_options
     p = locked_pages(:welcome)
     assert_equal 'Welcome to the weblog', p.title
     assert_equal 'LockedPage', p.versions.first.version_type
-    
+
     assert p.revert_to!(p.versions.first.version), &quot;Couldn't revert to 23&quot;
     assert_equal 'Welcome to the weblg', p.title
     assert_equal 'LockedPage', p.versions.first.version_type
   end
-  
+
   def test_rollback_with_version_class_with_options
     p = locked_pages(:welcome)
     assert_equal 'Welcome to the weblog', p.title
     assert_equal 'LockedPage', p.versions.first.version_type
-    
+
     assert p.revert_to!(p.versions.first), &quot;Couldn't revert to 1&quot;
     assert_equal 'Welcome to the weblg', p.title
     assert_equal 'LockedPage', p.versions.first.version_type
   end
-  
+
   def test_saves_versioned_copy_with_sti
-    p = SpecialLockedPage.create :title =&gt; 'first title'
+    p = SpecialLockedPage.create! :title =&gt; 'first title'
     assert !p.new_record?
     assert_equal 1, p.versions.size
     assert_instance_of LockedPage.versioned_class, p.versions.first
     assert_equal 'SpecialLockedPage', p.versions.first.version_type
   end
-  
+
   def test_rollback_with_version_number_with_sti
     p = locked_pages(:thinking)
     assert_equal 'So I was thinking', p.title
-    
+
     assert p.revert_to!(p.versions.first.version), &quot;Couldn't revert to 1&quot;
     assert_equal 'So I was thinking!!!', p.title
     assert_equal 'SpecialLockedPage', p.versions.first.version_type
@@ -115,11 +116,11 @@ class VersionedTest &lt; Test::Unit::TestCase
   def test_lock_version_works_with_versioning
     p = locked_pages(:thinking)
     p2 = LockedPage.find(p.id)
-    
+
     p.title = 'fresh title'
     p.save
     assert_equal 2, p.versions.size # limit!
-    
+
     assert_raises(ActiveRecord::StaleObjectError) do
       p2.title = 'stale title'
       p2.save
@@ -127,15 +128,15 @@ class VersionedTest &lt; Test::Unit::TestCase
   end
 
   def test_version_if_condition
-    p = Page.create :title =&gt; &quot;title&quot;
+    p = Page.create! :title =&gt; &quot;title&quot;
     assert_equal 1, p.version
-    
+
     Page.feeling_good = false
     p.save
     assert_equal 1, p.version
     Page.feeling_good = true
   end
-  
+
   def test_version_if_condition2
     # set new if condition
     Page.class_eval do
@@ -143,46 +144,46 @@ class VersionedTest &lt; Test::Unit::TestCase
       alias_method :old_feeling_good, :feeling_good?
       alias_method :feeling_good?, :new_feeling_good
     end
-    
-    p = Page.create :title =&gt; &quot;title&quot;
+
+    p = Page.create! :title =&gt; &quot;title&quot;
     assert_equal 1, p.version # version does not increment
     assert_equal 1, p.versions(true).size
-    
+
     p.update_attributes(:title =&gt; 'new title')
     assert_equal 1, p.version # version does not increment
     assert_equal 1, p.versions(true).size
-    
+
     p.update_attributes(:title =&gt; 'a title')
     assert_equal 2, p.version
     assert_equal 2, p.versions(true).size
-    
+
     # reset original if condition
     Page.class_eval { alias_method :feeling_good?, :old_feeling_good }
   end
-  
+
   def test_version_if_condition_with_block
     # set new if condition
     old_condition = Page.version_condition
     Page.version_condition = Proc.new { |page| page.title[0..0] == 'b' }
-    
-    p = Page.create :title =&gt; &quot;title&quot;
+
+    p = Page.create! :title =&gt; &quot;title&quot;
     assert_equal 1, p.version # version does not increment
     assert_equal 1, p.versions(true).size
-    
+
     p.update_attributes(:title =&gt; 'a title')
     assert_equal 1, p.version # version does not increment
     assert_equal 1, p.versions(true).size
-    
+
     p.update_attributes(:title =&gt; 'b title')
     assert_equal 2, p.version
     assert_equal 2, p.versions(true).size
-    
+
     # reset original if condition
     Page.version_condition = old_condition
   end
 
   def test_version_no_limit
-    p = Page.create :title =&gt; &quot;title&quot;, :body =&gt; 'first body'
+    p = Page.create! :title =&gt; &quot;title&quot;, :body =&gt; 'first body'
     p.save
     p.save
     5.times do |i|
@@ -191,7 +192,7 @@ class VersionedTest &lt; Test::Unit::TestCase
   end
 
   def test_version_max_limit
-    p = LockedPage.create :title =&gt; &quot;title&quot;
+    p = LockedPage.create! :title =&gt; &quot;title&quot;
     p.update_attributes(:title =&gt; &quot;title1&quot;)
     p.update_attributes(:title =&gt; &quot;title2&quot;)
     5.times do |i|
@@ -199,31 +200,29 @@ class VersionedTest &lt; Test::Unit::TestCase
       assert p.versions(true).size &lt;= 2, &quot;locked version can only store 2 versions&quot;
     end
   end
-  
-  def test_track_changed_attributes_default_value
-    assert !Page.track_changed_attributes
-    assert LockedPage.track_changed_attributes
-    assert SpecialLockedPage.track_changed_attributes
+
+  def test_track_altered_attributes_default_value
+    assert !Page.track_altered_attributes
+    assert LockedPage.track_altered_attributes
+    assert SpecialLockedPage.track_altered_attributes
   end
-  
+
   def test_version_order
     assert_equal 23, pages(:welcome).versions.first.version
     assert_equal 24, pages(:welcome).versions.last.version
-    assert_equal 23, pages(:welcome).find_versions.first.version
-    assert_equal 24, pages(:welcome).find_versions.last.version
   end
-  
-  def test_track_changed_attributes    
-    p = LockedPage.create :title =&gt; &quot;title&quot;
+
+  def test_track_altered_attributes
+    p = LockedPage.create! :title =&gt; &quot;title&quot;
     assert_equal 1, p.lock_version
     assert_equal 1, p.versions(true).size
-    
+
     p.title = 'title'
     assert !p.save_version?
     p.save
     assert_equal 2, p.lock_version # still increments version because of optimistic locking
     assert_equal 1, p.versions(true).size
-    
+
     p.title = 'updated title'
     assert p.save_version?
     p.save
@@ -236,27 +235,38 @@ class VersionedTest &lt; Test::Unit::TestCase
     assert_equal 4, p.lock_version
     assert_equal 2, p.versions(true).size # version 1 deleted
   end
-    
+
   def assert_page_title(p, i, version_field = :version)
     p.title = &quot;title#{i}&quot;
     p.save
     assert_equal &quot;title#{i}&quot;, p.title
     assert_equal (i+4), p.send(version_field)
   end
-  
+
   def test_find_versions
     assert_equal 2, locked_pages(:welcome).versions.size
-    assert_equal 1, locked_pages(:welcome).find_versions(:conditions =&gt; ['title LIKE ?', '%weblog%']).length
-    assert_equal 2, locked_pages(:welcome).find_versions(:conditions =&gt; ['title LIKE ?', '%web%']).length
-    assert_equal 0, locked_pages(:thinking).find_versions(:conditions =&gt; ['title LIKE ?', '%web%']).length
-    assert_equal 2, locked_pages(:welcome).find_versions.length
+    assert_equal 1, locked_pages(:welcome).versions.find(:all, :conditions =&gt; ['title LIKE ?', '%weblog%']).length
+    assert_equal 2, locked_pages(:welcome).versions.find(:all, :conditions =&gt; ['title LIKE ?', '%web%']).length
+    assert_equal 0, locked_pages(:thinking).versions.find(:all, :conditions =&gt; ['title LIKE ?', '%web%']).length
+    assert_equal 2, locked_pages(:welcome).versions.length
+  end
+
+  def test_find_version
+    assert_equal page_versions(:welcome_1), Page.find_version(pages(:welcome).id, 23)
+    assert_equal page_versions(:welcome_2), Page.find_version(pages(:welcome).id, 24)
+    assert_equal pages(:welcome), Page.find_version(pages(:welcome).id)
+
+    assert_equal page_versions(:welcome_1), pages(:welcome).find_version(23)
+    assert_equal page_versions(:welcome_2), pages(:welcome).find_version(24)
+    assert_equal pages(:welcome), pages(:welcome).find_version
+
+    assert_raise(ActiveRecord::RecordNotFound) { Page.find_version(pages(:welcome).id, 1) }
+    assert_raise(ActiveRecord::RecordNotFound) { Page.find_version(0, 23) }
   end
-  
+
   def test_with_sequence
     assert_equal 'widgets_seq', Widget.versioned_class.sequence_name
-    Widget.create :name =&gt; 'new widget'
-    Widget.create :name =&gt; 'new widget'
-    Widget.create :name =&gt; 'new widget'
+    3.times { Widget.create! :name =&gt; 'new widget' }
     assert_equal 3, Widget.count
     assert_equal 3, Widget.versioned_class.count
   end
@@ -268,26 +278,26 @@ class VersionedTest &lt; Test::Unit::TestCase
   def test_has_many_through_with_custom_association
     assert_equal [authors(:caged), authors(:mly)], pages(:welcome).revisors
   end
-  
+
   def test_referential_integrity
     pages(:welcome).destroy
     assert_equal 0, Page.count
     assert_equal 0, Page::Version.count
   end
-  
+
   def test_association_options
     association = Page.reflect_on_association(:versions)
     options = association.options
     assert_equal :delete_all, options[:dependent]
     assert_equal 'version', options[:order]
-    
+
     association = Widget.reflect_on_association(:versions)
     options = association.options
-    assert_nil options[:dependent]
+    assert_equal :nullify, options[:dependent]
     assert_equal 'version desc', options[:order]
     assert_equal 'widget_id', options[:foreign_key]
-    
-    widget = Widget.create :name =&gt; 'new widget'
+
+    widget = Widget.create! :name =&gt; 'new widget'
     assert_equal 1, Widget.count
     assert_equal 1, Widget.versioned_class.count
     widget.destroy
@@ -300,14 +310,38 @@ class VersionedTest &lt; Test::Unit::TestCase
     page_version = page.versions.last
     assert_equal page, page_version.page
   end
-  
-  def test_unchanged_attributes
-    landmarks(:washington).attributes = landmarks(:washington).attributes
+
+  def test_unaltered_attributes
+    landmarks(:washington).attributes = landmarks(:washington).attributes.except(&quot;id&quot;)
     assert !landmarks(:washington).changed?
   end
-  
+
   def test_unchanged_string_attributes
-    landmarks(:washington).attributes = landmarks(:washington).attributes.inject({}) { |params, (key, value)| params.update key =&gt; value.to_s }
+    landmarks(:washington).attributes = landmarks(:washington).attributes.except(&quot;id&quot;).inject({}) { |params, (key, value)| params.update(key =&gt; value.to_s) }
     assert !landmarks(:washington).changed?
   end
-end
+
+  def test_should_find_earliest_version
+    assert_equal page_versions(:welcome_1), pages(:welcome).versions.earliest
+  end
+
+  def test_should_find_latest_version
+    assert_equal page_versions(:welcome_2), pages(:welcome).versions.latest
+  end
+
+  def test_should_find_previous_version
+    assert_equal page_versions(:welcome_1), page_versions(:welcome_2).previous
+    assert_equal page_versions(:welcome_1), pages(:welcome).versions.before(page_versions(:welcome_2))
+  end
+
+  def test_should_find_next_version
+    assert_equal page_versions(:welcome_2), page_versions(:welcome_1).next
+    assert_equal page_versions(:welcome_2), pages(:welcome).versions.after(page_versions(:welcome_1))
+  end
+
+  def test_should_find_version_count
+    assert_equal 24, pages(:welcome).versions_count
+    assert_equal 24, page_versions(:welcome_1).versions_count
+    assert_equal 24, page_versions(:welcome_2).versions_count
+  end
+end
\ No newline at end of file</diff>
      <filename>vendor/plugins/acts_as_versioned/test/versioned_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,9 @@
 require 'rfpdf'
 
-ActionView::Base::register_template_handler 'rfpdf', RFPDF::View
\ No newline at end of file
+begin
+  ActionView::Template::register_template_handler 'rfpdf', RFPDF::View
+rescue NameError
+  # Rails &lt; 2.1
+  RFPDF::View.backward_compatibility_mode = true
+  ActionView::Base::register_template_handler 'rfpdf', RFPDF::View
+end</diff>
      <filename>vendor/plugins/rfpdf/init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -30,6 +30,8 @@
 module RFPDF
   
   class View
+    @@backward_compatibility_mode = false
+    cattr_accessor :backward_compatibility_mode
     
     def initialize(action_view)
       @action_view = action_view
@@ -45,6 +47,14 @@ module RFPDF
         :temp_dir =&gt; &quot;#{File.expand_path(RAILS_ROOT)}/tmp&quot;
       }.merge(@action_view.controller.instance_eval{ @options_for_rfpdf } || {}).with_indifferent_access
     end
+    
+    def self.compilable?
+      false
+    end
+
+    def compilable?
+      self.class.compilable?
+    end
 
     def render(template, local_assigns = {})
 			@pdf_name = &quot;Default.pdf&quot; if @pdf_name.nil?
@@ -66,7 +76,7 @@ module RFPDF
 			  local_assigns.each do |key,val|
 		  		class &lt;&lt; self; self; end.send(:define_method,key){ val }
 				end
-        ERB.new(template).result(binding)
+        ERB.new(@@backward_compatibility_mode == true ? template : template.source).result(binding) 
       end
     end
 </diff>
      <filename>vendor/plugins/rfpdf/lib/rfpdf/view.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>22558f77094dce4d489dac410abd7b74e48cdcb0</id>
    </parent>
  </parents>
  <author>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </author>
  <url>http://github.com/edavis10/redmine/commit/7cdd88a6ce3632c801223b33e5ccc2b9fc13651e</url>
  <id>7cdd88a6ce3632c801223b33e5ccc2b9fc13651e</id>
  <committed-date>2008-07-04T10:58:14-07:00</committed-date>
  <authored-date>2008-07-04T10:58:14-07:00</authored-date>
  <message>Merged Rails 2.1 compatibility branch.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1623 e93f8b46-1217-0410-a6f0-8f06a7374b81</message>
  <tree>a270478d7d7626ac9970d69e32cac6c6807e6cf4</tree>
  <committer>
    <name>Jean-Philippe Lang</name>
    <email>jp_lang@yahoo.fr</email>
  </committer>
</commit>
