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.
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]
spreadsheet_architect gem v5.0.0 released!
I have now released v5.0.0 of spreadsheet_architect. Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets super easily from ActiveRecord relations, plain Ruby objects, or tabular data.
The Secret Art of Storytelling in Programming
Here are some guidelines to write code that flows like a story: https://semaphoreci.com/blog/storytelling-programming
Securing Rails applications with Content Security Policy
Nowadays web application security is a crucial and unfortunately sometimes a bit neglected matter. Today, I’ll focus on Content Security Policy - a handy mechanism that can protect our app from XSS attacks. https://kukicola.io/posts/securing-rails-app-with-csp/
Understand Ruby Blocks by looking at examples from popular gems
Using Ruby blocks with yield is a different style of programming, that can improve the design of our Ruby code.
Programming Ruby 3.2 -- The Pickaxe Book -- Released in Beta
Programming Ruby 3.2, the fifth edition of the Pickaxe Book, is now available in beta at https://pragprog.com/titles/ruby5/programming-ruby-3-2-5th-edition/. [more inside]
Build a Table Editor with Trix and Turbo Frames in Rails
Build a table editor in a Rails application using ActionText’s Trix editor, and use Turbo Frames to customize your table. https://blog.appsignal.com/2022/10/26/build-a-table-editor-with-trix-and-turbo-frames-in-rails.html
How to Open Source with Richard Schneeman | hexdevs podcast
If you contribute to open source, can you just skip the whiteboard interview? …Probably not! 🙉 1.9+ billion downloads across 66 gems, and schneems still had to do coding interviews. Go from coder to fearless contributor: watch our conversation with Richard Schneeman, author of the book “How to Open Source”! [more inside]
🇺🇦 New version of truemail 📤 has been released 🚀 🇺🇦 🚀
In the latest truemail release has been added ability to specify whitelisted/blacklisted emails directly. It can be used as a part of SEA (spam email address) validations. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists. https://github.com/truemail-rb/truemail
Rubber Duck Dev Show Episode 62 | Staying Off The Rails With Joel Drapper
In this episode, we discuss when you might want to go “off the rails” with your framework and stay “off the rails” with Joel Drapper. We also talk about his Phlex project: https://www.rubberduckdevshow.com/episodes/62-staying-off-the-rails-with-joel-drapper/
Ruby ternary operator
Many languages have a ternary operator, including Ruby. The goal is to reduce the size of the code by displaying a one-line condition. Let’s see how. [more inside]
[ANN] rodauth-oauth 1.0.0-beta1 released
rodauth-oauth 1.0.0-beta1 has been released. [more inside]