Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

By Peter Cooper / August 26, 2009

multiple-rubys.pngRuby Version Manager GitHub repo (a.k.a. RVM) makes it ridiculously easy to install and switch between multiple Ruby versions on OS X and Linux. Over the last 24 hours, I’ve been playing with RVM and talking to creator Wayne E. Seguin and have been blown away with how cool (and simple) it is – you will definitely want to check this one out.

RVM’s most compelling feature is that it caters for six different distributions out of the box (MRI 1.8.6, MRI 1.8.7, 1.9.1, 1.9.2, Ruby Enterprise Edition 1.8.6, JRuby 1.3.1) and it’ll install them the first time you need to use them. Read More

By Peter Cooper / August 26, 2009

rubyprogramminglanguage.gifI’ve just had word from David Flanagan – co-author of The Ruby Programming Language, published by O’Reilly – that O’Reilly are running a temporary sale on the e-book edition. The PDF e-book is now just.. $9.99 for a limited time only. That’s a pretty good deal considering O’Reilly are selling the print book for $40 (though it’s only $26.39 on Amazon).

Actually.. make that $5.99? Reader Mike Hodgson claims: If you use the LREL40 coupon code you can get an additional $4.00 off, bringing it down to $5.99 – Not tried it myself, but it’s worth a go. Read More

By Ari Brown / August 21, 2009

jackSometimes taking an app down for debugging purposes is just not an option. Luckily a new tool called Hijack can provide a live IRB prompt for an existing Ruby process in the same way that Erlang provides hot swapping of code (changing the definition of a system while the system is still up and running).

Hijack (it’s still in a beta state, so be careful and don’t use it in production yet!) lets you to pry your way into a running Ruby process, where it drops you into a live IRB session running over DRB. Gone are the days of stopping live applications just to make a minor update! Read More

By Peter Cooper / August 20, 2009

whymo.pngSince Why The Lucky Stiff’s supposed disappearance yesterday, I’ve been coming across a lot of interesting links with mirrors of his projects, discussions surrounding his disappearance, and lots of other juicy stuff. I think it’s worth keeping track of this stuff so I’m kicking off a compilation post dedicated to Why related links.

If you have any useful resources you want to link to, leave a comment and I’ll try and include them here so this post can act as a reference point.

Disappearance and Discussion

Where is _why? A Reddit discussion – An epic discussion (443 comments at time of writing) on Reddit about Why’s disappearance. Read More

By Ric Roberts / August 20, 2009

ready set goGemcutter is a new gem hosting repository that aims to replace RubyForge as the canonical repository for gems. The project has been around for a couple of months, but Thoughtbot recently announced they’re helping out with a forthcoming redesign of the site

As part of the plan to get everyone using it as their main gem repository, Gemcutter has already imported all of the gems that were on RubyForge – meaning there are over 5000 gems on there already.

After installing Gemcutter (with gem install gemcutter), consumers of gems just need one command to set Gemcutter up as their primary source:

gem tumble

As a publisher, you can just use the git-esque ”gem push” command to release a new version of your gem.  Read More

By Peter Cooper / August 19, 2009

why-so-serious.png

Long-time Rubyist and the community’s own resident crazy genius, whytheluckystiff (a.k.a. _why) seems to have gone missing. Not only has he deleted his Twitter account (@_why) but his Github repositories and all of his great Ruby related Web sites – poignantguide.net, hackety.org, whytheluckystiff.net, and shoooes.net are all down and not even resolving at DNS level.

The Poignant Guide, Hpricot, Markaby, RedCloth, Shoes, Camping, and Try Ruby (a Web version of irb) are considered important by Rubyists not only for their usefulness but for their significant contribution to Ruby’s culture, and if _why has truly fallen off the grid, it’s a big deal. Read More

By Ric Roberts / August 14, 2009

monkI recently came across the interesting-looking Monk framework. It allows you to specify a list of dependencies for technologies to use in your project (in the form of git repositories or gems), and it will take care of extracting them into your application’s vendor folder.

With the default skeleton (for which you’ll need a Redis key/value database installed), you’ll get a Sinatra application with Haml, Rack, Contest, Stories, Webrat and Ohm. However, you can create your own skeleton with its own dependencies if you like.

You can install Monk with:

gem install monk

… and then initialize a project with the default skeleton:

monk init myapp

This will give you a familiar structure with helpers, models, routes, views, lib and vendor folders. Read More

By Ric Roberts / August 13, 2009

guess who?Simone Carletti of Altura Labs recently announced on his blog the release of a new pure-Ruby Whois library, inventively named “Whois“.

He needed a whois library for one of his projects, but found that the existing options didn’t satisfy his requirement of being able to query both IP addresses and top level domains.  Simone’s offering replaces the original whois gem by Cyril Mougel, with which it’s backward compatible.

Using the ‘all-in-one’ whois class-method will give you the default behaviour, with a timeout of 5 seconds. If you want more control you can initialize a new instance of the client:

Whois.whois(“rubyinside.com”)
# =whois response for rubyinside.com

client = Whois::Client.new
client.timeout = 3
client.query(“74.125.67.100″)
# =whois response for 74.125.67.100

For more details, check out Simone’s blog post, the docs, and the Github repository. Read More

By Peter Cooper / August 9, 2009

twitter.pngTwitterLand (Github repository) is a single Ruby library that packages up access to, currently, 5 different Twitter-related data services. Note, however, it’s not a library that allows you to post to Twitter – you’ll want Twitter4R or John Nunemaker’s Twitter gem for that.

More services are sure to be added to TwitterLand, but currently it makes it easy to get data from these five:

  • Follow Cost – A service that gives a “cost” on how annoying it will be to follow a specific Twitter user.
  • Twitter Grader – Provides info on how Twitter users measure up to each other in terms of popularity.
  • Read More

By Peter Cooper / August 8, 2009

Here’s a list of some prominent forthcoming Ruby and Rails events scheduled through to the end of the year. Only events with tickets ready to buy right now are included – events which have already sold out are not included.

lsrc.png

Lone Star Ruby Conference 2009 (Austin, Texas; August 27-29, 2009)

The third annual Lone Star Ruby Conference (LSRC) is heating up and right around the corner, running for three days, August 27-29 in Austin, TX. LSRC 2009 offers a full day of advanced training on Thursday in addition to the two days of Ruby-packed, dual-track speaking sessions on Friday and Saturday. Read More

By Ric Roberts / August 6, 2009

bowlineBowline is a new MVC GUI framework for developing cross-platform desktop applications using Ruby, HTML, CSS and Javascript. The author, Alex MacCaw, aims to make building a desktop app as simple as creating a Rails site.

Unlike pure Ruby desktop libraries like Shoes, Bowline builds on Appcelerator Titanium, an SDK for building desktop apps that basically gives you a Webkit window and a set of APIs for interacting with various operating systems. This lets you develop for the desktop using familiar web technologies, including CSS3 and HTML5 (think Adobe Air!).

To allow your Ruby code to interact with your HTML, Bowline introduces the concept of “binders” which can update your views as the underlying data changes (a bit like controllers in Rails). Read More

By Ric Roberts / August 5, 2009

chefChef isn’t exactly new, but I’ve been looking into it recently after briefly talking to Lindsay Holmwood at Rails Underground.

Basically, Chef is a Ruby-based configuration management engine. You set up recipes for how you want your system configured, and then Chef will cook it up for you.  So, you can write lovely Ruby code to manage your servers, rather than running commands directly on your server.

With Chef, one of your systems is the server and all others are clients that communicate with the Chef “server” via REST over HTTPS. The server is a Merb application that stores cookbooks for your nodes using CouchDB. Read More

By Peter Cooper / August 3, 2009

Yep, it’s the latest installment of the series of posts crammed with random Ruby links, articles, and resources:

php-logo.png

Phuby – A PHP Runtime from within Ruby

Aaron Patterson (a.k.a. tenderlove), creator of Nokogiri, has recently been working on Phuby – a library that “wraps PHP in a loving embrace.” In short, Phuby exposes a PHP runtime in Ruby so you can eval stuff in PHP from Ruby, etc.

hash.png

Hash Mapper – A “Hash to Hash” Converter

The guys over at New Bamboo (a UK Rails shop – looking for a new team member, by the way..) have recently unveiled Hash Mapper, a “hash to hash” converter. Read More

By Ric Roberts / July 30, 2009

rails undergroundI attended the Rails Underground conference in London at the weekend (July 24-25, 2009). As always seems to be the case at these events, I got the most value out of the more theoretical and opinion-based talks rather than ‘how-to’ style presentations. Having said that, Pat Allan and George Palmer gave great talks on their respective thinking_sphinx and couch_foo plugins.

I’m going to concentrate on the keynotes from the two days, which give quite differing perspectives.

Fred George – Rails is a hammer. Not everything is a nail.

fred georgeIn the keynote (video link) for the first day, former Thoughtworker, Fred George warned us against using Rails for the wrong kinds of projects.  Read More

By Peter Cooper / July 28, 2009

bearonshark.pngIn Make Your Test Suite UNCOMFORTABLY FAST! (called “the best blog post ever written” by one commenter) Jason Morrison of Thoughtbot demonstrates how to use Michael Grosser’s Parallel Specs project to speed up your Ruby tests.

Parallel Specs provides a set of Rake tasks to run specs and tests in parallel, therefore using multiple CPUs (or cores) to multiply your testing power. It does not yet work with Cucumber features but Jason recommends testjour for that purpose – which is designed to work across multiple machines so isn’t quite the same thing.

Thoughtbot has found Parallel Specs typically provides a 30-40% speedup for their projects out of the box, so if you’re doing a lot of testing (and the best developers seem to say you should be) check it out for some instant satisfaction. Read More

Recently Popular Posts