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.
Coding Adventures - A Ruby Newsletter
I recently decided to start a newsletter about Ruby. I’m new to working on my own real projects. It is up and running but missing one thing: you! If you would like to know what I do, subscribe here!
TaskJuggler 3.2.0 delivers improved Scrum support
TaskJuggler is a modern project management software that uses a DSL to capture all project data and features a scheduler with automatic resource load balancing. This release adds a new report type to track any task or resource attribute over time. This can be used e. g. to generate burndown charts for your Scrum project. The source code is hosted on GitHub.
Ruby tricks: Array syntax
Learn a nice Ruby trick! The Array method is a nice way to handle special cases about arrays and clean your code.
Writing MiniTest extensions
It’s pretty easy to extend MiniTest. Below I show you how to add very simple implementation of expect {}.to change {}.by(x) from RSpec, in 13LOC.
It should work out of the box on Ruby 1.9.
https://gist.github.com/2584768
Upload CSV in Rails 3 and test with capybara
Again a new take on an old problem, uploading a CSV file that will alter the structure of your data and testing it with Capybara. You can read the full post on wealsodocookies
use after_commit
Most developers use AR callbacks after_create/after_update/after_destroy to generate background job, expire cache, etc., but they don’t realize these callbacks are still wrapped in database transaction, they probably got unexpected errors on production servers. I wrote a post to suggest you that you should use after_commit for those callbacks that no need to execute in one transaction.
Travis CI announces Pull Request support
Travis CI just announced Pull Request support.
Canard makes role based authorization simple in your Rails app.
I just launched Canard 0.3.1. Canard adds role based authorization to your Rails applications. Extending the popular CanCan and RoleModel Rubygems Canard lets you define abilities for roles under your app directory making authorization a first class citizen in your application. Canard also adds some simple scopes for finding users based on their roles. [more inside]
Seeds, a quick and easy way to populate your db/seeds.rb file with existing data
I just launched seeds, a ruby gem for populating your db/seeds.rb file with existing data from your Models. Allows you to include Models, exclude Models, and exclude certain fields in your models from being added to the seeds.rb file.
Spree 1.1.0 Released
We’re pleased to announce that Spree 1.1.0 has been released. We’ve been hard at work the past two months getting this release ready. This is also the first Spree release to support Rails 3.2.×. All it took was 790 commits by 34 different authors (including many first-time committers.) [more inside]
OAuth with OmniAuth and Github
I blogged about how to use OAuth with OmniAuth and Github
Sadie Eachers Explained
I just wrote an article explaining how Sadie provides another data gathering optimization path via “eachers.” This follows a flurry of commits on the eacher code that fixed a number of bugs relating to multiple eachers hung on a single primer and eacher-on-eacher-provided-key/val pairs, so an upgrade is advised for early eacher adopters.
Legacy Concerns in Rails
The cats out of the bag, Ruby isn’t immune to legacy code problems. But we can make our Rails apps erosion resistant read more.
Tested CSV export in Rails 3, new take on an old problem
I needed to do a CSV export yesterday, and detailed the process from testing to exporting.You can read the complete post on wealsodocookies.
tmux Tutorial
In case you still haven’t tried tmux: this tutorial contains all information you need to start, gathered in one place - tmux Tutorial
Exhibit vs Presenter Patterns
I just published an article on the Exhibit pattern vs the Presenter pattern. The Exhibit pattern was introduced by Avdi Grimm in Objects on Rails. These two are similar in concept and structure, although vary in their use cases.
The Business Tip DHH Gave me Last Night
A dream, and a business tip that DHH gave me last night.
Rails Edge: Multiple Route Files
You can now have multiple route files in your rails [edge] app.
Ore 0.9.0 released
Released Ore 0.9.0. Ore is a flexible RubyGem project generator, supporting Git/Hg/SVN, gemspecs, gemspec.yml, rubygems-tasks, bundler, .rvmrc, RDoc, Markdown, Textile, YARD, RSpec, Test::Unit and installable templates. [more inside]
Simba v0.0.5 is released! - provide you ruby off rails bestpractice.
Simba provide you ruby off rails bestpractice.
named_emoji has been released - You can get the emoji for Mac OSX easily
I just released named_emoji. You can get the emoji for Mac OSX (Lion and Later) by name easily like NamedEmoji[:smile]. The emoji names are from Emoji cheat sheet.
My first look at mruby (with code)
Just posted my first look at mruby with a practical overview, and a naive benchmark.
rubygems-tasks 0.2.0
rubygems-tasks are agnostic and unobtrusive Rake tasks for building, installing and releasing Ruby Gems. rubygems-tasks are compatible with plain .gemspec files, support Git/Mercurial/SVN, PGP signed tags, package checksums, PGP signed packages, a console task and ANSI coloured output! [more inside]
Difference 1.0.0 Released
I just launched difference to compare 2 activerecord objects. Feel free to download and contribute to it. Hope you find it useful.