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.
The Minitest Cookbook
Have you been struggling to learn to test with Minitest? The Minitest Cookbook might just be what you’ve been looking for.
Chewy 0.7.0 is out
Chewy 0.7.0 is finally out! Index update strategies were completely reworked, default type scope is used in import to restrict result imported documents scope, class methods of indexes and types acts as named scopes, and more convenient and useful changes. Changelog
Using Docker to Parallelize Rails Tests
This article by Nick Gauthier explains how to parallelize your Rails tests by isolating them in Docker Containers. [more inside]
Fun with rails has_one :through association
Lately I had the chance to experiment a bit with the has_one :through association, here’s a recap of what I found
Observer pattern in 3 languages - Ruby, C# and Elixir
Typed up a blog post about Observer pattern implemented in three languages: http://blog.diatomenterprises.com/observer-pattern-in-3-languages-ruby-c-and-elixir/
How I've Convinced Emacs to Dance With Ruby
Most of my work revolves around Ruby on Rails projects and I tend to switch editors a lot. My two favorite are Emacs and Vim; I use them both. With this post I hope to give you a few useful snippets that you can use in your own Emacs config. Read It Here
Use your Ruby skills with Chef to manage your infrastructure
Learn how you can start using Chef to treat infrastructure as code and scale your operations easily. With this techniques you will be able to start testing and maintaining your infrastructure as you do with Ruby applications. Read the article.
Announcing crono 0.8.0
A time-based background job scheduler daemon (just like Cron) for Rails https://github.com/plashchynski/crono
Create fully-working SaaS application in Rails - free tutorial
Create fully-working SaaS app in Rails (with tests, accounts, membership, billing, etc). [more inside]
Implementing State Machines
Understanding state machines is one thing, but how do you go about turning theory into practice? This blog post details how to implement a state machine in a Rails application.
Revitalizing pg_morph
I just published a post about the newest changes in the pg_morph gem. Just to remind: pg_morph adds foreign key constraints for each polymorphic relation type by using ActiveRecord & PostgreSQL. Now gem do that without unnecessary database overload. Take a look »
Announcing Lotus v0.3.0
Announcing Lotus v0.3.0 - New features, improved security and real world apps. [Read the announcement]
Rescue front-end errors with a Rack middleware
The frontend_rescue gem provides a rack middleware that you can use to send front-end errors to your backend stack and do what you need to do. Read more
Automatic Security Testing of Rails Applications Using Brakeman
Brakeman is a tool that scans Ruby on Rails applications for common security vulnerabilities. I wrote a tutorial about installing and configuring Brakeman in a Rails application and integrating Brakeman with a continuous deployment pipeline. Run Brakeman on every Git push! Read the article.
Upcoming changes in Rails 5.0
A list of some of the upcoming changes in Rails 5.0 and why they have been implemented - https://intercityup.com/blog/upcoming-changes-in-rails-5-0.html
Lotus performance tested against Sinatra
Some time ago I heard about Lotus. A fresh Ruby framework for building web applications. It is created from stand-alone parts which are shipped as separated gems. This means that I am able to pick only the essential components for my project. The source code can be found on github. [more inside]
Ruby NLP Resources
A collection of links to Ruby Natural Language Processing (NLP) libraries, tools and software.
Capistrano 3's copy strategy, deploy via copy
Capistrano 3 :copy is a copy strategy for Capistrano 3, which mimics the :copy scm of Capistrano 2. [more inside]
Using message queue in Rails
I blogged about message queue in Rails - when it is useful, how it helps your application architecture and how to integrate it. http://adamniedzielski.github.io/blog/2015/03/22/using-message-queue-in-rails/
Full-stack web peformance book
I just released this ebook on web performance, it has a chapter on Ruby and rails optimization. The book is composed of about 50 pages full of practical examples. This link has a more complete description and a table of contents: https://payhip.com/b/gwpb [more inside]
So Coded Conf: Web Devs, Monks & Confetti!
So Coded is coming back to Hamburg this summer. Join us for a not-so-ordinary™ conference on July 23rd & 24th: http://2015.socoded.com [more inside]
kwstruct - Struct with keyword arguments
Let’s each stop reimplementing this over and over. https://github.com/maxim/kwstruct
Ruby Introspection - Metaprogramming
Introspection, the act of looking inward is something that humans do all the time. What makes me happy? Why did I make a certain decision? Well, our Ruby code can look can look inward and ask questions about itself too!
Integrate RuboCop/ESLint/JSCS messages with GitHub Review Comment
Saddler, this is yet another Hound/Pronto. To effectively use your lint messages!