Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posts Tagged Rails

Zed for the win

We can all go home now.
Zed wins at the internet.
Choice quotes on my (nsfw) tumblelog.


Posted
7 August 2007 @ 3pm

Tagged
BDD, Rails, Ruby

Add “should.include?” for test/spec

I have done the following one too many times:
PLAIN TEXT
RUBY:

collection.should.include?(object)

Only to have it fail because test/spec's should doesn't know about include? (or .not.include?)
However, as Chris points out in the comments, test/spec does allow .should.include (without the "?"), but does not have a should.not version of it. So the following adds a [...]


Posted
24 July 2007 @ 11pm

Tagged
Rails, Ruby, TDD

Did redgreen get borked?

I recently had to reinstall all my favorite gems and tools on a powerbook, and desired colored test goodness. So after bringing in redgreen and zentest gems, amongst others, I saw the following:

rob@fixx:~/src/relevance/pharminst/trunk$ rake|redgreen
-bash: redgreen: command not found
^Crake aborted!

rob@fixx:~/src/relevance/pharminst/trunk$ rake|rg
/opt/local/lib/ruby/gems/1.8/gems/redgreen-1.2.2/bin/rg:6: can't convert nil into String (TypeError)
from [...]


Make Textmate’s “find in project” faster in Rails projects

Textmate's "find in project" feature is great, but if you use it within any substantial Rails projects it can get very slow, especially as cruft builds up in the log folder or if you use vendor/rails. This is easily fixed, however -- go into your textmate preferences, then "folder references", and change "folder pattern" [...]


BrainBuster 0.7 released

BrainBuster is a logic captcha plugin for Ruby on Rails. The 0.7 release has been completely overhauled to have a much less obtrusive approach using only filters, instead of requiring code changes to actions. It also features enhanced security, tests (!), and overall goodness.
If you are upgrading, PLEASE see the readme - the [...]


RailsConf 2007 - Memcaching Rails - Chris Wansrath

Chris Wanstrath helped scaling gamespot
had to turn off gzipping to avoid burning the cpus
3000 req/seconds
50M pages in the day, no downtime
Chris is a sloppy programmer (jk)

a distributed hash with no each or keys – just get and set
written in c – fast

at first – you dont need memcached – YAGNI
unless you really do need it [...]


Portland RailsConf 2007 brain dump

Since getting in Portland I haven't much time to sit down and think or really write, but here's a quick brain dump, as I have like 4 blog entries queued up that I'm finishing...

portland is a great city
ive walked like 10 miles since Monday
portland is kind of like a bigger madison, with about 10x as [...]


RailsConf 2007 Google Map

I've created a RailsConf google map with some things near the convention center that attendees might be interested in.
I have some local restaurants, brew pubs, Powells, the bike rental place, a mac shop, the Jupiter hotel, and a couple coffee shops.
Any suggestions for additions? Or maybe its publicly editable? I'm not [...]


Deploying Locally to Mac OS X with Capistrano

Lately I've wanted to deploy locally to my mac using Capistrano. Not for actual deployment locally, but to test some custom tasks I was working on. Its a lot quicker and safer to run custom tasks against a local sandbox then some real server somewhere. Writing real tests for custom tasks is [...]


← Before After →