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.
Introducing Skunk: Combine Code Quality and Coverage to Calculate a Stink Score
Skunk is a Ruby gem that will combine code quality metrics from Reek; Flay; Flog; and SimpleCov to calculate a Stink Score for a file or set of files. Read more
[Screencast] Plugging in AnyCable
ActionCable can handle quite a bit of traffic, but it gets to a point where it can become a burden on the server. With AnyCable, we can not only handle more traffic, but it is also lighter on the resources. https://www.driftingruby.com/episodes/plugging-in-anycable
TAP Formatters for RSpec-3
RSpec TAP Formatters provides four different TAP 13 format style with a proper nested display of example groups and includes stats for the total number of passed, failed, and pending tests per example group. The supported formats are:
Saving 3 Weeks Every Year by Speeding up a Test Suite
How I sped up a portion of a Rails test suite from 18 minutes down to 6.5 minutes. The post goes over the process of identifying the bottleneck and the challenges of adopting the solution. The app in question is open source and helps Veterans get their appeals for disability benefits processed faster. Read more
validates_by_schema v0.4.0 released
Keep your ActiveRecord validations DRY by inferring them automatically from table column properties:
Introducing the pg_partition_manager gem
Making it super simple to manage partitioned tables in PostgreSQL.
Introducing Deimos: Using Kafka as the Data Backbone for your architecture
Deimos has been used in-house at Flipp for about two years as a way of marrying messaging (Kafka), data schemas and encoding (Avro), and databases (ActiveRecord). We use this as a way to unlock data living in databases to be part of a “data backbone” which powers our microservices architecture. We’re excited about making it even better - would love to hear feedback! Read more
sportdb-readers Gem - sport.db Readers for Leagues, Seasons, Clubs, Matches, Etc.
Hello, I’ve put together the sportdb-reader gem / library that
lets you read in (import) text datafiles into any SQL database (using the sport.db schema / tables) using SportDb.read. Try it with the English Premier League e.g. (2019-20/1-premierleague.txt) or the Deutsche Bundesliga e.g. (2019-20/1-bundesliga.txt), for example. Cheers. Prost.
RubyCritic now has support for SimpleCov
This is how we helped to implement this feature:
Safely Removing Image Assets from Rails
How to safely remove image assets from a Rails app. If you have a legacy app, your image assets often turn into a bloated junk drawer. Clean them up for faster tests, deployments, and less clutter. Follow this guide to remove Rails image assets with confidence.
End-to-end testing for API only Ruby on Rails apps with Cucumber syntax
My experience with implementing end-to-end testing for API only Rails apps leveraging the gherkin syntax. A real life example of the importance and the benefits of this level of testing. Read more
New release of Truemail 🚀 configurable plain Ruby 📨 email validator
Added event logger and json serializer for email validation result. Be sure that email address valid and exists.
Getting Started with Svelte and Rails 6
Svelte is slowly rising to fame these days and it’s getting more and more traction with new version 3 being released in April. If you’re interested in how to get started with Rails and Svelte, this is the right post for you! We’ll go through the whats, the whys, and the hows between the two. Read more
Streaming Large ZIP Files in Rails
I recently went down a rabbit hole to describe how I implemented streaming of large ZIP files in Rails I hope you learn a thing or two about Rails APIs and HTTP streaming. Enjoy!