RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

[Screencast] Rails API - Throttling with Rack::Attack

Save expensive calculation time using Rack::Attack, we will learn how to limit requests coming into our application. This gem not only limits requests, but can be used to blacklist or whitelist users as well. https://www.driftingruby.com/episodes/rails-api-throttling-with-rack-attack

Stubbing External APIs with WebMock

I’ve been testing code that uses third-party APIs for almost as long as I’ve been writing Ruby, but it wasn’t until recently that some particularly heavy integration requirements got me thinking about the right way to go about it. In this post, I describe the approach that I’ve been using to write fast, manageable tests for distributed systems using WebMock.

Version Compatibility Test

How many times have you run into version compatibility issues that takes up a majority of your troubleshooting time? Wouldn’t it be nice if we could come up with a specification? Who reads the details buried in the readme files? Even if you diligently did read it, is it possible to juggle all those compatible version numbers for different version of the library/framework in your head while troubleshooting? Wouldn’t it be nice to make it a executable script? Read Version Compatibility Test to find out how you can cut down time spent in troubleshooting.

Enforcing unique jobs in Karafka and Sidekiq for single resources

When working with multi threaded and multi process systems that consume messages in parallel, you need to be able to enforce some limitations on the processing order. This is especially important, when you process data related to same elements. In this article, I describe some of the solutions suitable for both Karafka and Sidekiq.

Profile picture (or any file) uploading with Grape + Trailblazer + CarrierWare

This article is about how to implement pictures (or any other file) upload with the Grape + Trailblazer + CarrierWave stack. The first value of the stack (Grape) can be changed for anything else (Hanami, Sinatra, Rails API, etc) — it doesn’t matter. From the endpoint to the specs.

HerokuOps Gem

I’ve moved many of my standard Heroku application, pipeline and deploy tasks into a gem. Consider this an MVP; it’s rough around the edges, but gets the job done like a champ. [more inside]

Loading older posts