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

By Peter Cooper / February 17, 2009

Jamie.jpgIf you read a lot of Ruby blogs, you might see people talking about testing (or its behavior driven equivalent) as if it’s the holy grail, yet most Ruby books and online tutorials fail to cover it in much detail at all. Last year, Jamie Van Dyke wrote an article for The Rubyist called Building A Gem Using BDD to put things right (the article was licensed exclusively to the magazine until recently).

In the article, Jamie walks through creating a Ruby library (to ultimately be distributed in gem form) from scratch using behavior-driven development (BDD) techniques (specifically, with RSpec). Read More

By Peter Cooper / February 16, 2009

rubyinsidebrasil.png Bom dia to all of Ruby Inside’s Brazilian (and Portuguese) readers! You can now, if you prefer, read (and subscribe to) the Portuguese language edition of Ruby Inside at http://www.rubyinside.com.br/ (if you’d rather just subscribe to the feed, it’s here, or check it out on Twitter @rubyinside_br)

Ruby Inside Brasil (Brazil) is an initial step into localizing Ruby Inside by “franchising” to trusted editors and translators in different parts of the world (there will also be unique content over time). Ruby Inside Brasil’s editor is Carlos Brando of Surgeworks, Inc, who is well known in the Brazilian Rails community for his blog Nome do Jogo. Read More

By Peter Cooper / February 13, 2009

tinyrb.jpg Marc-André Cournoyer has proven that almost anything is possible by developing a small, functional, and surprisingly “unslow” Ruby VM called TinyRB. Some basic testing shows that it’s faster than 1.8 on a Fibonacci benchmark, though slightly slower than JRuby, Rubinius, and YARV (Ruby 1.9).

Coming in at just 1541 lines of code so far, TinyRB is not going to be replacing your usual Ruby interpreter anytime soon. While it supports most of the keywords and some base classes including Class, Object, Fixnum, Symbol, and String, there’s no support for Array, Module, Float, and a whole ton of essential stuff.

TinyRB, in its current state, is a playground for you to mess around in. Read More

By Peter Cooper / February 11, 2009

couchdb.pngApache CouchDB is a “distributed, fault-tolerant and schema-free document-oriented database accessible via a RESTful HTTP/JSON API” that has received quite a bit of publicity in developer circles in the past year. It’s written in Erlang, so has all of the scalability and flexibility the Erlang environment brings to the table, but as a RESTful service, you can use it from pretty much anywhere.

George Palmer, a UK-based Rails developer, wanted to use CouchDB but found the existing libraries (such as RelaxDB, CouchREST, ActiveCouch and CouchPotato) lacking – not that they are, as such, but they didn’t fit George’s needs. Read More

By Peter Cooper / February 9, 2009

ruby-1-9-1.gifIt’s approaching two weeks now since Ruby 1.9.1 was released, bringing with it not only a whole stack of extra performance and a new VM, but also a lot of compatibility issues. No pain, no gain!

Thankfully, the Ruby community in its typical way has got to blogging, writing scripts, and what not, resulting in a flurry of useful links and resources for those brave enough to test the Ruby 1.9.1 waters. So here come 23 useful Ruby 1.9.1 links and resources! If you have any others you wish to add, please leave a comment as people will be checking those out too. Read More

By Peter Cooper / February 8, 2009

ruby-spotlight-docs.pngPriit Haamer is an Estonia-based Ruby developer who has put together a “Ruby dictionary for Mac OS X.” All you have to do is download the file he provides, unzip it into your ~/Library/Dictionaries folder (or create that folder and unzip it in there) and you’ll be able to use the built-in OS X “Dictionary” application to search for Ruby module names, classes, and methods.

It is also possible to have Spotlight bring up entries from this dictionary too by going in to Dictionary’s preferences and dragging the new Ruby dictionary to the top of the priority list. If you have turned off the Dictionary option in Spotlight, you’d need to turn that back on too. Read More

By Peter Cooper / February 7, 2009

It’s time to thank those great companies and individuals who help keep Ruby Inside (and often other Ruby sites) going. Note: All descriptions and notes are written by Ruby Inside and are not directly influenced by the sponsors. As such, any opinions stated are those of Ruby Inside and not necessarily shared by the sponsor!

FiveRuns – Rails Application Monitoring Solutions

fiveruns_310by90.gifFiveRuns is a provider of Rails application (and server) monitoring services. FiveRuns works hard to be part of the community, whether by releasing a free Ruby and Rails stack or publishing a great set of interviews with Ruby developers on their blog. Read More

By Peter Cooper / February 6, 2009

isitruby19.png

Ruby 1.9.1 was released last week but due to the significant changes between the 1.8 and 1.9 versions of MRI, not all libraries and gems work with it. The trouble is.. which do and which don’t? My advice last week was to just start playing and not to switch anything serious across until you could guarantee all of your preferred libraries worked.

Is It Ruby 1.9 – developed by Rails host Brightbox – helps with the process of tracking gem compatibility with Ruby 1.9. It’s a place for the Ruby community to both report and track compatibility for all public gems. Read More

By Peter Cooper / February 4, 2009

feedzirra.gif Feedzirra is an all-new Ruby feed parsing (it’s not a generator) library by Paul Dix. The choice of feed parsing libraries in Ruby has been reasonably limited so far, so Feedzirra is a most welcome addition to the Ruby ecosystem. Its focus is on pure speed – it uses Nokogiri (an ultra fast Ruby XML parser that depends on libxml) and curb (bindings for libcurl – to do the HTTP work) so compilation is required. Feedzirra was designed to be used to fetch thousands of feeds, process updates quickly, save on bandwidth (with conditional GETs, etc) and be dead simple to use. Read More

By Peter Cooper / January 31, 2009

ruby-1-9-1.gif2012 update: Still not up to speed with Ruby 1.9? Check out the Ruby 1.9 Walkthrough for a 3 hour guide to the details :-)

Years of hard work reached a crescendo today as Yuki Sonoda announced the release of Ruby 1.9.1, the first stable release of the Ruby 1.9 series of MRI. In effect, 1.9.1 replaces 1.8.7 as the latest stable release of “Matz’s” Ruby interpreter although (as we’ll cover below) it’s not entirely that simple.

We’ll be doing a roundup of Ruby 1.9 related links and resources soon here on Ruby Inside, but if you want to get up to speed with what Ruby 1.9 is all about right now, I’d recommend checking out the Migrating to Ruby 1.9 presentation by Bruce Williams, Ruby 1.9: What to Expect by Sam Ruby, and James Edward Gray’s Getting Code Ready for Ruby 1.9. Read More

By Peter Cooper / January 30, 2009

Ryan Tomayko, currently known as one of the lead developers of Sinatra, was definitely not mincing his words yesterday when he posted Why “require ‘rubygems’” In Your Library/App/Tests Is Wrong:

You should never do this in a source file included with your library, app, or tests:

require ‘rubygems’

The system I use to manage my $LOAD_PATH is not your library/app/tests concern. Whether rubygems is used or not is an environment issue. Your library or app should have no say in the matter. Explicitly requiring rubygems is either not necessary or misguided.

But.. why?

When I use your library, deploy your app, or run your tests I may not want to use rubygems. Read More

By Peter Cooper / January 29, 2009

vizzy.png

Mark McBride has written Automating Data Visualization with Ruby and Graphviz, a great introduction to using Ruby with the popular Graphviz tool to produce visualizations of data.

The article starts off with an example of the sort of data you might want to analyze then moves on to explaining GraphViz and its “DOT” notation. From there, Mark leaps straight into using the ruby-graphviz library and provides code to produce a graph for a sample data set.

Once you get in to Graphviz you might also want to check out RailRoad, a “Ruby on Rails diagrams generator” that produces model and controller relationship diagrams from your Rails applications. Read More

By Peter Cooper / January 23, 2009

rhomobile.png Rhodes – developed by Rhomobile – is an intriguing framework of Ruby interpreters that can be used to develop native applications for the iPhone, Windows Mobile, RIM (Blackberry) and Symbian smartphone platforms (with Android support to come). Last month, Werner Schuster (of InfoQ) wrote a basic roundup of how Rhodes works.

Essentially, Rhomobile has put together a set of technologies that each work on each mobile platform supported, including a Ruby interpreter, a synchronization library, an object mapper, and functions that enable developers to gain access to features like GPS, accelerometers, and contact storage. Rhodes is not yet at version 1.0 and while some developers are beginning to submit Rhodes-powered apps to the iPhone App Store – none have yet been accepted (although Rhomobile claim that there’s no reason why they shouldn’t be). Read More

By Matthew Lang / January 21, 2009

The development team behind the time tracking site freckle, have just released a PDF guide detailing the terminology and processes behind processing credit card details in Ruby.

Much like Amy Hoy’s previous guides relating to Rails, the Jump Start Credit Card Processing guide is a very colorful guide and is split into three small parts that make it easy to digest. It gives an overview of the process and actions involved in processing credit card payments as well as explaining different methods that can be used to validate a credit card.  A 6 step example in Ruby using the Active Merchant gem shows you the basic steps required to process payments. Read More

By Peter Cooper / January 20, 2009

wcruby_big.jpg

Wicked Cool Ruby Scripts (or Amazon.com link – currently $19.77) is a new Ruby book by Steve Pugh that has just one goal: to share a bunch of “wicked, cool” Ruby scripts in various categories with readers. The publisher is No Starch and they offered to send me a copy for review.

First, No Starch Press is an independent technical book publisher (a rare entity nowadays) and if this book is any indicator, they have a real passion for producing books that are delightful to own. It’s so rare that you get nice paper in a book – here it’s thick and textured (and certified by the Sustainable Forestry Initiative). Read More

Recently Popular Posts