Gabriel Horner

11 New Ruby Delights (For If/When You’re Tired of Rails 3.0)

no-rails-allowed.gifSick of Rails 3.0 yet or still enjoying your Sinatra, Rango, Ramaze,

RubyConf 2009 Lightning Talks

Last night it was my great pleasure to host the Lightning Talks session at RubyConf 2009. We had an amazing series of 20 talks that took just over 2 hours. The tech gremlins seemed to be off drinking somewhere and none of the presentations failed.

Here's a list of all the speakers and links to their stuff.

Rails Envy Podcast – Episode #097

Episode #97 Lieutenant Commander Boson reporting for duty. Get the ring tone.

Boson: A Next Generation Task Framework for Ruby

boson.pngBoson is a new command/task framework for Ruby by Gabriel Horner (of Hirb fame).

How Boson Enhances Your Irb Experience

In previous posts, Boson was introduced as a command framework, usable from the commandline and irb. In this post, we’ll focus on how Boson enhances irb by treating methods like shell commands.

Original Author Name: 
Gabriel Horner

Boson And Hirb Interactions

In the last post, I introduced Boson and its options for commands. What I didn’t mention was that Boson also gives those commands default options. Among them are ones to control rendering a command’s output with Hirb and even toggle rendering. At the flick of a switch, Boson commands (Ruby methods) can have Hirb’s views.

Original Author Name: 
Gabriel Horner

Boson - Command Your Ruby Universe

Introducing Boson, a command/task framework that could change how you collect and execute your ruby code. Sure, there’s rake, thor and a dozen other gems. But how many will let you create a universe of ruby commands you can run from the commandline and irb?

higgs boson decay

Original Author Name: 
Gabriel Horner

Hirb Tips For Rails

Hirb has been getting the attention of Rails users with Ryan Bates’ screencasts. To address these newcomers I’ll share some basics on setting up, customizing and configuring hirb in the context of Rails’ script/console. Non-Rails hirb users may find some useful tips here as well.

Setting Up script/console

So you’re digging hirb and you want to have it autoload in script/console…

Original Author Name: 
Gabriel Horner

Changing Readline Completions With a Key Combo

Readline has the powerful concept of a macro which maps a key combo to anything you can type. We’ll look at using a readline macro to trigger ruby code in a ruby shell. Since ruby has the gem bond to easily define readline completions, we’ll change completion behavior with the flick of a key combo.

Intro

First off, you should be aware that what follows can be done with any readline, non-ruby completion setup that allows painless redefinition of a completion.

Original Author Name: 
Gabriel Horner

Mini Irb and Mini Script/Console

In my last post, I introduced Bond‘s own version of irb’s completion. What I didn’t emphasize is that it doesn’t need irb. To prove it, I’ll show you a mini irb which has persistent readline history, error handling and Bond’s autocompletion … in 7 lines.

Mini Irb

A good starting point for a basic irb comes from this github snippet:

Original Author Name: 
Gabriel Horner
Syndicate content