Pinned post

Hey folks! Welcome to! 🎉

I'm hoping this will become a good, friendly community for Ruby-folks to chat and discover new friends. But for that to happen, you need to sign up! -- all are welcome

James Adam boosted

Wish Ruby had a String#each_sub method that returned each string with each matching substring replaced, individually

# => ["X1A2A3", "A1X2A3", "A1A2X3"]

Or String#all_indexes(substring) or String#all_matches(regexp) methods to find all occurrences of a substring or regexp.

James Adam boosted
James Adam boosted

Hi everyone!
It's time for a belated :)
I'm Judith, living in the south of Germany and I love photography, forests, building things (mostly on the web), and ruby.
I'm also an introvert and not used to posting on social media because I dislike all the tracking and analysis of data. But mastodon is different, so I'm hoping to find like-minded people here and good conversations about software development, linux, ruby, ...
Maybe also I'm going to post a picture or two. Let's see.

James Adam boosted

So what's the state of VSCode Intellisense, but for ruby gems? Can it automatically scan the RI index of all installed gems, or do projects have to generate their own API index file for VSCode?

James Adam boosted


We're now accepting applications for diversity/scholarship tickets! These are mostly virtual tickets but we do also have some in-person tickets available too. (1/3)


James Adam boosted

It's only fitting that Bridgetown, which is open source, have a presence on, which uses an open sourse platform written in Ruby (Mastodon :mastodon:). Rubies all the way down! :ruby: 😁

James Adam boosted

We were still learning about the security issue for rubygems when yet another vulnerability was discovered: CVE-2022-29218

This time Maciel also got another excellent piece of Impact Analysis:

But big Mensfeld didn't stop there, he actually created a tool (a gem in the whole extent of the word) to help you figure out if your bundle was compromised:

Please boost this toot for visibility.

Show thread
James Adam boosted

I often hear that the increased hosting costs associated with Ruby on Rails' larger than average footprint is more than offset by the increased dev productivity. It follows that Rails salaries being pretty high at the moment is offset by being able to maintain a smaller, more productive team.

Does anyone know of any case studies where someone's actually done the numbers on that?

It "feels right" to me, but I'd be interested to read other's experiences.

James Adam boosted

Finally a writeup for the vuln, CVE-2022-29176. Such a simple mistake. I feel like the take away lessons are:

1. do not query/trust composite columns. Query individual columns.
2. do not trust arbitrary user Strings.

James Adam boosted

P.S.A: Rails have released a new version fixing some issues added on the last security release.

The new stable versions have been pushed to these

- 7.0.3
- 6.1.6
- 6.0.5
- 5.2.8

These are some of the problems I note in my review:

As usual, it's recommended to test thoughtfully on your staging environments before proceeding to deploy to production.

James Adam boosted

In a code review i suggested extracting a well named function. They replied that it does not add any value to introduce a new function. They're right in the worst way, the computer doesn't care and they don't value the readers.

Do you have suggestions on how to respond to that?

James Adam boosted
James Adam boosted

How're you deploying your applications these days?

I've been chucking stuff on k8s for so long at my job I've lost touch with what everyone else is doing.

James Adam boosted

How do I love Ruby? Let me Enumerable the ways.

James Adam boosted

Ruby developers on Linux, what's your preferred Ruby?

James Adam boosted

Figured this would be a good place to soft launch this. I setup a Discord server specifically for the topic of Ruby & InfoSec. The goal of this server is to help answer questions, educate others, highlight other Ruby InfoSec projects, and counter anti-Ruby FUD with information. If you are interested in both Ruby & InfoSec, or just want to help, consider joining.

James Adam boosted

Have you worked on anything cool lately?

I've been looking at a bunch of sites on and it's making me want to make my own site much, much worse^H^H^H^H^Hcooler.

James Adam boosted

Working on an idempotent db/seeds set up today for an old rails project. So much better than copying from production. Can’t believe I haven’t done it before.

James Adam boosted

Is there ever a good time to define a custom `!` method on an object? Seems like setting up a footgun for people relying on the truthy/falsiness in a boolean expression.

class Thing; def !; true; end; end
my_thing =

do_thing if my_thing# executes
do_thing if !my_thing # executes
do_thing unless my_thing # does not execute

Show older

A Mastodon instance for Rubyists & friends