Roman2K / rails-dev-boost

Speeds up Rails development mode

This URL has Read+Write access

name age message
file .gitignore Sun Nov 23 14:31:52 -0800 2008 cleaned up directory structure of test constant... [Roman2K]
file LICENSE Sat Jan 24 16:46:20 -0800 2009 unwrapped license paragraphs [Roman2K]
file README.mdown Sat Dec 13 15:48:14 -0800 2008 added instructions about how to enable RailsDev... [Roman2K]
file TODO.txt Sat Dec 27 11:33:35 -0800 2008 added a TODO list with the first task [Roman2K]
file init.rb Mon Nov 24 05:16:21 -0800 2008 Added the ability to enable this plugin in an e... [Roman2K]
directory lib/ Fri Feb 20 08:20:59 -0800 2009 Clone the array as it might be modified in the ... [thedarkone]
directory test/ Sun Feb 15 08:02:17 -0800 2009 added one more test while in the process of tra... [Roman2K]
README.mdown

RailsDevelopmentBoost

Alternative to Josh Goebel's rails_dev_mode_performance plugin.

Background

Why create a similar plugin? Because I couldn't get Josh Goebel's to work in my projects. His attempts to keep templates cached in a way that fails with recent versions of Rails. Also, removing the faulty chunk of code revealed another issue: it stats source files that may not exist, without trying to find their real path beforehand. That would be fixable is the code wasn't such a mess (no offense).

I needed better performance in development mode right away, so here is an alternative implementation.

Usage

script/plugin install git://github.com/Roman2K/rails-dev-boost

When the server is started in development mode, the special unloading mechanism takes over.

It can also be used in combination with RailsTestServing for even faster test runs by forcefully enabling it in test mode. To do so, add the following in config/environments/test.rb:

def config.soft_reload() true end if RailsTestServing.active?

Credits

Written by Roman Le Négrate (contact). Released under the MIT-license: see the LICENSE file.