Elijah Miller has a great blog post on getting TextMate and RSpec to play nicely together. This is pretty useful for just running specific spec files. Also, did you know you can get TextMate to automatically recognize spec files by naming them with the .spec extension and RSpec will recognize it? Link
Receiving Email with Rails
by Jason on 24. Apr, 2009 in Ruby
This article originally appeared in the first issue of Rails Magazine. It is reproduced here not quite verbatim with a couple of corrections and additions. Photo from esparta on Flickr. Introduction Receiving email is a great way to add functionality to your application. This is one area, though, that is not very well documented with [...]
Mepisto to WordPress Converter
by Jason on 11. Jan, 2009 in Ruby
As a recent experiment, I tried converting a blog from Mephisto to WordPress. After some quick Googling, I found out that Jason Gill had already largely solved the problem. Unfortunately, his solution didn’t completely work for me because I didn’t want to launch Mephisto to do it and I have an aversion with that much [...]
Leopard LoadError: no such file to load — sqlite3
by Jason on 24. Nov, 2008 in Ruby
I’m not quite sure why this happened, but I kept getting this error with Leopard and sqlite3: LoadError: no such file to load — sqlite3 I tried to gem install and uninstall sqlite3-ruby a few times but that didn’t work out. However, installing from source did. Head on over to the Rubyforge page and download [...]
Backpack Ruby Script
by Jason on 22. Jul, 2008 in Ruby
Each week I edit the Rails Envy podcast. We use Backpack to work together on the stories each week. Each story is a note in the Backpack page: Today while I was preparing the post, I remembered that Backpack had an API. A quick google turned up the Backpack API page with a link to [...]
Hpricot and utf-8
by Jason on 18. Mar, 2008 in Ruby
I tried to use Hpricot to parse a page with special characters in a utf-8 encoding. The docs tell you to do this: require ‘rubygems’ require ‘open-uri’ require ‘hpricot’ doc = Hpricot(open("http://url/")) However, this won’t give you the output you want. The open method on Open-URI leaves the output in the default character set [...]



