Ruby Archive

RIO - wrong number of arguments on rmtree, mkpath etc


It’s nice to do some Ruby once in a while. Lately I’ve been involved in a Silverlight project and haven’t touched Ruby in 2 months (hence the lack of activity on my Ruby blog). However, I’m making a build script in Ruby.
I have run into a weird exception when using my favorite IO gem RIO [...]

Morning Brew #89


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

Rails 2.0: Release Candidate 2
Attachment_fu updated!
Installing Mingle with Capistrano/Deprec
RSpec and Inline RJS
Master/Slave Databases with Ruby on Rails

Ruby

Measuring your test coverage with Heckle and RCov
How To Start Playing With [...]

Morning Brew #88


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

Fixtures in Rails 2.0 - new Railscast.
Plugin: create better urls with has_wfid.
Sexy Chart - The video.
Create Builder Applications Using Cheri.

Ruby

Optimising Symbol#to_proc.
Ramaze: Another Light Ruby Web Framework, But With MVC!.

Morning Brew #87


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

Super fast IP to lat/lng in Rails (part 2)
Generate Named Routes - new Railscast.
iPhone subdomains with Rails.

Ruby

Backing up MySQL and Subversion with Ruby.
Getting Started with the wxRuby GUI Toolkit.
NetBeans Ruby IDE 6.0 Beta 2 [...]

Morning Brew #86


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

Avoid exception_notification message floods.
Rails Edge - making fixtures easier.
Showing off data on a timeline - using the amazing Timeline DHTML component in Rails.
Simplify your ActionMailer configuration with YAML.

Web Development

Ruby in Rails in Leopard.
Evidence Based [...]

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
[...]