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

By Peter Cooper / November 6, 2007

RDDB is a Ruby document-oriented database system inspired by CouchDB and developed by Anthony Eden. If you’re familiar with CouchDB, the whole system should make sense from the start, but if not, read on. You can create a database and insert documents in a simple enough way:

# First create an database object
database = Rddb::Database.new

# Put some documents into it
database << {:name =’John’, :income =35000}
database << {:name =’Bob’, :income =40000}

To “query” the database, you define a “view” using a Ruby block, as such:

# Create a view that will return the names
database.create_view(‘names’) do |document, args|
document.name
end

# The result of querying will return an array of names
assert_equal ['John','Bob','Jim'], database.query(‘names’)

Views are defined as Ruby blocks that are then used to select the documents and the attributes in the documents that you wish to retrieve. Read More

By Peter Cooper / November 4, 2007

Thomas Enebo of the JRuby team has announced the release of the first beta of JRuby 1.1. This is a significant release, focusing heavily on performance increases. The performance increases yielded so far are so significant that in most like-for-like tests, JRuby beats the regular Ruby interpreter (a.k.a. MRI) JRuby 1.1. On Rails-focused tests, JRuby also wins.. making JRuby the fastest way to run Rails applications at present. Charles Nutter talks about the improvements, along with a number of other interesting JRuby-related topics, in his latest blog post – a must read for Ruby implementation nuts. Read More

By Peter Cooper / November 2, 2007

As long time readers will know, Ruby Inside has its own jobs board at jobs.rubyinside.com. It doesn’t just have jobs posted only by Ruby Inside readers, but also jobs scraped from all over the Web with many Ruby and Rails related jobs being picked up every day (e.g. how does being a Ruby Engineer in Los Angeles take your fancy?).

Only two jobs were posted by Ruby Inside readers in October, but deserve special attention:

Ruby / MySQL Developers – Irvine, CA

WEGCash, an adult affiliate network company, are looking for some talented Ruby-focused Web developers to join their team in Irvine, California. Read More

By Peter Cooper / October 30, 2007

Begrubycover
Thanks to an article called “Top Programming Books on Google Book Search“, I’ve discovered that many of the pages of my book, Beginning Ruby (available also in e-book format here), are available here on Google Book Search. Most of Chapter 3 is there, along with chunks of every other chapter, including quite a bit of Chapter 16, a reference of “Useful Ruby Libraries and Gems”.

While I have your attention and while I’m officially posting about the book, so far it has 9 reviews on Amazon, 8 at 5 star, and 1 at 4 star, and they are well worth a read if you’re wondering whether the book is for you or not. Read More

By Peter Cooper / October 29, 2007

Ruby-Logo
Thanks to Jan Wedekind for letting me know that the Ruby Association, a formal Ruby promotion group chaired by Matz himself, has chosen a winner in the Ruby Logo Contest. The winning logo is by Tom Schaub and licensed under the Creative Commons Attribution-ShareAlike license.

I’d be really interested to hear what everyone thinks about it in the comments on this post. Read More

By Peter Cooper / October 29, 2007

Classxjxjs

Introduction to Ruby is a well produced set of four videos by Lucas Holland that provide an introduction to both Ruby and object oriented programming itself. The first video looks at what Ruby actually is and how it handles OOP concepts. The second video covers Ruby’s installation. The third looks at some of the tools and programs that come with a regular Ruby installation, and the fourth looks more into actually writing some code and processing data. Read More

By Peter Cooper / October 29, 2007

Bundle-Fu
Bundle-Fu is a new plugin by Tim Harper that can bundle CSS and JavaScript content from separate files into one file each automatically to reduce the amount of <scrip> and <link> includes required on the pages within your Rails applications. Read More

By Peter Cooper / October 27, 2007

Ruby-Heap
In “How the Ruby heap is implemented,” Hongli Lai looks at how Ruby manages its memory and stores your objects. It’s reasonably technical but a very interesting read for those with the stomach for it. Read More

By Peter Cooper / October 27, 2007

Mpruby
A few weeks ago, Peter Vanbroekhoven of the newly formed Belgian Ruby User Group gave a presentation called Metaprogramming in Ruby (video and slides available). Peter looks at some of the metaprogramming voodoo used by libraries like ActiveRecord and looks at how to create domain specific languages of your own. Read More

By Peter Cooper / October 25, 2007

Leoparddisk20070611

Someone / some people who have been responsible for integrating Ruby and Rails into the latest version of Mac OS X (Leopard) have written some notes on what was involved and how Ruby and Rails work in Leopard. The Ruby build is a customized 1.8.6 p36 and actually integrates into Xcode and Interface Builder.. now making it a relatively easy task to put together Ruby GUI apps on OS X. RubyGems is also installed with a smattering of the most popular gems preinstalled by default. Read More

By Peter Cooper / October 23, 2007

Note: Ruby Inside service will be slow until Thursday as I’m on vacation. The flow will then return to regular levels! Thanks!Sinatra – A New Ruby Web App FrameworkIt’s still in its infancy but Sinatra is an interesting looking new Ruby Web app framework. It relies very heavily on a custom DSL but is otherwise in a similar niche to Merb or Camping.PackR – Ruby JavaScript CompressionPackR is a port of a Javascript compressor originally developed by Dean Edwards. The interesting thing about PackR is that it comes as a Rails plugin to enable you to have the JavaScripts associated with your Rails apps “packed” on the fly. Read More

By Peter Cooper / October 18, 2007

Trap

Mailtrap is a “dummy” SMTP server developed in Ruby by Matt Mower. The main use for Mailtrap is to act as an SMTP server that runs locally and can be sent mail which can be inspected for debugging purposes. For example, your Rails application running locally might need to send mail using ActionMailer, and while you want it to go through all of the SMTP motions, you don’t want the mail to really be sent.. enter Mailtrap! In this blog post, Matt goes into more details about how Mailtrap works, why it’s a good idea, and the motivation behind its development. Read More

By Peter Cooper / October 17, 2007

Reading Excel Files From RubyWe Heart Code posts a tutorial showing how to use the Parseexcel library, a port of a Perl library that lets you parse Excel spreadsheets from your code.How To Debug Your Rails App With ruby-debugPatrick Lenz presents a great article that shows how to debug a Rails application from start to finish.Economical Use of Amazon S3 with Ruby on RailsRobert Dempsey has written a comprehensive article on how to use S3 in an economic, efficient way from Ruby on Rails applications.Ruby on Rails vs ColdFusion CommercialThe ever active RailsEnvy guys have produced their eighth Ruby on Rails vs X commercial.. Read More

By Peter Cooper / October 16, 2007

Ryan Bates is being a total champ in rolling out more and more consistently good Rails related screencasts for free at RailsCasts.com. Some of the latest include:

Adding an Environment – Rails comes with three environments: development, test, and production. But, you aren’t restricted to just these. You can add your own! See how in this episode.

Testing Controllers – Controllers are tricky to test, and there’s no perfect way to do it. In this episode you will see how I test controllers, and my reasoning behind it.

Custom Routes – In this episode you will learn how to add custom routes, make some parameters optional, and add requirements for other parameters. Read More

By Peter Cooper / October 15, 2007

Sexycharts

Matt Aimonetti has put together a solid tutorial with code examples showing how to build “sexy charts” in a Rails app in a surprisingly short amount of time (although 5 minutes might be pushing it unless you’re a cut and paste champion). Read More

Recently Popular Posts