1. 1510 tests, 4251 assertions

    0 errors, 0 failures on rails 2.3.4 !

    This means the master branch is nearly ready to go back into production. We still need to fix some obscure FastGetttext bugs with mongrel and make sure it all runs fine in case our 1510 tests missed something…

    While porting from rails 1.2.3 to 2.3.4 (!), we have not only made the application start, then work (700 failures before corrections), but we also started cleaning up the code.

    modules

    We moved all the content in ApplicationController and ApplicationHelper into around 15 modules to ease maintenance.

    testing

    We created TestCase classes to ease unit, controller and view testing.

    nested attributes

    We removed the dependency on method_missing in favor of a clearer interface using nested attributes and wrote some nice libraries on the way:

    • NestedAttributesAlias helps map alias like “v_title” when setting attributes to the equivalent {versions_attributes => {"title" => "hello"}} without using method missing.
    • parse_date_attribute to declare attributes in models that are datetimes and should be parsed using the visitor’s locale settings.

    better upload

    This has nothing to do with the transition. It just happens the code was written on the rails2 branch.

    diff & version view

    The diff view between two versions is a nice feature that is back alive:

    diff example

    click on the version numbers and hit the green box to view diff

    The version view button (eye) has also been fixed.

    what’s left

    We still have some work to do before our 1.0 release:

    • Authlogic should replace our homebrew authentication system
    • RubyLess should replace all pseudo ruby code in zafu

    Gaspard Bucher

    comments

    1. leave a comment