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.
Awesome Rubies (Compilers, Interpreters, Virtual Machines, Parsers, etc.) List
Hello, I’ve started yet another awesome collection on GitHub over at the Planet Ruby. What’s news? The awesome-rubies repo collects Ruby compilers, interpreters, virtual machines, parsers, docu generators, static code analyzers, type annotations, version managers, etc. Anything missing? Contributions welcome. Cheers.
Fixing a slow Rails development server
We recently helped one of our clients speed up their Rails app in development. Please join us on this journey towards better performance, developer-happiness, and saving $$$!
Newscombinator
Reading a lot of news-sites is tiring. Being top-informed on Reddit, Ycombinator, Makernews, Datatau, Coinspotting and many more has become a hassle. The Newscombinator combines all those sites and grabs it from a publicly available API. [more inside]
Better Persistence with ROM
The blog post of Adam Hawkins with an example of using Ruby Object Mapper. [more inside]
Setting up Atom for Ruby and Rails Development
After using Sublime and Vim for several years, I switched to Atom a year ago, and have not missed one feature from the other two so far. Here are the packages, preferences, and tips I recommend for getting the most out of this great open source editor. [more inside]
ActiveRecord Strict Validations, Minitest, and Shoulda
Are you using Thoughbot’s shoulda gem with Minitest? How about strict validations in ActiveRecord? I think these are great things to add to your Rails backpack of tools. Here’s why.
Your template language is killing the web.
I wrote an article about how template languages increase complexity when building for the modern web.
Slack on Rails
How to add a Slack integration to your Rails apps. (Spoiler alert: it’s super easy.) [more inside]
Some lessons learned using the Google Directory SDK Ruby client
Here are some lessons I learned during a recent project that hit the Google Directory API using the google-api-client gem.
simple rspec helpers that make testing APIs more fun
rspec-api_helper was just released and helps you test your JSON API without parsing and scraping your own API endpoints.
Updates to Rails Composer
An option to disable Rails Turbolinks, installation of the Bundler gem (because RVM no longer installs it automatically), fixed errors with Haml and Slim, and added the rails-stripe-membership-saas example application. See the blog post about Updates to Rails Composer for details.
Splitting your app into smaller apps using RabbitMQ
After many years of development, we realized our app had become too complex, causing development, testing and debugging to be much harder - to solve this problem we used RabbitMQ, moving some functionality outside of main app:
Released AS::Duration
I’ve just released AS::Duration, which is an extraction of ActiveSupport::Duration. If you’re in a non-Rails project, and you want the lovely 2.days.ago and 1.month.from_now syntax (but without having to pull in ActiveSupport), this gem is for you!
Lex tool in Ruby released!
I’ve released lex, a Ruby implementation of GNU lex tool. I’m looking forward to community contributions in implementing lexers for the many languages inside the lexers.
How Gemnasium is using docker
Gemnasium explains how they use docker everyday: Gemnasium in Docker wonderland
7 Deadly Sins in Ruby Metaprogramming
My guest post on codeschool blog: 7 Deadly Sins in Ruby Metaprogramming
SOLID Review: Dependency Inversion Principle
The final SOLID principle is known as the Dependency Inversion principle. Arguably the most important of the five principles, the Dependency Inversion principle can be thought of as a culmination of the principles preceding it. Systems that abide by the other SOLID principles tend to follow the Dependency Inversion principle as a result. [more inside]
Gem of Week #17 - datapak gem - work with tabular data packages (.csv files w/ .json)
Hello, over at the Planet Ruby the Gem of the Week series continues with #17 - datapak - that lets you work with tabular data packages (.csv files w/ datapackage.json) using SQLite (w/ ActiveRecord). Full article. Cheers.
Script Persistence: Writing fail-safe, idempotent Ruby scripts with PStore
PStore is an super-easy persistence layer for building scripts that you can run, and run again without fear of failure or duplicate execution. [more inside]
aquam an Object-Oriented Finite State Machine for Ruby
aquam helps you to define Finite State Machines with a very simple DSL which also will validate events, states and the transition between them. [more inside]
How to find out which gem a Rails helper comes from
A quick example of how to find out which gem a Rails helper comes from when the method name is ambiguous, such as icon. [more inside]
Live — Code Dojo: Game Grid
We’re currently live streaming our company Code Dojo on YouTube: