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.

re2 2.0.0.beta1: vendored dependencies & precompiled native gems

The first beta release of a major new version of re2 which no longer requires Google’s underlying RE2 “fast, safe, thread-friendly” regular expression library to be installed as it is now vendored with the gem (ala Nokogiri and libxml2). To save compilation time, precompiled native gems are available for Linux, Windows and macOS. [more inside]

Integration patterns for distributed architecture

Distributed architectures have been growing in popularity for quite a while for some good reasons. The rise of cloud services making the deployments simpler, as well as the ever-growing complexity of the applications, resulted in a shift away from monolithic architecture for many technical ecosystems. Microservices have emerged as an alternative solution offering greater modularity, scalability, reliability, agility, and ease of collaboration between multiple teams. Nevertheless, these benefits don’t come for free. The price to pay could be significant due to many factors, and one of them is dealing with some challenges that don’t necessarily happen when working on a monolith. One of such challenges is establishing the best way of integration and communication between services. [more inside]

A few things I've learned while working in dev containers

In the past few months, I’ve added development containers to several Ruby on Rails (and other languages/frameworks) applications. I’ve learned a lot along the way, and wrote some off the cuff thoughts on how I approach dev containers, how I treat them differently from production containers, and where there’s still room for improvement. Hope you’ll check it out!

minitest-substitute

Ever wanted to modify an ENV variable, an instance or class variable (e.g. on Config) for the duration of a block or for all tests of a “describe” group? This pattern emerged repeatedly in my suites and as I don’t like to bloat my test/spec helper, about time for the lightweight and dependency-free minitest-substitute gem. Drop cumbersome before and after handling with one or more easy to read with "ENV['FOO']", "bar" or with "@run_at", on: Config { Time.now } declarations. Happy testing!

Loading older posts