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.
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. [more inside]
Hash Tables Explained
What happens behind the scenes when you use a hash object in Ruby? Read this post to find out… http://www.blackbytes.info/2017/02/hash-tables-explained/
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. [more inside]
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. [more inside]
[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 https://hackernoon.com/percona-migrator-announcement-6a32d5b7484c [more inside]
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 [more inside]
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! [more inside]
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. [more inside]
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! [more inside]
Secrypto API
This API Allow to encrypt/decrypt text http://secrypto.herokuapp.com/
Extending git with Ruby
Git offers some extension hooks that can be used to make our lives easier, I wrote this blog post to explain how you can take advantage of them using ruby.
Two Rails Based Elasticsearch vs Postgres Benchmarks
Sites like Amazon can use Sub Aggregations and Simple Aggregations to quickly get category and brand counts for millions of products. These posts compare the performance differences and offer some insight into using searchkick for elasticsearch and Rails for postgres to determine speed differences.
Postgres: Adding foreign keys with zero downtime
This blog post discusses foreign key migrations, which have consistently burned me in Rails. It’s only vaguely related to Ruby, but I thought I’d share. There is a PR in Rails to hopefully make these migrations a little easier in the future.
Giving super powers to Rails nested forms with Vue.js
I decided to try vuejs.org to implement dynamic nested forms and I really liked the result. For more details and code: https://medium.com/@kdiogenes/giving-super-powers-to-rails-nested-forms-with-vue-js-5091c2e6b37e#.7jj5m9lcl