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.
JRuby at OpenFeint - a JRuby migration success story
JRuby at OpenFeint - a JRuby migration success story
Rails 4 compilation links
Curated compilation of interesting links. I encourage everyone to help making this grow and by giving a look at the links start guides about specific topics
Gosu-Keyboard - An easy DSL for handling keyboard events in Gosu
gosu-keyboard - A DSL for easily handling keyboard events within a Gosu::Window. [more inside]
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. [more inside]
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. [more inside]
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?
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? [more inside]
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. [more inside]
"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! [more inside]
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.