Small useful classes that don't deserve a gem, but that I reuse in most of my projects.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.rdoc
business_day.rb
coquille.rb
database_admin.rb
downcase_email.rb
fluent_factory.rb
foreign_key.rb
form_builder.rb
geo_square_area.rb
http.rb
isolated_blocks.rb
random_string.rb
redifine_const.rb
retry_on.rb
subscribable.rb

README.rdoc

# Roolbox

Bunch of useful Ruby code that I reuse in most of my Rails and Ruby projects.

I group them in one repository because each file is too small to have its own gem.

Feel free to pick those you need.

## List of files

coquille.rb runs shell commands and grab results from stderr and stdout.
database_admin.rb lists and deletes all tables.
fluent_factory.rb overrides new to instanciate the right sub class.
form_builder.rb appends error message to labels forms.
foreign_key.rb Helper methods to add foreign key constraints.
http.rb Helper method to fetch an URL and follow redirections.
isolated_blocks.rb runs a collection of blocks in an isolated way.
random_string.rb generates a random string.
redifine_const.rb Remove and define a new value for a given constant.
retry_on.rb runs a block and retry if the specific exception has been raises.