imedo / background

Running Ruby Blocks in the Background

This URL has Read+Write access

hvolkmer (author)
Fri Jul 04 14:38:21 -0700 2008
commit  3f489f50597cfbf5d807369da30a7f5b08e7d286
tree    bf8e32c40c89faa00c79f411c5c9bc31064174f9
parent  ff26279800a2cf3c5d39cd547d15af2426b8703f
name age message
file MIT-LICENSE Loading commit data...
file README Wed Jun 18 13:16:40 -0700 2008 first commit [tkadauke]
file Rakefile Wed Jun 18 13:16:40 -0700 2008 first commit [tkadauke]
file init.rb
file install.rb Wed Jun 18 13:16:40 -0700 2008 first commit [tkadauke]
directory lib/
directory tasks/ Wed Jun 18 13:16:40 -0700 2008 first commit [tkadauke]
directory test/
file uninstall.rb
README
=== Background

This Rails plugin allows you to execute code blocks in a background task with a very intuitive and easy syntax.
It is as easy as that:

   background do
     # do some time-consuming task
   end

Refer to the Kernel#background documentation for details.

=== Dependencies

There are no dependencies besides ActiveSupport, which is required by Rails anyways.

=== Credits

This plugin uses the proc_source.rb file by Florian Gro, found here:

  http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/147706?help-en

=== Installation

Just copy the background folder into vendor/plugins, and you're good to go.

Copyright (c) 2008 imedo GmbH, released under the MIT license