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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Released ruby-nmap 1.0.0! This major release switches to the brand new command_mapper library (which handles mapping in
nmap options to class attributes), adds support for more
nmap options, and improves parsing of structured NSE script output data from nmap XML output. See the UPGRADING guide on how to upgrade from 0.10.0 to 1.0.0.
in_order_of is a new method in Rails 7 that allows you to sort by enum values directly in SQL [more inside]
Hello, In the ongoing learn pixel art programming with ruby series I put together a new artfactory gem that let’s you generate pixel art via text-to-image prompts - no A.I. training or models needed / required ;-). The “magic” works via all-in-one image spritesheets (and meta datasets in .csv). To get you started I “right-clicked & saved” about a dozen “on-blockchain” artwork layers for easy “off-blockchain” (re)use. Happy pixel pushing and profile pict(ure) pixel art generation with ruby.
Have you ever tried to create a good-looking email design from scratch? Or how about using TailwindCSS to write your email layouts? [more inside]
Sharing some examples of flaky tests from my experience. https://tejasbubane.github.io/posts/2022-11-08-spotting-flaky-tests?utm_source=rubyflow
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. .
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 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 is a static-code analyser for Ruby On Rails applications to find security issues. [more inside]
Preparing for stable release in two weeks: https://hanamirb.org/blog/2022/11/08/announcing-hanami-200rc1/
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/
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
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
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 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]
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