Tag Archives: Ruby

Testing Your Apps.

I’ve been really putting off using Rspec. Unfortunately ( and like the vast majority or programmers out there) I have not been writing enough tests for my apps. When I did write them, they were using Rail’s built in Test::Unit library, which, many will say… sucks. Plus, honestly, they were half assed. So, [...]
Posted in Rspec, Ruby, Ruby On Rails | Also tagged , , | Leave a comment

rDigg – Ruby on Rails Digg API plugin

I’ve sort of finished up rDigg today. It’s to the point I’m comfortable letting other people start to play with it anyways. As you’d expect, rDigg is a Digg API wrapper in the form of a Ruby on Rails plugin. It still needs some work, but works pretty well. For example: #create new Rdigg object digg [...]
Posted in Programming, Ruby, Ruby On Rails | Also tagged , , | Leave a comment

Simple Meta Programming in Ruby

Metaprogramming.  What a lovely buzz word.  I guess I’ve heard it enough and knew what the short definition is. Metaprogramming is code that writes code.  I think it is one of those things I just never thought about, even though I had used concepts and even written some before without realizing it until recently. Here [...]
Posted in Programming, Ruby, Ruby On Rails | Also tagged , | 2 Comments

Super Simple Ruby Web Scraper

Alrighty folks. Quick walk though for scraping remote web data with Ruby. This is how I did it for my little web scraper I wrote on Saturday.. DISCLAIMER: Web Scraping is kind of a gray area.. don’t steal things that are copywritten and don’t be a jerk. Give credit where credit is due.. First [...]
Posted in Programming, Ruby On Rails | Also tagged , , , , , | Leave a comment

Integrating Google Maps in Your Rails 2.0 App.

NOTE:  THIS IS AN OLD POST AND THE INSTRUCTIONS MAY BE OUTDATED. YMMV In my first real post in a year, I thought I’d share some Ruby stuff I’ve recently done – Integrating your Rails 2.0 app with Google Maps. So, here is what we are aiming to accomplish: You are going to provide an address, say [...]
Posted in Google, Programming, Ruby On Rails | Also tagged , , | 31 Comments