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.
feedtxt gem - reads Feed.TXT - feeds in text w/ metadata (YAML) n content in markdown
Hello, as an alternative to JSON Feed I’ve put together Feed.TXT - a new feed format in plain text with structured metadata in YAML and content in HTML or Markdown. Use the new feedtxt gem / library to read / parse the new feed format for publishing & sharing posts, articles, podcasts & more. Try Feedtxt.parse() returning an array with a metadata hash and items (w/ metadata hash and content). Cheers. PS: Feed.TXT is also knowns as RSS (Really Simple Sharing) 5.0 ;-)
How to Build a Simple, Lightweight APM Service from Scratch
In this article, Tyler talks through the process that he went through to build Tracebin, an open source “bin” style APM service. He worked through the challenges of hooking into framework’s instrumentation services, patching database libraries, keeping a small memory footprint, handling concurrency, reducing computational overhead, asynchronous data transmission and performance considerations on the server side.
Debugging Rails views in production
Quick tip for debugging what’s getting slow in the views in production.
The Future of News (Facebook & Co) w/ Web Feeds & feedparser gem ;-)
Hello, the notes from last night’s Vienna.rb talk titled “Meet Jason Feed - The Future of News & Syndication (Facebook & Co) w/ Web Feeds (Ruby Edition)”. All about Web Feed Formats in XML (Atom, RSS), JSON (JSON Feed), HTML (Microformats w/ h-entry/h-feed), TXT (Feed.TXT w/ YAML & Markdown) and more. The message & conclusion: Live and let live! The more formats the better! Let the computer (e.g. feedparser gem) handle the reading of feeds. One gem to rule them all! All your base are belong to feedparser ;-). Cheers.
Why you should probably avoid mixins
Mixins are another syntax for inheritance and inheritance is bad when used for code sharing
Using Rails with webpack generated assets
We wanted to use existing Rails workflow to upload the assets generated from webpack. Was able to achieve that with existing gems like asset_sync and sprockets gems and little rake task. Read more
Taking advantage of Mailchimp web hooks
An article on how we can take the advantage of the Mailchimp web hooks in order to keep our database synchronized with MailChimp data. Read more
Unit testing ActionCable channels with RSpec
Rails 5.1 doesn’t have official support for testing ActionCable channels yet. Here is the minimal example how to unit test a single channel action.
Acceptance testing using actors/personas
A lot of examples on how to structure your tests using classes and abstraction for better readability. Read more
Organize Your CSS with BEM
Learn how to organize your CSS with BEM. It’s great when your project starts to scale
Rubygems Monthly #2: Sinatra 2, Bundler 1.15, Rubocop, CanCanCan 2, Devise, Puma and
Gemnasium recently started to do monthly digest of some notable gem releases, here’s the second edition. :) Read more
Speeding Up Rendering Rails Pages with render_async
Adding new code to Rails controllers can slow your pages down. Find out how to make rendering your Rails pages faster. Read more
Deploy early and often
How can you deploy features that are not production ready yet?
Universal feedparser gem v2 Adds HTML Feeds w/ @Microformats (h-entry, h-feed, etc)
The universal feedparser gem that reads web feeds in XML (RSS, Atom) and JSON (JSON Feed) now supports HTML feeds w/ Microformats (h-entry, h-feed, etc.) Note: Microformats support in feedparser is optional. Install and require the the microformats gem to read feeds in HTML with Microformats. Happy publishing w/ web feeds. Cheers.
Digging into various gemspec file specifiers
I was cleaning up a gem’s packaged files and did some investigation around how various gems specify their file lists. Some interesting bits around “git ls-files” and whatnot.
Creating a Heroku-like Deployment Solution with Docker
This tutorial will show you how to write a simple Ruby cli script, capable of deploying a sample application to a remote host, similar to Heroku’s. It will also have other commands for rolling back to previous versions, attaching longs and tracking which application version is running.
DeviseInvitable + Rails API
Using the goodness of :invitable with a Rails API backend and Emberjs Read more
RubyC 2017 Conference review
I just visited the biggest Ruby conference in Kyiv, Ukraine and wanted to share my thoughts about it:
Ruby Gem to have a Redis dashboard inside a Rails app
I was tired of connecting manually to my Redis servers to get some basic health informations. So I built this Sinatra app to have a dashboard inside my Rails app. I just open source the gem today:
Faker Gem: Fake Data Generation in Ruby
Fake Data Generation in Ruby: Faker Gem
Power Moves: SQL Server on Linux, Rails, and Docker
Getting started with Rails v5.1 and SQL Server using Docker.
How to deal with major Ruby on Rails upgrades (like moving from 4.1 to 5.1)
Gemnasium has been working on various apps, maintaining them, upgrading them and hosting them After all those years, we came with a simple, yet efficient, framework to upgrade apps. Read more
N+1 Control: prevent the N+1 queries problem
NPlusOneControl () is a new tool to prevent N+1 problems. Read more
Three Database Architectures for a Multi-Tenant Rails-Based SaaS App
When designing a multi-tenant architecture for your SaaS app, you need to provide a safe solution for tenants. In other words, you need to safely separate each tenant’s data. We’ll describe how to design the database layer and what Ruby gems you can use for multi-tenant Software as a Service applications.