Archives for October, 2007

Morning Brew #85


Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails

Plain Text RSpec Stories on Rails.
Story Runner in Plain English.
In-browser editor for RSpec stories.
A Ruby on Rails OpenID Server.

Software

The 3 Rules of Self-Marketing.

Bash script to install Gems


I looked all over and couldn’t find a bash script which could check and if missing install a list of gems. I had to hack my own up:
GEMS=( `cat gems.txt` ) # gems.txt has one gem name per line

for gem in “${GEMS[@]}”; do
found=`gem list $gem | grep -i $gem`
if [ "$found" [...]

Morning Brew #84


Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
GUI edition

Shoes - a lightweight Ruby interface to Windows, Linux and OSX applications. Best for small utilities. (into one, two and three by Juxie)
Cheri::Swing - a full blow JRuby builder style interface to Java’s [...]

Morning Brew #83


Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails

Ruby 101: Naming Conventions.
Zero to Riding the Rails in Four Months.
Default Order Plugin - order_by :fields => ['last_name', 'first_name'], :mode => :desc

Ruby

Mailtrap - dummy SMTP server for testing your emails.
New netbeans update from [...]

it_only: running a single example in RSpec


Sometimes you want to focus on just one example in your RSpec file. I had to do this quite often in the last 3 days and I got tired of commenting out stuff back and forth. So, I give you “it_only” example.
module Spec
module DSL
module BehaviourEval
[...]

Morning Brew #82


Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Ruby

Changes in Ruby 1.9, Oct. 07 update.
SWX Ruby updates to Alpha 0.1.1, has new screencast.

Web Development

A Visual Explanation of SQL Joins.
Five resourced to learn about BDD.

Misc

How to Take Control of Your Day When You’re [...]

Morning Brew #81


Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails

Multiple Database Connections in Ruby on Rails.
Payment Processing in Rails.
Mocking/Stubbing partials and helper methods in RSpec view specs.
Getting started with Autotest - Continuous Testing.

Web Development

The resurrection of downloadable Web fonts.

Morning Brew #80


Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.

Rails

jMaki on Rails screen cast.
Rails 1.2.4: Maintenance release.
“How I Learned to Love Testing” presentation.
deepTest - running test in multiple threads for performance sake (via).

Ruby

Many Skinny Methods - readability vs. number of lines.
Removing elements with [...]

Installing Ruby Gems with native extensions in Ubuntu


I’ve recently started experimenting with using Ubuntu for my Ruby development. Some of the Gems like JSON and HPricot have extension compilation step which doesn’t work on a default Ubuntu installation.
Here are a few steps that you need to get it to work.

Open up Synaptic Package Manager from System > Preferences
Search for “ruby1.8-dev”, right click [...]