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 \ git://github.com/railsmonk/string_tidy.git
Sources
http://github.com/railsmonk/string_tidy/tree/master
There’s also some other stuff on my github page, check it out.
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 that reality.
When you understand this, you see that you are nothing,
and being nothing, you are everything.
That is all.
— Kalu Rinpoche
My plugin to handle YAML configuration files in Rails apps.
For most cases just YAML::load will work, but in my case I needed string interpolation, so I decided to make a little plugin out of that.
Here’s simple usage pattern:
Feel free to fork and do whatever you want with this.
Update:
Forgot the link to plugin itself: http://github.com/railsmonk/configuration-file-plugin
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
— Quote of the Day
life freezes without github
$ open -a MyFavouriteApp # opens mac application from Terminal