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.
Invisible Captcha new release: a honeypot protection plugin for Rails
Hello đź‘‹ I just released a new version of Invisible Captcha (v0.13.0), a gem to protect your forms/actions from spam bots and spiders. [more inside]
Managing Rails schema and data migrations without losing your mind
Rails database migrations are extremely powerful, but can be a mess if you don’t avoid the traps. This article outlines a boring way to handle schema and data migrations effectively. [more inside]
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. [more inside]
[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. [more inside]
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! [more inside]
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. [more inside]