Interesting Ruby Tidbits That Don’t Need Separate Posts #27

Send to friend

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. They describe it as a module that "gives you a little DSL to map which keys in an input hash should map to which keys" in an output hash. Their own use case was for "translating" a messed up response from a JSON API into something more sanitized.

Sunspot - Solr-Powered Search for Ruby Objects

Sunspot describes itself well without me messing it up, so... "All the power of the Solr search engine; all the beauty of Ruby. Sunspot exposes all of Solr's most powerful search features using an API of elegant DSLs. That means robust, flexible fulltext search with no boolean queries and no string programming." Sunspot's homepage has a couple of code snippets demonstrating the overall idea. If you're not familiar with Solr, it's a stand alone search server built upon Lucene (Ferret being a Ruby port of Lucene - so Ferret == library, Solr == stand alone server).

terminal-icon-512x512.png

Mutter - A "Tiny" Ruby Command Line Interface Library

Mutter is a "tiny command-line interface library" with, supposedly, lots of style. So far its primary function is to simply produce command line output with various styles (bold, underline, blinking) and ANSI colors - no input stuff or curses type interface doodads, but for what it is, it's cute.

RubyConf 2009 Call For Proposals

RubyConf 2009 is taking place in San Francisco in November and the call for speaking proposals is now out. You might want to be quick though; you have only until August 21 to get your proposal in.

ODF-Report: Generate Open Document files with a template + data

ODF-Report is a new Ruby library for generating .odt files (OpenDocument text files - should be familiar to OpenOffice users) by substituting strings in a previously created template .odt file. The idea is that with this functionality you can use ODF-Report to automatically produce reports in an OpenDocument format.

bbox.pngSupport from: Brightbox; - Europe's leading provider of Ruby on Rails hosting. Now with Phusion Passenger support, each Brightbox server comes with access to a managed MySQL cluster and redundant SAN storage. Brightbox also provides managed services for large scale applications and dedicated clusters.

Images: