imedo open source

ruby/rails open source releases

jsmock

without comments

jsmock.js is a Javascript extension to the famous unittest.js test framework that adds easy-to-use mocking support to any javascript object. It is largely inspired by the mocha framework for Ruby. See the github page on jsmock for more information.

Written by admin

April 17th, 2010 at 4:38 pm

Posted in Uncategorized

css_doc

without comments

css_doc is a Ruby library and command line tool to extract documentation from CSS files. The format of the documentation is very similar to JavaDoc. css_doc was inspired by the CSSDOC project, but it is NOT a complete implementation of the proposed standard, although it should be fairly compatible. As there is no documentation extractor [...]

Written by admin

April 17th, 2010 at 4:36 pm

Posted in Uncategorized

acts_as_ordered

without comments

Installation script/plugin install git://github.com/imedo/acts_as_ordered.git Usage In your model, simply call acts_as_ordered without any parameters: class Picture < ActiveRecord::Base acts_as_ordered end After that, you can access the logical next and previous element in a database result set that is specified by the :conditions and :order parameters. For example, if Picture p belongs to User u, you [...]

Written by admin

April 17th, 2010 at 4:33 pm

Posted in Uncategorized

Awesome E-mail

without comments

For the impatient Install the plugin: ‘script/plugin install git://github.com/imedo/awesome_email.git’ Introduction Have you ever tried sending HTML emails to your users? If you did, you know for sure that it sucks big time: none of the usual ActionView helpers want to work, URL routing is disabled, layouts don’t work, and last but not least, the CSS [...]

Written by admin

April 17th, 2010 at 4:20 pm

Posted in Uncategorized

Postload models

without comments

Postload Models Decrease the startup time of your Rails environment. With this plugin, observers will register in one of two places. If the class is already loaded then it will work as before, but when the class is not yet loaded, the observer will just register with a hash, whose key is the class name, [...]

Written by admin

April 17th, 2010 at 4:20 pm

Posted in Uncategorized

Dry plugin test helper

without comments

What is it? Imagine you have some fancy acts_as_something plugin and, of course, you want to test it. How do you do it? In the Rails app you are developing it for? This could lead to longer environment load times and this is hardly testing in isolation. Creating a rails app just for testing the [...]

Written by admin

April 17th, 2010 at 4:20 pm

Posted in Uncategorized

Test output shaper

without comments

Test Output Shaper The test output shaper is a module that shapes the output of rake test like this: AlbumTest: ….F.F… AlbumControllerTest: FF……FF… PictureTest: FFFFFFFFFF This offers you the possibility to stop the test suite as soon as you see failing tests. You know which test class fails right away and don’t have to wait [...]

Written by admin

April 17th, 2010 at 4:20 pm

Posted in Uncategorized

Background Plugin

without comments

Update: The old background plugin is deprecated in favor of the new background_lite plugin. This Rails plugin lets you execute arbitrary Ruby methods in a background process. In comparison to existing background processing frameworks, this plugin has many advantages: Responsibilities don’t get cut out of objects (most of the time, the code running in the [...]

Written by admin

April 17th, 2010 at 4:20 pm

Posted in Uncategorized

THC2 Unobtrusive Javascript Library

without comments

The idea behind unobstrusive Javascript is to decouple the Javascript from the HTML-Code, similar to decoupling style information from HTML. There are lots of immediate advantages in this approach: Optical aspects; it just looks nicer. Its DRYer. Using inline Javascript makes you repeat code all over the place. Easier to maintain validity. Using inline Javascript [...]

Written by admin

April 17th, 2010 at 4:20 pm

Posted in Uncategorized

THC2 Demo

without comments

Demo page for the THC2 Unobtrusive Javascript Library.

Written by admin

April 17th, 2010 at 4:15 pm

Posted in Uncategorized