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.
Creating own small ruby integration server – Part 2 – Handling Rubies and gemsets management easier
Handling Rubies and gemsets management easier - second part of my tutorial about building from scratches small integration server for development purpose.
rails_best_practices 1.1.0 released
I have released rails_best_practices 1.1.0, adding “restrict auto-generated routes” check, check out the release announcement.
What's "new" in Ruby
New on the Collective Idea blog: a quick introduction to Class.allocate, a class method you can use to allocate space for a new object and skip initialization of that object.
How to install rbenv outside of the $HOME directory
rbenv is the new black when it comes to managing your Ruby environments, but how do you install rbenv outside of the $HOME directory? You can probably click on the link to find out…
Creating own small ruby integration server – Part 1 – RVM Ruby version management directly from Ruby
I just started creting own small Ruby integration server software here and I’ve decided to make tutorial out of it. Check it out.
I just released a gem to consume SurveyG...
I just released a gem to consume SurveyGizmo’s new rest API.
Web apps are dead, long live web apps!
Interesting article on the way our community is shifting to backbone and coffeescript on top of rails.
simple_cacheable gem
I just released simple_cacheable gem, it provides the cache apis for find(id), find_by_xxx, instance method and association, here is an introduction blog post.
Rails Misapprehensions: Helpers are shit.
The current helper implementation in Rails is not good. This post explains why and how to get out of this misery using draper, cells and some different approach.
RDocodile is Dead
As of this morning, RDocodile is no more. The Ruby community showed the barest of interest in the work. Less than seven individuals took watch of the projects on GitHub. I suspect the lack of interest stems primarily from the rise of RDoc’s main competitor, YARD. I had hoped RDocodile would give some invigoration to RDoc, but the maintainer of RDoc itself gave cold reception to the whole endeavor. So I have decided to end development completely. It might seem rather unfortunate, such a large amount of good work going up in smoke, but I’m not bothered by it. Failures compose the soils of success. Instead of looking back, I look forward. And I see even better documentation pastures on the horizon.
OOP, DCI And Ruby - What Your System Is Vs. What Your System Does
Read more about why you might care about DCI (Data, Context, and Interaction — a new approach to object oriented code) in my latest post on the subject. OOP, DCI And Ruby - What Your System Is Vs. What Your System Does discusses separation of objects from the actions they perform.
Do you know Ruby Doctest?
Victor Goff’s guest blog post on RubyLearning - Do you know Ruby Doctest? explains how to document our programs using IRB sessions, resulting in a way to provide usage examples as well as knowing when an expected use fails because of some update or changes to our program or environment.
google_plus search
the google_plus
rubygem has been updated to include the new search and comments API endpoints.
Optimizing HTTP: Keep-alive and Pipelining (in Ruby)
Do use reuse HTTP connections in your code? Does your app server support pipelining? You can speed up your code and your apps by orders of magnitude if you answer those questions correctly. A look at the HTTP internals, and Ruby libraries and solutions.
Simple forms for Twitter Bootstrap in Rails
Twitter Bootstrap is awesome, but as always, but writing forms that adhere to its markup expectations can be a pain. Especially when you want to incorporate inline error messages. [more inside]
rake version:bump:patch without jeweler
A nice timesaver from jeweler days rake version:bump:* Now as standalone drop-in for your Rakefile.
How to generate "Share with Facebook" links, with summary, title and images but without OG data
Just wanted to share my helper, that proven to be useful, to share with Facebook when your don’t have the relevant OG data. See this post.
About Ruby/Python concurrency and the GIL
As a follow up to my RailsConf talk, I wrote a blog post talking about Ruby/Python concurrency and the Global Interpreter Lock explaining what is a GIL, why it is used, why some other implementations don’t use one/removed it and finally why C Ruby won’t be removing it soon.
Computer Vision: How to Detect the Corners of a Chequerboard
I made a 30 minutes screencast on how to detect the corners of a chequerboard (detecting the corners of a chequerboard is a prerequisite for camera calibration). The software is implemented using the Gems hornetseye-ffmpeg and hornetseye-xorg (see documentation of HornetsEye libraries) and of course Ruby.
Padrino Framework: Released 0.10.3 (Sinatra 1.3 support and much more)
This month has been a great time for the Sinatra community at large. Sinatra 1.3 has been released with a lot of exciting changes! Naturally, Padrino needs to be taking full advantage of the new Sinatra core. Today, we have released Padrino 0.10.3 with full Sinatra 1.3 support, streaming support, and several major improvements of our own including conversion to a YARD api, major doc improvements, minitest, improved logger and several important bug fixes. Check out our blog post for more detail.
Introducing QA Robusta - A System Test Automation Framework
To all automated test case developers, I’d like to share a recent OSS project, QA Robusta. If you are a fan of Ruby you may want to check this project out. It leverages great aspects that the Selenium community provides(selenium-webdriver) and uses the watir-webdriver as a top layer. I’ve only executed this under Linux but it is intended to run under all OSs. If you have moderate experience with Ruby it shouldn’t take but a few minutes to run the demo test case and get familiar with the framework. If you have any question contact me directly or I’ll setup a separate group for discussion. [more inside]
Bldr - Minimalist JSON templating DSL
These are my slides from the lightning talk I gave at Rubyconf 2011. Link
This week is MRI Documentation Week
Several months ago, Eric Hodel issued a challenge encouraging folks to contribute to Ruby’s documentation to make 1.9.3 the most documented version of Ruby ever. That challenge was met, but then contributions died down after that. This week, Mendicant University is making contributing to Ruby’s documentation easier than ever by providing open office hours via IRC and also helping you find areas of Ruby that need documentation the most. We’ll tell you what needs patching, help you form a patch, and make sure it gets merged upstream. No matter whether you’re an OSS newbie or a Ruby expert, you’re welcome to join us!
Adding multi-tenancy to your Rails app: acts_as_tenant
Our latest blog post introduces acts_as_tenant, a gem that allows you to add multi-tenancy to your Rails application in an easy and out-of-your-way manner. Enjoy!
Rails Callbacks and Background Jobs
Be aware of database transactions when using callbacks to enqueue background jobs.