Rspec and Capybara: how to use regex or stop caring about whitespacesI recently updated from Slim template to ERB to use Herb (Thanks Marco). I had to update a test that was very strict on the format. I realized that Capybara::Node::Simple doesn’t provide a selector for regex. The page object doesn’t have a match? met...Nov 25, 2025·1 min read
Rails 7.0 schema.rb changesDuring a recent (and first) upgrade of Rails to 7.0, I found a lot of changes in the schema.rb file. There is the self explanatory one: add versioning to the schema file. And the noisy change of every single datatime field's precision attribute. Lo...Sep 3, 2024·1 min read
AppSignal logs from AWS CloudWatch: CloudFormation template!Don't you think the documentation for forwarding the logs from AWS CloudWatch to AppSignal lengthy? Doc: https://docs.appsignal.com/logging/platforms/cloudwatch.html Same here! But you are in luck, here's the script I used to do all steps at once! Yo...Aug 16, 2024·1 min read
Git rename branch on remoteIt's impossible ... but, you can copy a branch then delete the old one. On the remote named origin (the default name), copy the master branch in new main branch. git push origin origin/master:refs/heads/main To delete the old master branch (the : me...Jul 25, 2024·1 min read
Rails database replica setupWhile reading the official documentation, I did not understand some parts of the set up. Let's me explain here. My setup: 1 main database 1 replica What I did not understand: Where to put the connects_to setting Proper/clean configuration in da...Jun 10, 2024·2 min read
Ruby 3.3 shipped in prodOn 2024-04-30, I released the Ruby 3.3.1 (from 3.2.3) with success. It been 10 days since, no problem in production or local environments. The main reason to wait for the x.y.1 was due to some issues with 1 or 2 bugs in the arm64 implementation. The...May 9, 2024·1 min read
Japanese characters transcoding: stop using Shift-JIS for the sourceSo, last day I got an encoding error. The data is what I though was in Shift-JIS but it could not be converted to UTF-8 because in Shift-JIS ‡ U+0087 does not exists. It's is multiple used as title like so: https://www.htmlsymbols.xyz/unicode/U+008...Apr 17, 2024·1 min read