The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Sinitter - Sinatra Twitter OAuth Demo Application
Sinitter is a sinatra application demonstrating the new Twitter OAuth integration. The source is available on github. Sinitter uses the twitter_oauth gem.
TwitterAuth: For Near-Instant Twitter Apps
TwitterAuth is a new Rails plugin that lets you use Twitter as a single sign-on provider and get up and running with a Twitter API app in about 10 minutes. It also supports the brand new Twitter OAuth beta.
Ruby’s Biggest Challenge for 2009
Ruby’s challenge for 2009 is not about adoption or marketing. The real challenge will be technical, namely moving away from the main Ruby 1.8 interpreter.
Using default_scope to recreate acts_as_paranoid in ActiveRecord 2.3
default_scope is a powerful new feature in Rails 2.3. In this tutorial you’ll learn how to use it to recreate the basic functionality of acts_as_paranoid. The final result is available in the is_paranoid gem.
libxml-ruby no slower than Nokogiri after all
A week ago, libxml-ruby 1 was released and rather quickly some benchmarking results of libxml-ruby vs Hpricot, REXML and Nokogiri went up. Unexpectedly, they showed libxml-ruby as about 10% slower than Nokogiri. Turns out this shouldn’t be and Charlie Savage has worked out why and resolved the problem. Nice investigation.
Design Patterns written in Ruby language
My collection of Design Patterns written in Ruby. Previously they were implemented in Beanshell language. Also, a book dedicated to this topic.
Rails 2.3 dictionary for OS X
Using rails dictionary for OS X? Get your update for Rails 2.3 here.
Rails 2.3 template for Dreamhost
I wrote a little template to make creating new applications with Dreamhost easier.
Ruby Polyglot: Talking with Erlang
How-to for transparently connecting Ruby and Erlang VM’s with erlectricity gem. Get the best of Ruby, and the functional programming of Erlang without sacrificing either.
Another Blog Post About Cucumber
Longish post on using Cucumber for acceptance testing. A Cucumber example, and some thoughts about how to make Cucumber work best.
A Ruby Message Queue service OnlineMQ
OnlineMQ - Internet Message Queue A free Ruby cloud “Message Queue” service. OnlineMQ is 100% web services oriented which means your integration can be done quickly (Soap - wsdl, Rest & Pox).
Sinatra related interviews
Here are three Sinatra related interviews, at RubyLearning, to read during the weekend. Aaron Quint, Adam Keys and Ryan Tomayko.
Ask RF: What is your I/O ratio?
I’m spending lot more time on learning/keeping myself updated in Ruby and Rails than writing code. And you? [following the The Tyranny of Choice post and comments]
Asking RubyFlow: Where can i find Radiant CMS Themeing Tutorials?
Hi World’s best Ruby community. Recently there have been an influx of Radiant CMS extensions. I would like to begin theming my install but have no idea where to start. The Radiant CMS wiki has no documentation on this and searching around google has lead me back to RF :) Thank you!
Auto-generate a Rails 2.3 Application Template File
Use youvegotrails.com to create a fully customizable Rails template.rb file from a selection of popular gems and plugins.
Rails TextMate bundle is ready for Rails 2.3.0
Rails TextMate bundle has had lots of great additions over the last few months and has been packaged up and is ready for download. If you want to add new snippets or improvements, remember to fork to git repo and install it directly from your own repo.
validates_timeliness v1.1.6 released - Date and time validation for Rails 2.x
validates_timeliness date and time validation plugin updated with Rails 2.3 support and some new options added.
cucumber 0.2 released after multitudes of 0.1.XXX.Y releases
Cucumber is a tool that can execute plain-text documents as automated functional tests. It is awesome. And finally version 0.2 has been released. As usual: gem install cucumber
Can YOU suggest new course contents (related to Ruby)?
Rubyists, we need your help / suggestions on the topics/contents of a new, free, introductory course. Details here. Thanks.
New up to 20x faster backend for i18n gem
Have an i18n Rails app? Then you might want to check out the new I18n::Backend::Fast backend that tries to optimize for the most common look ups and can be up to 20x times faster than the original Simple backend.
Hirb- Visualizing Trees In Irb
This post shows how to visualize trees in irb like this:
Numeric
|-- Float
|-- Integer
| |-- Bignum
| `-- Fixnum
|-- Date::Infinity
`-- Rational
Moonshine Released!
Rails Machine just released Moonshine, a Puppet and Capistrano based deployment and configuration management tool for Rails. I blogged about it over at the Rails Machine blog. If Puppet, Chef, Sprinkle, or Deprec are your kind of thing, you’ve gotta check out Moonshine.
Contest: Nested contexts in Test::Unit
Using Shoulda just for nested contexts? Try Contest, a tiny hack to make Test::Unit more readable.
The Great Rails Refactor
Yehuda Katz gave a great talk at Mountwest Ruby Conference 2009 called The Great Rails Refactor. Very informative speech about the things going on to move Rails in the right direction towards 3.0. Also, please make sure you listen to the last part about Competition. Yehuda really nails it, and definitely made me feel more at ease about the merge. PS Confreaks has to be one of my favorite things in the Ruby community. Those guys rock.
Remarkable 2.3 is out!
Remarkable (a framework for Rspec matchers) 2.3 is out! Remarkable 2.2.x series was made of frequent releases with deprecation warnings to consolidate the API. Until we get into 2.3, we improved support for ActiveRecord validations, fixed some bugs and made some changes, so we are safe and clear to work on new features and new matchers.