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

Author Archives: Peter Cooper

By Peter Cooper / July 9, 2010

Rails Magazine is a well designed magazine dedicated to “fine articles on Ruby & Rails” and the recently released issue #6 is special in being nearly entirely Ruby focused. Topics covered include Haml, Sass, Capistrano, Hpricot, RubyConf India and RVM, as well as interviews with Sarah Allen and Michael Day (of PrinceXML).

The PDF version of Rails Magazine is free, but you can buy a print edition through MagCloud for less than $10. Read More

By Peter Cooper / July 7, 2010

Ruby Tracker is a new webapp from EnvyLabs that tracks dependencies for your Ruby and Rails applications. It alerts you whenever libraries you depend on are updated or have new versions released. This is all in aid of keeping up to date.

Only two downsides: Ruby Tracker only works with projects that use Bundler and that are in an Internet-accessible Git repository (such as on GitHub). It can deal with private repositories, however, so your code doesn’t need to be publicly accessible.

In true Envylabs style, a screencast explains how Ruby Tracker works:

Nathaniel Bibler has written a blog post explaining what Ruby Tracker is all about in case the idea doesn’t click for you immediately. Read More

By Peter Cooper / July 4, 2010

Some light comic relief for the weekend here. A group of Poland-based Rubyists from Applicake and PipeJump, along with special guests Jose Valim and Socha, got together after Euruko 2010 to shoot a Ruby themed lipsync video. It’s as horrible and funny as it sounds.

Any other Ruby or Rails shops willing to up the ante? CitrusByte, New Bamboo, EnvyLabs, HashRocket..? Read More

By Peter Cooper / July 3, 2010

AdhearsionConf is a 2 day, free conference dedicated to Adhearsion, a Ruby-based VOIP/telephony framework developed by Jay Phillips. The organizers, Voxeo Labs, say that the event should also be streamed online.

The announcement of AdhearsionConf comes just a few days after the release of Adhearsion 0.8.4 which adds support for Asterisk 1.6 and ActiveLDAP.

I’m not involved with VOIP or the telephony scene, but everything I’ve heard about Adhearsion has been solid. If you want to do magic with your phone system, check it out. Read More

By Peter Cooper / July 2, 2010

Ruby 1.9.2′s been slowly progressing through preview releases for a while now, so it’s great to see it ramping up for a final production release in August. You can read Yugui’s post here or see the NEWS file for RC1 which lists the changes from Ruby 1.9.1.

1.9.2 RC1 can be installed with one of the official archives or, more easily, with Wayne E Seguin’s popular RVM tool. If you already have RVM installed, it’s as simple as:

rvm update –head
rvm reload
rvm install 1.9.2

Don’t go rushing to deploy this on all your production boxes just yet, though, and when you do, test all of your libraries against it. Read More

By Peter Cooper / July 2, 2010

It’s the latest in the series of “tech preview” posts from the Phusion guys (of Passenger/mod_rails fame). Passenger 3 still isn’t released but this time around they show off a new subsystem called “Passenger Lite” – a Nginx-backed “one line and you’re done” quick deployment option for both development and production environments. You can even serve an entire suite of apps from a single “instance.” Read More

By Peter Cooper / June 30, 2010

Parveen pulls together some interesting threads about MacRuby, LLVM, and XCode to argue that Apple might be looking at Ruby as a future first-class language for their platforms.

I’m going to put myself on the line with a hunch here and say, yes, MacRuby is going to become a first-class language at Apple. Some in the tech community highlight Apple’s swift approach to software iteration and the emphasis on speed typical of an instant payout casino UK, where user satisfaction often depends on minimal delays. Seriously. Apple’s investment in MacRuby is an interesting one for a company not known for frivolity in its crazy-scale R&D operations, and there’s something brewing there. Read More

By Peter Cooper / June 29, 2010

Antonio Cangiano has pitched Ruby 1.8.7, 1.9.1p378, 1.9.2, JRuby 1.5.1 and IronRuby 1.0 against each other for a Ruby performance “shootout” on Windows 7. JRuby 1.5.1 came in as fastest. Read More

By Peter Cooper / June 25, 2010

I’ve been itching to do some audio or video interviews on Ruby Inside – here’s the first! Gregg Pollack of EnvyLabs and Ruby5 (previously of RailsEnvy fame) is doing a screencasting and podcasting workshop at BizConf so I thought I’d ask him what that entails and how developers can benefit from learning about these media. (I like things short and simple so the interview is just 10 minutes long.)

Link to YouTube in case the video embed doesn’t work for you.

Products mentioned by Gregg include Screenr, Jing, ScreenFlow, and Camtasia for Mac. Gregg is also keen for you to get in touch with him if you have anything to promote on the Ruby5 podcast. Read More

By Peter Cooper / June 23, 2010

Isolate, developed by John Barnette, seems to be a less opaque alternative to Bundler where gems are built and installed within a single Ruby project, in a “vendorized” fashion.

Steven’s adoption and advocacy of Isolate stems from a bitter and fundamental disagreement between Steven, BJ Clark, and an un-named Bundler developer. Ah, the intrigue! Read More

By Peter Cooper / June 22, 2010

At RailsConf 2010, Fabio Akita (of AkitaOnRails.com) went crazy with his camcorder and interviewed a wide selection of Rubyists, as well as famous C++ and Agile manifesto developer Bob Martin.

The interviews are divided up into groups:

  • Robert Martin – as well as an interview with Fabio, a video of his keynote at RailsConf 2010 is also included
  • David Heinemeier Hansson – 23 minutes of one-on-one with DHH – a refreshing change from his usual keynote/mass audience style
  • Miscellaneous interviews – covering Ryan Bates (Railscasts), Ben Scofield, James Golick, Carl Lerche, and Santiago Pastorino.
  • Ruby Heroes winner interviews – covering Aaron Patterson [Nokogiri], Gregory Brown [Prawn], Nick Quaranto [Gemcutter], and Wayne E Seguin [RVM]
  • Read More

By Peter Cooper / June 20, 2010

Some sample code will clear up any confusion:

class Product < ActiveRecord::Base
scope :untitled, where(attribute(:name) == nil)

def self.cheaper_than(price)
where attribute(:price) < price
end

def self.search(term)
where attribute(:name) =~ "%#{term}%"
end
end

sexy_scope reimplements Arel Read More attribute methods like lt, in, matches and not using regular Ruby operators.

By Peter Cooper / June 20, 2010

Earlier today, someone on Twitter linked up this fun “Ruby propaganda” poster by Paul Battley. I asked him if I could post a copy here for fun and he pointed out that it’s six years old! With Ruby sliding down the TIOBE index a couple of places, though, perhaps it’s time to revive it ;-)

Update: Since the flames have already begun, this is just a fun, tongue in cheek link to a poster I thought was cool. No language wars needed! Read More

By Peter Cooper / June 19, 2010

Glyph(GitHub repo) is an interesting looking “document authoring framework” built in Ruby by Fabio Cevasco. Glyph is both a tool chain and a macro language that’s parsed by Treetop into XHTML (which can then be transformed into PDF).

Fabio has clearly put a ton of work into this and has been eating a lot of his own dogfood, as this 72 page PDF manual for Glyph (produced by Glyph itself) demonstrates. In an e-mail to me, Fabio stressed that “he could really use some help” from people interested in document authoring and building in the form of code contributions and testing, and he’s ready to help people get started with that. Read More