Changeset 1615

Show
Ignore:
Timestamp:
01/06/08 10:03:27 (4 months ago)
Author:
neuro
Message:

fixes migration version and adds a ugly workaround to rails 2.0.2 update_all bug with sqlite and pgsql

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/controllers/admin/sidebar_controller.rb

    r1251 r1615  
    4747      position = 0 
    4848      params[:configure] ||= { } 
    49       this_blog.sidebars.update_all('active_position = null') 
     49      # Crappy workaround to rails update_all bug with PgSQL / SQLite 
     50#      this_blog.sidebars.update_all('active_position = null') 
     51      ActiveRecord::Base.connection.execute("update sidebars set active_position=null where blog_id = #{this_blog.id}") 
    5052      flash[:sidebars].each do |id| 
    5153        sidebar = Sidebar.find(id) 
  • trunk/config/environments/development.rb

    r1609 r1615  
    99# Show full error reports and disable caching 
    1010config.action_controller.consider_all_requests_local = true 
    11 config.action_controller.perform_caching             = tru
     11config.action_controller.perform_caching             = fals
    1212 
    1313# Don't care if the mailer can't send 
  • trunk/db/schema_version

    r1240 r1615  
    1 53 
     162 
  • trunk/lib/tasks/release.rake

    r1611 r1615  
    22require 'rake/contrib/rubyforgepublisher' 
    33 
    4 PKG_VERSION = "5.0.1
     4PKG_VERSION = "5.0.2
    55PKG_NAME = "typo" 
    66PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}" 
     
    3232   
    3333  s.add_dependency("rails", ">= 2.0.2") 
    34   s.add_dependency("mongrel", ">= 1.1.1") 
     34  s.add_dependency("mongrel", ">= 1.1.3") 
    3535  s.add_dependency("mongrel_cluster", ">= 0.2.0") 
    3636  s.add_dependency("sqlite3-ruby", ">= 1.1.0") 
     
    4040  s.add_dependency("flexmock", ">= 0.8.0")   
    4141  s.add_dependency("rspec", ">= 1.1.1") 
     42  s.add_dependency("ruby-debug", ">= 0.10.0") 
    4243end 
    4344 
  • trunk/lib/typo_version.rb

    r1609 r1615  
    1 TYPO_VERSION = '5.0.1
     1TYPO_VERSION = '5.0.2