dot.Using Making technology about computers, and computers about usability.

Posts Tagged ruby

JRuby in a JAR

A bit of fairy dust, a sprinkle of elven blood, lots of water and boil it all for 5 hours on a low fire. What you get? … I wouldn’t know, but I do know that it took me almost 2 whole days to grasp the idea of a JRuby in a JAR, with two [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

Posted
13 August 2007 @ 2pm

Tagged
gems, irb, ruby

Install RubyGems from irb

I started using NetBeans recently. And find it’s ruby support superb! (as far as an IDE can go). But there was an error installing gems with their gui manager, and I was wondering how to debug that.
A quick peek into ruby/bin/gem revealed much of what I needed to know.
Lets demonstrate :

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

HAML Caching CGI

Mike Zillion asked about how to make HAML a processor (of haml files) for Apache on the HAML Group on Google. That inspired me to write a proper wrapper with caching that will Hamlize templates into HTML and cache those for speedy access on subsequent requests.
This is what I came up with:

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

Writing helpers with Haml and rSpec

Recently Wolfman posted a description about Rails helpers written with Haml::Helpers#open and rSpec.
I want it to be more DRY than it is, since the whole application is using rSpec and Haml, all helpers should have the same before(:each)
So basically – what I did was :

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

Ruby + proper specifications = rSpec

I had an enlightenment today – truly an enlightenment.
After months of reading and getting to know what test driven development and extreme programming is all about, I have finally been able to practice what I preach. Since I work with several programmers and the product we are writing is so new that it is still [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis