#589 — February 3, 2022 |
Ruby Weekly |
🔒 A Proposal for a New Ruby Gem Signing Mechanism — A proposal has been made for a new way for signing gems since the currently available approach is ‘unwieldy and little-used’. The aim is to make the signing and verification of gems an ‘everyday experience’ to improve security and reliability for all Rubyists. The resulting discussion is here if you want to have your say. Roch Lefebvre et al. |
'How I Got Ruby Snippets to Run Browser Side in Less Than a Day' — Just two weeks ago we mentioned the proposal to merge WebAssembly support into CRuby, and someone has already taken advantage of it. There’s a live demo too! Ben Taylor |
ButterCMS Melts into Your Ruby App: ButterCMS sponsor |
How Shopify Fixed the Dependency Confusion Vulnerability in 600+ Ruby Apps — The story of how Shopify (big enough to have its own specialized ‘Ruby Conventions team’!) solved a dependency confusion vulnerability in over 600 Ruby applications and created tooling to make their work easier. Frederik Dudzik (Shopify) |
Code Scanning and Ruby: Turning Source Code into a Queryable Database — Github’s CodeQL engine scans code and creates a database schema that can be used to look for vulnerabilities, among other things. They recently added support for Ruby, which you can use on your own repos, too. Nick Rolfe (GitHub) |
IN BRIEF:
|
|
📕 Articles & Tutorials |
▶ Inline Editing with Turbo Frames in Rails — A 20-minute screencast demonstrating using Hotwire and Turbo Frames to implement inline editing in Rails apps. Go Rails |
Solving Wordle in Ruby — Not tired of Wordle yet? Dazzle your friends with your Ruby-assisted Wordle superiority. Kevin Newton |
Dynamic User Content in Rails with Liquid Tags — Liquid is a simple and secure template engine, with some advanced features, that is used by Shopify so it’s certainly worth a look. Matt Swanson |
JetBrains RubyMine 2022.1 Early Access Program is Open — Support for new language features in Ruby 3.1, new inspections, UX improvements, and more. JetBrains sponsor |
How to Safely Change the Argument Signature of a Sidekiq Job — If you’re getting warnings as of Sidekiq 6.4, you’ll want to know this. Zeke Gabrielse |
Rails 7's Automatic Swaathi Kakarla |
Securing AWS S3 Assets with Cross-Account Backups — If you’re using S3 to store your app’s assets, Paweł’s advice could save you some headaches one day. Paweł Urbanek |
🛠 Code & Tools |
Paralines: Nicer Output to Console/File from Concurrent Threads — If you’ve got several threads running tasks and you want live output from each without said output tripping over the output from other threads, check out this new solution. Yuriy Babak |
MiniSql: A Minimal, Safe SQL Executor for Postgres and SQLite — Basically makes things nicer if you’re using Discourse |
Spend Less Time Debugging and More Time Building with Scout APM Scout APM sponsor |
Receipts: Easy Receipts and Invoices for Your Rails Apps — Works with any payment provider and uses Prawn to generate PDFs. Chris Oliver |
redis-rb 4.6: The Ruby Client Library for Redis — The official Ruby client for the Redis data structure server. 4.6 adds the Redis |
A Tmux Launcher App Written in mruby — The most interesting part of this, to me, is seeing a complete (but simple) mruby-based app. Artemiy Solopov |
Vanity: A Datastore Agnostic A/B Testing Mechanism for Rails
|
Rack::Attack 6.6: Rack Middleware for Blocking and Throttling
|
|