Skip to content

{ Category Archives } ruby

A modest proposal towards reusable step definitions for Cucumber

While the title is a nod to the original modest proposal this is completely serious. I just liked the title. Pez thought I should be more clear.

Typically, cucumber step definitions look like this:

When /^I select the recipient named “([^"]*)”$/ do |recipientname| within_jqm_page do page.find(’a', :text => recipientname).click end end

Step definitions implemented like this end [...]

Tagged , ,

Patterns for Bundler and rvm

A couple of long standing problems in the world of Ruby have been dealing with all the gems that are so easy to toss into your project and the differences between Ruby implementations. They do differ: between 1.8.6 and 1.8.7 standard library APIs changed. Slow clap.

In the world of adults the solution to these problems [...]

Tagged

Find Mutual Follows, Redux

Previously, I’ve mentioned that I’ve written a script that will show a Twitter user who they and another Twitter user both follow.

Well, a script isn’t much use to me or anyone else: you can’t run a script on an iPhone. So like all software wants to be, this script is now a simple little web [...]

Finding Mutual Follows

When you’re a Twitter’er you will often be in a situation where someone follows you, and you’re wondering, ‘Who is this person? Do I know them?’ Well, I can’t answer that question for you. But, I have found that one thing that tells you about your new follower is who they follow that you also follow. Follow?

I want to [...]

Automatic Deployment for Rails

For the Rails applications we’re building at work, as well as all the standard continuous integration features, we also automatically deploy our applications. That is, every time we submit code a central server is automatically updated with a new release. Before running tests.

We’re pretty happy with this set up. It’s already found a couple of bugs in some plugins [...]