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.
Gosu-Keyboard - An easy DSL for handling keyboard events in Gosu
gosu-keyboard - A DSL for easily handling keyboard events within a Gosu::Window. Read more
rspec-rails and capybara 2.0: what you need to know
I blog about some changes coming down the pipeline in capybara 2.0.
Cleaning the worst CSS files with relative ease
We have all seen them. Those really nasty CSS/SASS files that “someone else” wrote. Here is a gem I wrote to take those nasty files and clean them up. It reworks the CSS to remove duplication and keep it as DRY as possible. A Live version can be found here. or the source downloaded from github.
Convenient Trick for Tolerance-based Test Assertions Using #ish
How to enable the #ish syntax to ease the writing of automated Ruby system and integration tests that rely on fuzzy or tolerance-based assertions.
lazy_mail - A lazy and quick way to use the function mail
I write the gem ‘lazy_mail’ who provide lazy and quick way to use the function mail and offers configurations to write less code. Read more
Parse Extensive Metadata from Images using RMagick
I wrote a gem which parses extensive metadata from images using RMagick. Check it out at https://github.com/cavneb/rmagick-metadata
Phusion Passenger Enterprise - Nedap Healthcare Case Study
In this case study, we see how the $100MM annual revenue Nedap Healthcare uses Phusion Passenger Enterprise to serve over 150,000 clients in the healthcare sector per day and billions of requests.
Taking Sass to the Next Level (with SMURF and @extend)
Blogpost about some advanced uses of Sass for writing better, more modular frontend code. The first part gives an overview about SMURF, which stands for Scalable, Modular, reUsable Rails Frontends and is an effort to implement the SMACSS approach using Sass (& Rails). The second part of the post talks about lessons learned on the correct/sensible usage of Sass’s powerful but dangerous @extend functionality. Read more
Gem 'css_grid' -> helpers to use collections easily
This gem provide a css grid stylesheet, which you’r not force to use, and severals methods to create correct HTML when working with collections. Read more
Gistie is a rails based, git backed(gist) pastebin webapp
more about Gistie on github
Being for the Benefit of Future Developer
A software project passes through the hands of many different developers in its lifetime. How can we keep our project prepared for the future teams of developers that will inherit it?
Collecting a list of Colleges/Universities that teach Ruby and/or Rails
If you know of any please take a moment to list them Read more
How do you check whether a date is in a date range?
We all know (start_date..end_date).include?(this_date) is quite slow. If you have seen Ben Orenstein’s talk about refactoring, you might know (…).cover? is much faster… but is it fast enough? Read more
Tired of copying FactoryGirl sequences from project to project?
Take a look at the factory_girl_sequences gem, which provides a basic set of the most common sequences. Read more
"System" Gem Back Under Development
It has almost been 3 years since the system gem has last seen a git commit, but the project is now back in development! Read more
Making RABL and your Ruby APIs Fast
RABL is one of the most popular and easiest ways to craft high quality APIs in Ruby as used in large projects like Spree and foreman. As RABL’s popularity has grown, I often get questions about improving performance of APIs as the volume of traffic for the web service increases. I released a helpful guide that covers this question in detail called RABL in Production. If you have any other thoughts or questions, please feel free to raise an issue or help improve the article!
sport.db JSON(P) API Sample w/ Sinatra - Football Fixtures Web Service
I have created a little JSON/JSONP API service for the open sports database (that is, sport.db) using the Sinatra Ruby gem. For example, /event/en.2012_13/round/2 gets you the football fixtures for the 2nd round of the English Premier League (season 2012/2013). See the Sinatra single-file source or the start page for more info. Cheers.
Concurrent "Hello, world" with Celluloid
Tutorial-like blog post about Celluloid, Ruby’s Actor library.
Airbrake alternative
We’ve just added “Project Exceptions” addon to Workmate. It’s airbrake alternative and works well with airbrake gem. Pricing: $3 per project. Looking forward for your feedback.
Override the equality operator in your Ruby classes
Test driven development by example is a wonderful book. It could only be better if the examples were all in Ruby :). Mostly, it is pretty easy to convert the code to Ruby if you have some experience…..equality though, can be a little tricky to override if you are relatively new to the language. Fear not, because I’ve just blogged about how to override the equality operator in ruby, at the same time, throwing in some extra goodness of test driven development.
Fork Your Application's Data (Not Just Your Code)
Heroku just launched the ability to Fork your data from their postgres databases.
MSN + EventMachine
I just made a gem to connect to MSN using EventMachine. It works, but a lot of things can be further improved.
Using Nimbus with UITableViews in RubyMotion: An Example
Sometimes an example is the best documentation. Here’s an example of how to use Nimbus to help manage a UITableView and its cells.
Rails caching gotcha: expires_fragment silently failing? Here's how to fix it.
I recently came across an odd issue where attempts to expire a fragment cache in code run from the console or rake tasks were failing silently. I’ve written up the cause and one solution to the problem in case anyone else runs into this befuddling issue.
Matz is not a threading guy
I wrote down some of my thoughts/observations from Rubyconf 2012 around threading and the GVL. A few of the speakers actually called this out as an issue and Matz addressed some of the questions in his Q&A. Read all about it.