---
title: "Detecting radiation with Tenderlove"
publication: "Ruby Weekly"
issue: 691
published_at: "2024-02-22"
canonical_url: "https://rubyweekly.com/issues/691"
---

Plus customizing IRB autocomplete colors, notable JRuby releases, and Koans in the browser. |        

#​691 — February 22, 2024 

[Read on the Web](https://rubyweekly.com/issues/691)  

Together with [![pgAnalyze\](https://res.cloudinary.com/cpress/image/upload/c_fill,g_auto,e_trim,w_350,h_100/e_make_transparent/co_white,e_outline:7/lhwcvgc1asd4fzaahty4.png)](https://pganalyze.com/ebooks/advanced-database-programming-rails-postgres?utm_source=RubyWeeklyPrimary02222024)   

Ruby Weekly 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/atx9cevgdkdcohqiuk8g.jpg)](https://railsnotes.xyz/blog/vscode-rails-setup)  

[A Decent VS Code Setup for Ruby and Rails Development](https://railsnotes.xyz/blog/vscode-rails-setup) — _“Setting up VS Code for Ruby on Rails development can be tricky, so I wrote this article to help. In it, I share different VS Code extensions for things like autocomplete, linting, formatting and more.”_ Harrison also shares his own [Ruby on Rails extension pack](https://marketplace.visualstudio.com/items?itemName=RailsNotes.railsnotes-ruby-on-rails-extension-pack) that brings together all his suggestions in one install. 

Harrison Broadbent   

▶[Discussing YJIT with Maxime Chevalier-Boisvert](https://www.therubyonrailspodcast.com/508) — A 23-minute podcast episode with veritable Ruby VM and JIT compilation expert, Dr. Maxime Chevalier. She explains the whole concept of JIT from scratch in an accessible way, making this a great on-ramp to understanding what YJIT does, if you’ve ignored it all so far. _(There’s [a third party transcript](https://www.withfanfare.com/p/hacker-news-collection/episode-508-yjit-with-maxime-chevalier-boisvert) that’s easy to read, too, if you prefer.)_ 

The Ruby on Rails Podcast   [![\](https://copm.s3.amazonaws.com/c5d558fa.png)](https://pganalyze.com/ebooks/advanced-database-programming-rails-postgres?utm_source=RubyWeeklyPrimary02222024) 

[Free eBook: Advanced Database Programming with Rails and Postgres](https://pganalyze.com/ebooks/advanced-database-programming-rails-postgres?utm_source=RubyWeeklyPrimary02222024) — Learn about subqueries, materialized views, and custom data types in Postgres and Rails. We walk through realistic real-life examples, translating first into SQL, and then into Rails code. Every example comes with source code so you can follow along. 

pganalyze sponsor   

[Using Serial Ports with Ruby](https://tenderlovemaking.com/2024/02/16/using-serial-ports-with-ruby.html) — Feeling that his UART gem wasn’t receiving enough, um, tender love, Aaron penned this article to show just how easy it is to work with serial ports and Ruby, particularly to interact with his.. Geiger counter? 

Aaron 'Tenderlove' Patterson   

[JRuby 9.4.6.0 Released: The JVM-Based Ruby Implementation](https://www.jruby.org/2024/02/20/jruby-9-4-6-0) — The latest Ruby 3.1-targeting version of the longstanding JVM-based implementation adds support for the [Prism](https://ruby.github.io/prism/rb/index.html) Ruby parser (as introduced in CRuby 3.3), improves Ruby 3.1 compatibility, updates a variety of dependencies, and pattern matching is now supported by JRuby’s JIT compiler. 

JRuby Core Team   

💡 [JRuby 9.3.14.0](https://www.jruby.org/2024/02/20/jruby-9-3-14-0) has landed, too, if you want to remain targeting Ruby 2.6.x.  

[Need for Speed: Using RuboCop with Prism](https://metaredux.com/posts/2024/02/19/need-for-speed-using-rubocop-with-prism.html) — Prism (formerly YARP) is a Ruby parser that wants to be the only Ruby parser in town (notably, TruffleRuby is [now using Prism](https://twitter.com/TruffleRuby/status/1758887647328522253).) The creator of RuboCop shares that the migration to Prism has begun there too, and he anticipates solid speed gains. 

Bozhidar Batsov   

- ⚠️ [Rails 6.1.77, 7.0.8.2 and 7.1.3.2](https://rubyonrails.org/2024/2/21/Rails-Versions-6-1-7-7-7-0-8-1-and-7-1-3-2-have-been-released) have all been released as security releases.
- 📅 RubyCentral takes [a look back at RubyConf 2023](https://rubycentral.org/news/a-look-back-at-rubyconf-2023-featuring-the-brand-new-community-day/) and it's packed with stats, including attendee numbers, revenue, expenses, and more. [RubyConf](https://rubyconf.org/) is back for its 2024 run this November in San Diego, CA.
- 🚂 If you're doing any Rust these days, you might be interested to [check out _Loco_](https://www.infoq.com/news/2024/02/loco-new-framework-rust-rails/), a Rails-inspired MVC webapp framework for the language.  

📕 Articles & Tutorials 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/txykvhrmqggjx81u6xmt.jpg)](https://dev.to/joshdevhub/configuring-irb-autocomplete-3n4d)  

[Changing the IRB Autocomplete Colors with Reline::Face](https://dev.to/joshdevhub/configuring-irb-autocomplete-3n4d) — The release of [autocomplete for IRB](https://railsatscale.com/2023-12-19-irb-for-ruby-3-3/#enhancing-autocompletion) was marred, for some, by not looking too hot with their terminal's color scheme (leading some folks to [tweak their color settings](https://stackoverflow.com/questions/66447356/how-can-i-change-the-default-syntax-coloring-in-ruby-3-0s-irb)). But now there's a way to change the styling to something you prefer by adding a few lines to `.irbrc` instead. 

Josh Smith   

[Ruby Koans in the Browser](https://koans.idogawa.com/) — We’re seeing more and more Ruby in the browser with WebAssembly (including in [last week’s issue](https://rubyweekly.com/issues/690)) and now someone has browser-ified the popular Ruby Koans exercises _(note: this took a good 15-20 seconds to load in my browser)._ 

Andi Idogawa   

[Get a Free Ruby on Rails Security & Update Checker](https://reinteractive.com/services-codecare-shield) — Ensure the safety and integrity of your sensitive information with our advanced Ruby on Rails security measures. 

reinteractive/CodeCareShield sponsor   

[How to Generate Random Numbers in Ruby](https://www.writesoftwarewell.com/how-to-generate-random-numbers-in-ruby/) — Just `rand(x)` right? That’s one way, but this post goes into so many more options. A good primer/reminder. 

Akshay Khot   

[Hotwire Modals in Rails with Stimulus and Turbo Frames](https://blog.appsignal.com/2024/02/21/hotwire-modals-in-ruby-on-rails-with-stimulus-and-turbo-frames.html) — We’re enjoying the excitement in the blogosphere on creating useful UI elements with Stimulus and Turbo. 

Ayush Newatia   

💡 I've recently found working through [Hotrails' Turbo Rails tutorial](https://www.hotrails.dev/turbo-rails) to be particularly valuable to get up to speed with the basics.  

[Playing Sounds in Rails with the Audio API](https://www.writesoftwarewell.com/rails-audio-api-play-sound-campfire/) — Akshay picked up on how 37signals’ Campfire lets users play sounds in its chat interface, which involves a little more integration with Rails than you might think. 

Akshay Khot   

[Finding Postgres Rows Too Large for BTree Indexes](https://willj.net/posts/finding-postgres-rows-too-large-for-btree-indexes/) — From the “_it may never happen to you_” department, here’s an approach to find data that exceeds the allowed index size, which you could run into during a migration, as here. 

Will Jessop   

[How to Use Private SSH Keys with Passwords in GitHub Actions](https://nts.strzibny.name/how-to-use-ssh-private-keys-with-password/) 
Josef Strzibny   

[A Look at Some Popular `git config` Options](https://jvns.ca/blog/2024/02/16/popular-git-config-options/) 
Julia Evans  

🛠 Code & Tools 

[![\](https://res.cloudinary.com/cpress/image/upload/w_1280,e_sharpen:60,q_auto/tcdw8itfh0jutfmyge83.jpg)](https://ddnexus.github.io/pagy/)  

[Pagy 7.0: The Popular Pagination Gem](https://ddnexus.github.io/pagy/) — It’s been around for years, it claims to be the _best_ pagination gem, and it’s still getting updates, so what’s not to like? v7 adds [JSON:API support](https://ddnexus.github.io/pagy/docs/extras/jsonapi/) and rounds out [its ARIA compliance](https://ddnexus.github.io/pagy/docs/api/aria/). – [GitHub repo](https://github.com/ddnexus/pagy). 

Domizio Demichelis   

[SearchCop 1.3: Search Engine-Like Fulltext Query Support for Active Record](https://github.com/mrkamel/search_cop) — Adds support for an easy to use search interface on top of AR models. It’s smarter than you might imagine and can handle using operators to query against columns – it’s not just for text. Support for Postgres’s `hstore` and `jsonb` columns has also just been added. 

Benjamin Vetter   

[Self-Service APM When You Want It. Superior Support When You Need It](https://scoutapm.com/users/sign_up?utm_source=rubyweekly&utm_medium=affiliate&utm_campaign=2_22_24&utm_content=newsletter_ad) — Need Ruby app performance answers fast? Get setup with Scout APM in 4 min and avoid the runaround of large support teams 

Scout APM sponsor   

[WebMock: Stub and Set Expectations on HTTP Requests for Testing](https://github.com/bblimke/webmock) — Supports lots of HTTP libraries like Net::HTTP, Excon, the `http` gem, and Curb::Easy. 

Bartosz Blimke   

[Flatware 2.2: A Parallel Test Runner for RSpec and Cucumber with Pretty Output](https://github.com/briandunn/flatware) — Now supporting Ruby 3.3. 

Brian Dunn   

- 🌎 [Countries 6.0](https://github.com/countries/countries) – Useful information about every country.
- [country_select 9.0](https://github.com/countries/country_select) – Helper to get an HTML select list of countries.
- [ruby-jwt 2.8](https://github.com/jwt/ruby-jwt/releases/tag/v2.8.0) – RFC 7519 OAuth JSON Web Token implementation.
- [Shale 1.1](https://github.com/kgiszczak/shale) – Object mapper and serializer for JSON, YAML and XML.
- [ruby-pg 1.5.5](https://github.com/ged/ruby-pg) – The Postgres client library for Ruby – now with binary Windows gems for Ruby 3.3.
- [ViewComponent 3.11](https://github.com/ViewComponent/view_component) – Build encapsulated view components for Rails.
- [Stripe Ruby 10.9](https://github.com/stripe/stripe-ruby) – Ruby library for the Stripe API.
- [Ruby SMTP Mock 1.4](https://github.com/mocktools/ruby-smtp-mock) – Mimic SMTP server behavior.
- [Hanami 2.1.0.rc3](https://hanamirb.org/blog/2024/02/16/hanami-210rc3/)         

Curated by [Peter Cooper](https://twitter.com/cooperx86) and [Glenn Goodrich](https://twitter.com/ruprict).
Published by [Cooperpress](https://cooperpress.com/). 

[Change your email](https://rubyweekly.com/edit_subscription/*|UID|*) or [Stop getting this newsletter.](https://rubyweekly.com/leave/*|UID|*) 

© Cooper Press Ltd · Fairfield Enterprise Centre, Louth, LN11 0LS, United Kingdom 

Other weekly newsletters we publish include [Postgres Weekly](https://postgresweekly.com/), [React Status](https://react.statuscode.com/), [Frontend Focus](https://frontendfoc.us/), and [JavaScript Weekly](https://javascriptweekly.com/).
