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. [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: https://github.com/joshwlewis/validates_by_schema
Introducing the pg_partition_manager gem
Making it super simple to manage partitioned tables in PostgreSQL.
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: https://www.fastruby.io/blog/code-quality/code-coverage/rubycritic-4-2-0-simplecov-support.html
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]
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. https://github.com/rubygarage/truemail
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!