September 2007 Archives

NovaRUG: BDD with RSpec

Yesterday evening, I gave a presentation on the macro level of Behavior Driven Development and the basics of RSpec to the Northern Virginia Ruby User’s Group. Sadly, either the group was either unhip to LOLCats or simply was not amused by my sense of humor. O, the humanity.

In any events, PDFs of the slides are linked below.

BDD with RSpec

Incidentally, here are some links to Heckle and rcov that are referenced within the presentation (and easily supported from RSpec).

Posted by evan on Sep 20, 2007

Building RMagick on OS X

I’d always heard that building RMagick was supposed to be just this side of Hell. However, some intrepid soul (I’m sorry, I lost the original post), listed several steps for building RMagick. I put these steps together into a single bash script that downloaded everything that I needed and built RMagick with only a few complaints and what seems to be a working final product. Just beware that the script is nothing fancy, i.e., it is hard-coded to what I believe are the current versions of the RMagick dependencies.

Follow the link for the script.

!/bin/bash

tar vzxf ghostscript-fonts-std-8.11.tar.gz sudo mv fonts/ /usr/local/share/ghostscript/fonts/

curl -O http://download.savannah.gnu.org/releases/freetype/freetype-2.1.10.tar.gz tar xzvf freetype-2.1.10.tar.gz cd freetype-2.1.10 ./configure –prefix=/usr/local make sudo make install cd ..

curl -O http://superb-west.dl.sourceforge.net/sourceforge/libpng/libpng-1.2.10.tar.bz2 bzip2 -dc libpng-1.2.10.tar.bz2 | tar xv cd libpng-1.2.10 ./configure –prefix=/usr/local make sudo make install cd ..

curl -O ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz tar xzvf jpegsrc.v6b.tar.gz cd jpeg-6b ln -s which glibtool ./libtool export MACOSXDEPLOYMENTTARGET=10.4 ./configure –enable-shared –prefix=/usr/local make sudo make install cd ..

curl -O ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz tar xzvf tiff-3.8.2.tar.gz cd tiff-3.8.2 ./configure –prefix=/usr/local make sudo make install cd ..

curl -O http://easynews.dl.sourceforge.net/sourceforge/imagemagick/ImageMagick-6.3.0-0.tar.gz tar xzvf ImageMagick-6.3.0-0.tar.gz cd ImageMagick-6.3.0 export CPPFLAGS=-I/usr/local/include export LDFLAGS=-L/usr/local/lib ./configure –prefix=/usr/local \ –disable-static –with-modules –without-perl \ –without-magick-plus-plus –with-quantum-depth=8 \ –with-gs-font-dir=/usr/local/share/ghostscript/fonts make sudo make install cd ..

Posted by evan on Sep 09, 2007