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.
Spotting flaky tests
Sharing some examples of flaky tests from my experience. https://tejasbubane.github.io/posts/2022-11-08-spotting-flaky-tests?utm_source=rubyflow
25 Days of Punk (Pixel) Head / Character Art Collections - December 1st to 25th
Hello, Some years ago I used to organize and publish “25 Days of Ruby Gems - Ruby Advent Calendar 2020, December 1st - December 25th” and such (ironically I am cancel-cultured and perma-banned twice in the ruby world, that is, on r/ruby and ruby-talk (- see the (Ruby) Case Studies @ Choose A Conduct for the backstory). Anyways, let’s (re)try and revive the tradition with a punk (pixel) art twist (or is that pivot?). The idea is to publish a (free ruby pixel art programming how-to) article a day starting December 1st, 2022 that shows how you can put together (yes, you can!) do-it-yourself (DIY) a punk (pixel) art collection (from scratch). Yes, in ruby. You are more than welcome to “claim” a day and sign-up for an article in the series. .
How to Scale Ruby on Rails Applications
Check out some ways to scale your Ruby on Rails applications, including with caching and background workers. https://blog.appsignal.com/2022/11/09/how-to-scale-ruby-on-rails-applications.html
Rails 7.1 allows ActiveRecord::QueryMethods#select & #reselect to receive hash values
Rails 7.1 adds the ability to pass a hash of columns and aliases to be selected with the ActiveRecord::QueryMethods#select and ActiveRecord::QueryMethods#reselect methods. [more inside]
Spektr, a static-code analyser for Rails, to find security issues
Spektr is a static-code analyser for Ruby On Rails applications to find security issues. [more inside]
Hanami v2.0.0.rc1
Preparing for stable release in two weeks: https://hanamirb.org/blog/2022/11/08/announcing-hanami-200rc1/
Thank you, Heroku and new site address
I’ve hosted my site on Heroku for over 13 years, but I’ve now rewritten it and deployed it to GCP under a new domain: rosenfeld.page. Here’s the last article with the announcement.
Rubber Duck Dev Show Episode 64 | Where To Put Your Business Logic With Jason Charnes
In this episode, we talk with Jason Charnes about where you should store your business logic in your Ruby on Rails application framework: https://www.rubberduckdevshow.com/episodes/64-where-to-put-your-business-logic-with-jason-charnes/
[Screencast] Infrastructure Migration
For various reasons, we may decide to move our services off of one platform onto another. This could be due to pricing, uptime or other reasons. In this episode, we look at migrating a Ruby on Rails application and database from Heroku to Fly. https://www.driftingruby.com/episodes/infrastructure-migration
Writing Neovim plugins with Ruby
I learnt about writing remote plugins for Neovim. I built a small tool to evaluate Ruby code right within Neovim: [more inside]
[ANN] Perfect Shape 1.0.6 Released
PerfectShape is a collection of pure Ruby geometric algorithms that are mostly useful for GUI (Graphical User Interface) manipulation like checking viewport rectangle intersection or containment of a mouse click point in popular geometry shapes such as rectangle, square, arc (open, chord, and pie), ellipse, circle, polygon, and paths containing lines, quadratic bézier curves, and cubic bezier curves, potentially with affine transforms applied like translation, scale, rotation, shear/skew, and inversion (including both the Ray Casting Algorithm, aka Even-odd Rule, and the Winding Number Algorithm, aka Nonzero Rule). Additionally, PerfectShape::Math contains some purely mathematical algorithms, like IEEE 754-1985 Remainder. https://github.com/AndyObtiva/perfect-shape
Rails changelogs as a html page
I’ve created a small site which checks the rails/rails repo daily for changes to the various CHANGELOG.md files and make them pretty with link backs to the PRs: [more inside]
Test which reminded me why I don't really like RSpec
Recently, our friend from a different software company asked us for some help with mutant setup. We asked to share a sample test to discover what can be wrong. When I read the snippet on a slack channel, I had immediately written: [more inside]
Dual Booting With Engines and Gems (FastRuby.io Blog)
Dual Booting aims to solve when upgrading a Rails application, so we can borrow the dual booting idea and apply it to a gem: The gem adds compatibility with the next Rails version, without losing compatibility with the current one, allowing us to modify the gem at any point during the upgrade process ensuring that the latest version of the gem is compatible with both Rails versions. [more inside]
Announcing rodauth-omniauth
This gem provides OmniAuth integration for Rodauth, supporting login & registration with multiple external providers, and persisting external identities in the database. It plays well with multifactor authentication, supports JSON & JWT, allows using different providers for different account types, and more – https://github.com/janko/rodauth-omniauth
sidekiq-iteration - Make your sidekiq jobs interruptible and resumable by design
Hi, I am publishing a new gem - https://github.com/fatkodima/sidekiq-iteration [more inside]
Alba 2.0 has been released
Hi, I recently released the new major version of Alba, a JSON serializer for Ruby. [more inside]
Tonic 🍸- Transform your collection into a beautiful static website!
Hello Ruby community 👋 [more inside]
Use Kaniko to build docker images
I am using Kaniko to build docker images since a couple of years. Particularly for my Ruby on Rails projects. I collected some insights, which might be useful for you: https://tobiasmaier.info/posts/2022/11/01/kaniko.html (e.g. how to share secrets for gemserver, multi-stage builds)
Rubber Duck Dev Show Episode 63 | Halloween Party With Coding Horror Stories
In this episode, we host a panel of developers discussing their coding horror stories: https://www.rubberduckdevshow.com/episodes/63-halloween-party-with-coding-horror-stories/
An Intro to dry-schema in Ruby
Data structure and type validations are so essential in modern Rails apps. You’ve probably used Active Model validations and strong parameters, but did you know there is a better way? This article introduces the dry-schema gem—a faster alternative to the defaults! https://www.honeybadger.io/blog/ruby-dry-schema/
Gem Released - whaly | text-based browser automation
Whaly is the easy way to write a browser-based selenium scripts for ruby users.It’s fully focused on the words, because words better than codes.it’s written in ruby language.it’s only compatible for ruby language (not for another programming language) [more inside]