September 2008
3 posts
My StringTidy plugin
This is really tiny one.
About
Wraps Tidy gem into String for easier usage.
Allows you to clean up portions of HTML code in strings,
without any effort.
Requires Tidy gem and Tidy C lib (which is installed on Mac and most Unixes by default).
Defines String#tidy(options={})
Usage examples
Installation
gem install tidy
./script/plugin install \...
2 tags
No broken tests in git repos
Following code forbids commit to repository if tests don’t pass. Script for rspec, but should probably work with anything else - just replace rake spec with rake test.
We live in illusion and the appearance of things. There is a reality. We are...
– Kalu Rinpoche