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.
Profiling Ruby 2.0 apps using DTrace - Part 2
Part 2 of much loved Profiling Ruby 2.0 apps using DTrace
Troubleshooting Konacha Timeout Errors
If you’re having Konacha timeout errors, you’re not alone. Read how we fixed this problem at SmartLogic.
Auto-Saving Screenshots on Test Failures & Other Capybara Tricks
I just released a blog post detailing some Capybara tricks.
Compose nested entities with Datamappify
For those of you who don’t already know, Datamappify is a library for separating domain logic from data persistence. It utilises existing ORMs so you don’t lose the powerfulness of say, ActiveRecord. [more inside]
Phusion Passenger 3.0.21 and 4.0.5 released, fix temp file vulnerability CVE-2013-2119
Phusion Passenger 3.0.21 and 4.0.5 have been released. Both versions contain, among other changes, a fix for security vulnerability CVE-2013-2119.
Naught: A toolkit for building Null Objects
I just released a gem called Naught for implementing the Null Object pattern. While Null Objects aren’t exactly difficult to create by hand, Naught has some features you may find helpful.
Managing test data with factory girl
When writing software tests, you usually need to get your application into a certain state by creating test data. This test data is the basis to run your tests on. In this screencast you will learn about the test data generation tool factory_girl. [more inside]
HAL, Siren, Rabl, Roar, Garner: Building Hypermedia APIs in Ruby/Rails
This blog post covers a broad overview of Hypermedia API technologies for Ruby, and why we went with HAL, Grape, and Roar at reverb.com:
Rails Quick Tips - ActiveRecord::Calculations.pluck
Pluck is an ActiveRecord calculation method introduced in Nov 2011 and is designed to return a collection of values by performing a single column SELECT query as direct SQL. Now what problem could this help solve and how does it affect us?
RailsGirls Summer of Code crowdfunding campaign
Did you know that women make up only 2% of of the open source community? That’s right. Only 2%. [more inside]
Setting up Jasmine tests for CI
Say you’re using Jasmine, and you’re writing CoffeeScript in a Rails app. Here are some tips for running those tests in CI environment.
Don't mock what you don't own
Continuing a discussion about how to achieve better isolation in your tests.
ruby-install 0.1.0 released!
ruby-install 0.1.0 has been released! Supports MRI, JRuby, Rubinius, installing into /opt/rubies or ~/.rubies, installing arbitrary versions right after they are released, installing build dependencies via the package manager, applying arbitrary patches and passing in arbitrary ./configure options.
RuboCop 0.8.0 Is Out, Support for JRuby and Rubinius Is In!
I just released RuboCop 0.8.0! The big news is that RuboCop now runs on JRuby and Rubinius :-)
Need to Version Your API?
Quit polluting your routes file with version namespaces or complicating your logic with separate controllers. Version Cake 1.2 is the unobtrusive way to version APIs in your Rails app. Works great with Jbuilder and RABL. Now with Rails 4 support. [more inside]
RSpec 2.14.0.rc1
RSpec 2.14.0.rc1 has been released. RSpec 2.14 introduces a new syntax for message expectations, bringing them in line with the new expect syntax for state based expectations. [more inside]
Phusion Passenger 4.0.4 released
Phusion Passenger 4.0.4 has been released with many bug fixes.
What's new in Active Admin 0.6
Active Admin 0.6 has been released, and contains lots of changes. Here is a sum-up of these changes, to help you choosing to upgrade or not: https://discuss.gemnasium.com/t/activeadmin-0-6-0-is-out/8. We’d like to hear if anyone had troubles while upgrading to this version.
TheRole 2.0 released. Authorization for Rails 4 with administrative interface
TheRole is semantic, flexible and lightweight role system for your rails 4 application. All permissions are defined in with 2-level-hash, and store in database with JSON. Using of hashes, makes role system extremely easy to configure and use. Bye bye, CanCan, I got The Role! ;)
Hooks Got Better.
The hooks gem gives your objects simple hooks with callbacks. In the new 0.3 version we added some features like callback chain halting.