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.
A Simple Introduction to Structs
An introduction to Ruby structs, their abilities, and when to avoid them.
How To Test Ruby CLI: Console
Learn how to programmatically interact with a child process (an IRB console) from Ruby. This is how I test Hanami CLI.
A Medium editor for Rails
Hey, I’ve released a new version of Dante2, a Medium wysiwyg clone, which supports a better Rails integration and es6 module support check it out on
Handling exceptions in Rails' test environment like in production
Recently I encountered a difference between running Rails in production and test environment, and how you can fix it:
Ossert, a Ruby gems ranking system utilizing an Open-Source Maturity-like model
In our work, we come across a plenty of libraries, frameworks, and tools. Among the alternatives, we are supposed to choose the best option — and support the existing code relying on it. Read more
Hash Tables Explained
What happens behind the scenes when you use a hash object in Ruby? Read this post to find out…
New org for feedparser (atom, rss, etc.) and feedfilter (strip_ads) gems
Hello, for easier (re)use and contributions I’ve moved the feedparser and feedfilter gems to its own github org /feedparser - there’s no dependency on planet pluto ;-) - its former home. The feedparser gem offers a web feed parser and normalizer for Atom, RSS 2.0 and friends. And the feedfilter gem offers filters ‘n’ rules for easy (re)use e.g. strip_ads for feedflare of tracking bugs for feedburner, etc. Cheers.
sidekiq-merger 0.0.10 release!
Merge sidekiq jobs so that you can cancel notifying emails or batching similar ones. The repo includes Dockerfile for you to try the functions without any effort. Read more
Simple tips to make scaling your database easier as you grow
In this post we’ll discuss a few easy wins - things you can do when a Rails project is young to make it much easier to scale its data layer as the project grows. http://blog.honeybadger.io/easy_rails_database_scaling_wins/
The Ruby Book Club Podcast reads 'Refactoring: The Ruby Edition'
The Ruby Book Club Podcast is now reading ‘Refactoring: The Ruby Edition’. You can find all of the episodes so far here, including older series where we discuss ‘99 Bottles’ and ‘Confident Ruby’. You can also subscribe wherever you normally get your podcasts.
OpenStreetMap Blogs (blogs.osm.org) Moved from Python to Ruby ;-)
Hello, Thanks to Andy Allan for moving the OpenStreetMap Blogs from the classic Planet Planet (in Python) to the modern (Planet) Pluto (in Ruby). See the new planet setup on Github. Cheers. PS: What’s Pluto!? A Free Planet (Static) Site Generator - Auto-Build Web Pages From Published Web Feeds -> feedreader.github.io
About PStore feature of Ruby stdlib
PStore(persistent store) implements a file based persistence mechanism based on a Hash. It writes Ruby objects to an external file so it can access easily if needed. Read more
[Screencast] Managing Servers with Ansible
A look into the Drifting Ruby network architecture and how I manage deployments with Ansible. https://www.driftingruby.com/episodes/managing-servers-with-ansible
rspec-benchmark v0.3.0
rspec-benchmark adds a new performance matcher for comparing between two operations.
Percona Migrator - online MySQL schema migrations in Rails
“Percona Migrator Announcement” @prez_pau Read more
Customize Your Spree Views Without Deface
The spree developer guides suggest using Deface; after spending time developing applications for clients who use Spree, I’ve found that sticking to Rails conventions is the most efficient and clear way to build your custom Spree application. Read more
Sharing models between Rails apps – Keeping Rails engine migrations in the engine
Sharing models and a database across multiple Rails applications might not always be the best idea ever. Luckily there are tricks that allow you to do it right. In this article I describe how to keep migrations in the engine and make them run only once (not from each application that uses shared models). Sharing models between Rails apps – Keeping Rails engine migrations in the engine
NLP with Ruby goes online
Today we announce the online version of the RubyNLP list: http://rubynlp.org Read more
letsencrypt_heroku
Eventually I found a way to automate the SSL setup for heroku with letsencrypt without those annoying manual steps. And it also works for the renewal process! Read more
In Defense of Sliming
Don’t apologize for starting with a simple passing test. The practice of putting an obviously-temporary result as a first step in testing is useful. Read more
How to disable transaction blocks during migration
Migrations are used to modify your database. By default, all migrations run inside a transaction. You can disable the transaction during migration. Let’s have a look on how to disable transaction block! Read more
Quickly add SSL to Heroku, for free
With the rise of Let’s Encrypt, getting an ssl certificate should be as simple as running a single line of code. This gem does just that. Although designed for Heroku, this gem can also be adapted to other providers. Read more