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.
A name-your-own-price Rails Workshop (SE Michigan)
Totally appropriate in the state hit hardest by the economic downturn. More info on registering.
Ruby Tips from Evan Phoenix: Numeric Classes
A short post by Evan Phoenix on the Engine Yard Blog.
The Ruby Reflector
The Ruby Reflector is a Social News website for the ruby and rails programming community. It’s purpose is to promote quality content from great authors. Articles are scored and ranked based on data from the social web, and marked up with tags that allow for wiki-pedia style navigation through the content, and pivoting around interesting people, companies, products, and projects.
Cramp - Asynchronous framework for the web
Cramp provides model and controller layers for writing asynchronous web applications. Check out my introductory post for more.
flyerhzm-metric_fu = metric_fu + rails_best_practices
I have forked metric_fu and add rails_best_practices to it. rails_best_practices is a great gem to check your rails app codes and give you some good suggestions for better rails codes. Check the flyerhzm-metric_fu for your rails app.
Geektool + Twitter updates on your desktop using ruby
Here is a small ruby script to display the latest tweet in your timeline on your Mac OS X desktop with Geektool. Just make the script a executable. Click here This could be modified using oAuth so your not exposing your login infomation .
Driving Large Scale, Multi-Language Development With Cucumber
We use Cucumber to drive the development of our entire stack. Currently, this consists of 3 Java applications and a Rails application that interact with MySQL and a HDFS data store. Every single time we check in new code we build the entire stack in TeamCity and run our entire suite of functional tests against it.
Mocking and Stubbing are evil
A blog post about the pitfalls of using mocks and stubs in your functional testing.
Flow Analysis & Time-based Bloom Filters
Working with large streams of data is becoming increasingly widespread, be it for log, user behavior, or raw firehose analysis of user generated content. Time-based bloom filters are just the tool for the job & the bloomfilter gem now implements a Redis-backed, counting, time-based bloom filter!
Sending secure passwords without SSL
Post describing how to use jQuery and OpenSSL HMAC to keep passwords secure, without needing SSL.
rate and tag MongoMapper objects in Rails!
Just released two new Rails plugins for apps using MongoMapper: acts_as_mongo_rateable adds classic rating support plus weighted rates and bayesian averages… and acts_as_mongo_taggable adds standard tagging functionality with some roundup and statistics methods to help build tag clouds and ranked lists. Both have pretty thorough tests, but there are still likely bugs to shake out. Please fork, contribute, and send pull requests if you fix bugs, improve performance, or add new stuff.
Rails and Merb Merge: Performance (Part 2 of 6)
Yehuda Katz wrote a great article on merging rails and merb which includes great examples and some benchmarks.
Which Ruby CMS Should I Use?
I am evaluating some of the CMS projects in the Ruby world. If you are interested check it out at http://whichrubycmsshouldiuse.com/ and I hope the information there is helpful.
Easily accelerate your Rails tests under Ubuntu
Quick post about optimizing Ubuntu mounting options in order to accelerate your test suites. (read the post). It worked for me and accelerated my tests by 55%.
Multiple sets of independent validations with validation_scopes
I cooked up ValidationScopes to expose the full power of ActiveRecord validations to more than one set of errors. Useful if you want to display different sets of errors in different contexts and still be able to save the object regardless of the additional validation sets’ state. It is about as loosely coupled as possible to ActiveRecord::Validations which means you can expect a smooth transition to Rails 3.
Learn more about MongoMapper
This article will help you during your MongoMapper learning phase by explaining a few features not yet documented.
Gem webhooks on Gemcutter
Get notifications of gems as they’re pushed to any URL you want. Read more here and check out an example app that uses this new feature.
Gravatar Image Tags: Updated and bundled into a gem
With the 0.0.2 release of gravatar_image_tag: Https support was added.; Ratings support was added; File extension support was added. It really is this easy: gravatar_image_tag email and you have gravatars in your application. Check out the well documented and configurable project on github
Cromwell — Lord Protector of your scripts
Cromwell allows you to easily protect your scripts from being killed while they are doing something that should not be interrupted (e.g. interacting with some non-transactional service) or is too costly to restart (e.g. long computations). Links: blog post, Cromwell on github, Cromwell on gemcutter.
RubyConf Taiwan 2010 CFP
RubyConf Taiwan 2010 will be held on April 25, 2010 in Taipei, Taiwan. If you want to give a presentation at RubyConf Taiwan 2010, please submit your paper. Any topics related to Ruby are welcomed. The deadline of call of papers is Jan 31, 2010. We have two session lengths for speakers: Session(45 min) or Talk(20 min). Please submit the subject, extract and author intro, by sending email to: 2010@rubyconf.tw
Get your local Rails application ready for I18N
I just launched a handy tool helping transfer your local Rails project to an i18n one by extracting text from HTML and helper methods from ERB views.
An introduction blog or Fork it at Github
Install: gem install ready_for_i18n
Usage: ready_for_i18n <path_to_ERB_source_files> [target path]
Non-Enligsh project usage: Check here
Cryptic Ruby Global Variables and Their Meaning
How many times have you looked at some ruby code and found strange variable names (eg. $0, $:, etc) and wondered what they meant? Well here’s an explanation
A custom Hoe template
I like to create Ruby projects, and I also like to use Hoe to manage them. With any Ruby project generator, I always hate having to add my usual boilerplate code and Rake tasks. Luckily, Hoe supports using project templates, stored in ~/.hoe_template, with the sow command. For example, here is the Hoe template I use to generate new projects, with RSpec 1.2.9 and YARD 0.5.2 setup. [more inside]
Lemon Unit Testing Framework
I just released v0.6 of Lemon, a unit testing framework that enforces a one-to-one correspondence between test cases/units and classes/methods. While still an early development release, it’s quite usable. And I’m curious to find out what others think of the approach.
R18n 0.4 for Rails
R18n now has full compatibility with Rails I18n and add to Ruby on Rails: filters, i18n support for models, time formatters, nice syntax and out-of-box pluralizations and autodetect user locale. Also R18n has Sinatra, Merb and desktop plugins.