Dev-Links #19 - Ruby + JS

15th May 2022 – 495 words

After a longer break from this type of post, here a collection of random Ruby + Javascript resources that I found recently.

GitHub - nevir/Bumbler: Track the load progress of your Bundler-based projects

Track the load progress of your Bundler-based projects - GitHub - nevir/Bumbler: Track the load progress of your Bundler-based projects

Already shove a whole second on each app run by un-require rubocop

GitHub - dropbox/zxcvbn: Low-Budget Password Strength Estimation

Low-Budget Password Strength Estimation.

Dropbox’ made password estimation tool. Also available as Ruby-code to give the user a meaningful estimate about the security of their password.

gem-compare goes 1.0

A tool to diff Gem versions before bundle updating all the stuff. See if meaningful code changed, license, deps changed etc.

Sorbet + 100% cov makes Ruby refactoring possible — brandur.org

Safely refactoring Ruby traditionally involves many incremental steps and feature flags. Sorbet and 100% branch coverage make it possible to refactor a lot of code safely.

Shopify seems to have great success using Sorbet typed Ruby. That would also massively improve auto-completion support.

GitHub - yolk/biggs: biggs is a small ruby gem/rails plugin for formatting postal addresses from over 60 countries.

biggs is a small ruby gem/rails plugin for formatting postal addresses from over 60 countries. - GitHub - yolk/biggs: biggs is a small ruby gem/rails plugin for formatting postal addresses from over 60 countries.

JavaScript Test Code Coverage in Rails

Are you measuring code coverage? Check your JavaScript too!

Measering the Ruby code coverage with SimpleCov is a bog standard thing to do, but I have yet to see a repo that measuring and tracking their Javascript code coverage with the deligence like their Ruby’s. This post seems to be a good intro to combine that 2 and also see, how your selenium specs are touching your JS.

Standalone CLI: Use Tailwind CSS without Node.js - Tailwind CSS

Today we're announcing a new standalone CLI build that gives you the full power of Tailwind CLI in a self-contained executable — no Node.js or npm required.

Available with the “new” asset pipeline on Rails 7 with cssbundling is a node-less setup for Tailwind

Tailwind CSS Cheat Sheet

Cheat sheet that provides a quick, interactive reference for all utility classes and CSS properties provided by Tailwind CSS, a utility-first CSS framework.