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

By Peter Cooper / August 3, 2008

rubyist-thumb.jpg

The Rubyist – not to be confused with the Japanese Rubyist Magazine – a new paper-and-PDF based magazine for Ruby developers has released its first issue. This is a significant milestone, since it was just over a year I lamented about how the blogosphere killed the enthusiasm for Ruby magazines. In response to that post, Jeremy McAnally announced his intention to produce a Ruby magazine, and now, with the advent of simple Print On Demand magazines from MagCloud, it has become a reality.

The first issue is available in print for the United States only and costs $8 plus postage. Read More

By Peter Cooper / August 2, 2008

httparty.jpg

HTTParty is a new Ruby library by John Nunemaker (of railstips.org fame) that makes it a snap to build classes that can use Web-based APIs and related services. At its simplest, you include the HTTParty module within a class, which gives your class a “get” method that can retrieve data over HTTP. Further directives, however, instruct HTTParty to parse results (XML, JSON, and so on), define base URIs for the requests, and define HTTP authentication information.

HTTParty’s simplicity is demonstrated in the most “complex” example John gives in his introduction post – a Representative class that can retrieve information about US Representatives from whoismyrepresentative.com:

require ‘rubygems’
require ‘httparty’

class Representative
include HTTParty
base_uri ‘whoismyrepresentative.com’
default_params :output =’json’
format :json

def self.find_by_zip(zip)
get(‘/whoismyrep.php’, :query ={:zip =zip})
end

def self.get_all_by_name(last_name)
get(‘/getall_reps_byname.php’, :query ={:lastname =last_name})
end
end

puts Representative.get_all_by_name(‘Donnelly’).inspect
# {“results”=[{"district"="2", "last"="Donnelly", "first"="Joe", "state"="IN", "party"="D"}]}

That code will work for you after a simple gem install httparty. Read More

By Peter Cooper / August 1, 2008

rubyhoedown.png

Yee-haw! The Ruby Hoedown, the “Ruby conference for the South” enters its second year, taking place in Huntsville, Alabama on August 8th and 9th, 2008 (yes, in a week’s time!). Speakers include David Black, Chris Wanstrath, Giles Bowkett, Robert Dempsey, Gregg Pollack and Jason Seifer, and late registration is $199. If you fancy a last-minute trip to what should be a great sophomore Ruby event, register now!. Huntsville isn’t a crazy distance from Birmingham, Atlanta, or Nashville, so it shouldn’t be too hard to attend if you’re already in that corner of the country.

Describe Your Vision of the Perfect Ruby Conference.. Read More

By Shalev NessAiver / July 30, 2008

DocBox is the latest attempt to improve the Ruby/Rails documentation scene. Created as a Google Summer of Code project by Ian Ownbey (mentored by Jeremy McAnally) DocBox “sits on top of RDoc and allows users to update documentation through a wiki-like interface.” Changes to the ‘wiki’ are then folded back into your code and committed to a git documentation branch.

While still young, this project shows a lot of promise, as it allows anyone to write detailed, versioned, documentation without having to download or view any source code.

Naturally, DocBox is open source and is available at GitHub. Jeremy and Ian both encourage people to jump in. Read More

By Peter Cooper / July 29, 2008

Ruby on Bells is a demo of the Madrona fork of RAD (Ruby Arduino Development) itself a Ruby bridge to Arduino, an open source electronics prototyping platform. Powered by a simple Ruby script, a set of glasses are hit by small mallets on servos, resulting in a Philip Glass-esque cacophony. It’s a compelling demo, and if physical computing intrigues you, the tools available to Ruby and Arduino developers are now mature enough to bring interesting results within easy reach.

A longer “behind the scenes” video explaining how it was put together and how the code looks is also available. The code used is a very simple Ruby-based DSL. Read More

By Peter Cooper / July 28, 2008

norubyforyou.jpg
Photo credit: Blakespot. License: CC 2.0 Attribution

Yuki Sonoda has announced the release of Ruby 1.9.0-3, a snapshot release of the still-experimental Ruby 1.9 (wait until Christmas for the production ready 1.9.1). Minor releases aren’t typically covered here on Ruby Inside, but the dropping of support for nine platforms in Ruby 1.9 might be of significant interest to some:

Ruby 1.9 no longer supports the following platforms because they have no active maintainer.

  • BeOS
  • WinCE
  • OS/2
  • Interix
  • bcc32
  • Classic MacOS
  • djgpp
  • VMS
  • human68k

I will remove platform-specific codes for them from Ruby, unless someone become a maintainer by 25 Sep. Read More

By Peter Cooper / July 28, 2008

It’s time to thank Ruby Inside’s excellent sponsors!

I want these posts to be relevant and useful, so I try to include any news or developments the sponsors have had, so even if you don’t care for what the sponsors are selling or providing, it’s worth a quick check to make sure you’re not missing out on anything useful. If you have any suggestions on how these posts could be better then, of course, leave a comment.

Note: All blurbs and descriptions are written by me and not directly influenced or specified by the sponsors. As such, any opinions stated are mine and not necessarily shared by the sponsor(s)! Read More

By Peter Cooper / July 26, 2008

17125v1.jpg

Until last week, Mark McGranaghan was a full-time Ruby developer for TechCrunch, the popular Web 2.0 news site. He worked extensively on CrunchBase, a wiki-style database of companies, people, and investors in the world of Web 2.0. His last assignment was the free-to-use CrunchBase API which went live last week.

I caught up with Mark to ask him about his time working at one of the world’s most famous blogs with one of the world’s most famous bloggers! You might be surprised to learn that head Cruncher Michael Arrington – who is never slow to point out Twitter’s downtime – is pretty cool with Rails and what works well for his developers works for him. Read More

By Peter Cooper / July 24, 2008

ironruby.png

IronRuby is a .NET implementation of Ruby being developed by Microsoft (specifically, by John Lam). The project has matured significantly in the past year, and IronRuby is well on its way to running Rails applications (it already works with very simple ones). IronRuby’s major benefit is that it allows Ruby code to access a massive range of .NET libraries and services.

Justin Etheredge has put together a great set of tutorial blog posts designed to get you up to speed with IronRuby:

  • Getting IronRuby Up and Running walks you through getting the source code, compiling it with Visual Studio 2008 (if you don’t have this, a link to the free “Express” edition is provided), associating the .rb file extension, and running some initial tests.
  • Read More

By Peter Cooper / July 22, 2008

redcloth.png

RedCloth is a popular Ruby library for converting Textile-formatted text into HTML. Initially developed by WhyTheLuckyStiff, it’s now under the guardianship of Jason Garber, who has just released version 4 (RubyForge or Github). This is a significant update, following on from 3.0.4 which was released almost three years ago, and features a handful of significant improvements and changes:

  • New SuperRedCloth (RedCloth 4.0) is a total rewrite using Ragel for the parsing.
  • Markdown support has been removed.
  • Single newlines become <br> tags, just as in traditional RedCloth and other Textile parsers.
  • HTML special characters are automatically escaped inside code signatures, like Textile 2.
  • Read More

By Peter Cooper / July 22, 2008

foscon.png

FOSCON is a “free, fun gathering” of Ruby developers held alongside the O’Reilly OSCON conference currently taking place in Portland, Oregon. It’s tomorrow (Wednesday, July 23) at CubeSpace (near the Oregon Convention Center) from 6pm. The always proactive Portland Ruby Brigade have organized it, and a surprising number of interesting presentations are already planned, including one on IronRuby from John Lam of Microsoft. A live coding competition will also be taking place. Read More

By Peter Cooper / July 22, 2008

starling.png

It’s been around for a while now, but Starling is a “light-weight persistent queue server that speaks the MemCache protocol.” Starling makes it ridiculously easy to set up a network-accessible queue (or many queues) for, say, asynchronous job processing between multiple processes and machines. It was developed by Twitter to handle the heavy amount of queueing necessary to keep their service ticking over. Starling is proven in production, with not only Twitter using it in anger, but FiveRuns too. FiveRuns have even created their own fork that, they say, is significantly faster.

Why the sudden interest in Starling? Well, Glenn Gillen has written an excellent introductory guide to setting up Starling over at RubyPond.com. Read More

By Peter Cooper / July 21, 2008

rubyfringecrowd.png
(Photo credit: Kieran Huggins)

RubyFringedescribed as a “pricey, limited-attendance smoozefest” by Ruby documentation co-ordinator James Britt or as “an avant-garde conference for developers that are excited about emerging technologies outside of the Ruby on Rails monoculture” by the organizers – went ahead last week and appears to have been a significant hit. A small conference with a reasonably high ticket price (though far less than RailsConf Europe!), RubyFringe was set to be a very unique sort of conference with parties, drinks and out-of-hours entertainment laid on, and a limited number of tickets made available to ensure a more intimate gathering. Read More

By Peter Cooper / July 17, 2008

Picture 1.png

Ruby’s is not known for its deftness with XML. On RubyFlow, I considered calling the community to arms over it, and solicited twenty responses on what the problem is, and what we could do about it. Robert Fischer was lamenting on the state of Ruby’s libxml library, and didn’t seem to like REXML much either. Tim Bray has also had a few complaints about REXML. It seemed there was a problem to be fixed; a gap in the market, as it were, for a decent XML parser for Ruby. Hpricot, despite really being an HTML parser, would have to get us by in the meantime. Read More

By Peter Cooper / July 15, 2008

autumnbot.jpg

Autumn is a framework by Tim Morgan that makes it easy to develop powerful IRC (Internet Relay Chat) bots with Ruby. Version 3, a significant update, was launched just a week ago. The code is available on Github, so it’s ready to fork, tweak and work on to your heart’s content.

An instance of an “Autumn app” is laid out in a similar way to a Rails app. There are config, doc, script, libs, tmp, and log folders, containing much what you’d expect, as well as a leaves folder (Autumn refers to “bots” as “leaves”) that contains any number of folders each containing data, helpers, models, tasks, and “views” for individual bots. Read More

Recently Popular Posts