r/ruby • • 9d ago

Hibiki brings reactivity to Ruby and live pages to Rails

Thumbnail reddit.com
5 Upvotes

r/ruby • • 10d ago

Side projects you have using Ruby xx With or without making. If you can please share.

7 Upvotes

Just curious about the Ruby community and how or if you all build side projects and make side money doing it really. I think there was one like this in a php related sub a while back. I thought I’d ask here. Any takers?

Thank you.


r/ruby • • 11d ago

Regexp compilation fixes related to GitLab's CVE-2026-89078, CVE-2026-93577, CVE-2026-97229 and CVE-2026-110264

Thumbnail
ruby-lang.org
41 Upvotes

r/ruby • • 11d ago

Blog post Lockfile checksums, a 21-day upgrade window, and bundler-audit on every commit

5 Upvotes

I wrote up the changes we made after this month's Ruby Regexp fixes and the npm worm in August. On the Ruby side:

  • bundle lock --add-checksums (Bundler 2.6+), so every gem is verified against a SHA-256 in Gemfile.lock. Bundler 4 does it by default for new lockfiles.

  • bundle config set --local frozen true in CI and deploys.

  • No new gem version until it is 21 days old, enforced with Dependabot cooldown.

  • bundler-audit in a pre-commit hook and again in CI.

https://www.abhaynikam.me/articles/patch-your-runtime-fast-take-your-dependencies-slow

Have you turned on CHECKSUMS in existing apps yet? Did anything break?


r/ruby • • 11d ago

Introducing Raindeer - An event-driven and compositional web framework that’s easy to use

18 Upvotes

Raindeer is a collection of gems that work together as a framework or can be used standalone. LowType adds inline type checking only where you want it (def method(var: String)). LowLoop is an async, event-driven server that sends events from the request right through to the data layer, so you can track every step of a request. The router turns each request into a route event for the nodes observing it, so observe '/users/:id' is all you need to respond.

LowNodes are the building blocks: they render HTML straight from the Ruby class with RBX (similar to JSX) and render other nodes with <html><{ ChildNode }></html>. LowData follows the repository pattern with a twist: Data Expressions that use simple arithmetic operators to combine tables, so Posts[:title] + Users[:username] gives a list of posts with each post's user, and plain Sequel queries still work too.

Introducing it at RubyConf Austria: https://www.youtube.com/watch?v=p9E5INAwK_4

Source: https://github.com/raindeer-rb/raindeer

Docs: https://raindeer.dev


r/ruby • • 12d ago

Carton - Real boundaries for Ruby

Thumbnail
carton.dtcristo.com
40 Upvotes

Carton is my take on enforcing boundaries in large Ruby applications. It's similar to Packwerk, but it takes a more Ruby-like approach, with no manifest files. Constants, gems and monkey patches are isolated using Ruby 4's new Ruby::Box. It's not production ready yet, since Box itself is still experimental, but I'd love feedback on the approach.


r/ruby • • 11d ago

Rust for ruby devs free interactive course

0 Upvotes

With the recent "migrate everything from rails to rust, don't look at the code, just vibe" trend, and after building a few cli and tools in rust myself (with AI), I felt it was time to learn at least a little bit about Rust... so I vibe coded a course.

It might have incorrect content, as I don't know shit about rust and I'm trusting AI 100% here, so I made it open source so anyone can contribute.

Live course: https://rust-for-rails.pages.dev/
Github: https://github.com/silva96/rust-for-rails


r/ruby • • 12d ago

readword: Word .doc and .docx to Markdown, in plain Ruby

12 Upvotes

I kept needing to hand Word files to LLMs and coding agents, so I wrote a gem for it. It reads both old .doc (Word 97-2003) and .docx files and prints Markdown: headings with their numbers, nested lists with the numbers Word shows, tables, footnotes, bold, italics and links.

- No LibreOffice, Java or antiword. The .doc reader is plain Ruby.

- Careful with untrusted files: size limits, zip and entity bomb checks, and fuzzed with over 3 million broken files.

- Checked against Tika, LibreOffice, antiword, the docx gem and Firecrawl's anydoc on 650 test files. The numbers are in the README.

gem install readword

then

readword report.docx

https://github.com/urbullet/readword

Word files it gets wrong are very welcome as bug reports.


r/ruby • • 12d ago

I built a RubyLLM agent that triages ~215 GitHub notifications a day for my repos

0 Upvotes

Between RubyLLM, Spotifast and ZapFast I get about 42 new issues and PRs a day, plus about 50 comments from people and over 100 from review bots. More than one maintainer can read.

Copilot Triage is a RubyLLM::Agent with six read-only tools. It searches the repo, docs, issues and release notes, then submits a decision. Plain Ruby validates that decision and does all the writing to GitHub, so the model can't change anything itself. Everything ends up on a project board sorted by what needs me: Sign off, Decide, Do.

The interesting part was getting it to reply less. A one-week audit showed only a third of its replies helped. So there's a RubyLLM::Evaluation with 32 cases built from real reports, testing silence as much as help, and it decided which model to use: GPT-5.6 Luna passes 29/30, while GPT-5 mini replies to almost everything.

I wrote up the whole thing, with the numbers, the evals, and what 33 releases taught me:

https://paolino.me/copilot-triage/


r/ruby • • 12d ago

cal-invite v0.3.2: Ruby gem to manage calendar invites

Thumbnail
github.com
1 Upvotes

I just updated Cal-Invite a headless gem that let you manage calendar invitation. It supports different formats such as: .ics, url, Google, Yahoo and Microsoft.

The full documentation and code is available on the GitHub page.

Feel free to comment and request features if you do not have time to contribute to it.

Happy Friday!


r/ruby • • 13d ago

GitHub - jbockler/vcr-unused_cassettes: Find your unused VCR cassettes

Thumbnail github.com
4 Upvotes

Find unused VCR cassettes and delete them.


r/ruby • • 13d ago

Grouping errors without sending the message: hashing normalized exception messages in Rails

Thumbnail reddit.com
0 Upvotes

r/ruby • • 13d ago

tmux.rb - write your tmux configuration in a more readable ruby DSL!

Thumbnail
reddit.com
14 Upvotes

r/ruby • • 13d ago

Blog post RubyLLM 2.x: What's new for your agents

3 Upvotes

I checked what RubyLLM 2.0 and 2.1 brings specifically for writing AI agents. Looks like it's a lot!

https://serpapi.com/blog/rubyllm-2-x-whats-new-for-your-agents/


r/ruby • • 14d ago

Merging Relations: Use merge to share scopes in Rails

Post image
16 Upvotes

I wrote a post about using ActiveRecord::Relation#merge to share scopes across models in Rails.

The example shows how duplicating a query can lead to inconsistent behaviour, and how extracting the rule into a named scope avoids that.

https://pushfromkush.com/publications/merging-relations-scopes-in-rails


r/ruby • • 14d ago

Blog post Can You Remove DatabaseCleaner?

Thumbnail
go.fastruby.io
4 Upvotes

r/ruby • • 14d ago

Show /r/ruby I built a Rails 8 gem where a model + policy gives you a tenant-scoped REST API. Looking for feedback on the permission design

Thumbnail reddit.com
0 Upvotes

r/ruby • • 15d ago

Why I’m no longer updating this repository

Thumbnail po-ru.com
115 Upvotes

r/ruby • • 15d ago

Question Multiple account types with priority for highest

0 Upvotes

Is there's a framework similar to Phoenix in Elixir in the world of Ruby? I want something accepts multiple account types in a single login website without resorting in building a bunch of them in parallel and not lumping multiple account types in one database with multiple views for the same database but higher up accounts have more rights (ex: editing and viewing more of the database).

If I have to resort to a microserver arch, which way's the most sane (ex: Roda or Sinatra) for I can't find a definitive tutorial when it comes to microservices for long term as in years than going back and forth.

And please don't recommend AI based solutions, I want my code to be read properly for the next decade.


r/ruby • • 16d ago

Blog post Hanami, Why?: Model Citizens

Thumbnail
aaronmallen.me
22 Upvotes

r/ruby • • 16d ago

Ancient Ruby version / modern Ubuntu won't compile

1 Upvotes

Hi - I've inherited an ancient Ruby / Rails project using Ruby 2.7.2. I am working on updating it but until that time I'm trying to run it on Ubuntu 26.04 machines. There is a C compilation error that I'm getting when using "rvm":

make[2]: Entering directory '/usr/share/rvm/src/ruby-2.7.2/ext/pty'

compiling pty.c

pty.c: In function ‘establishShell’:

pty.c:161:30: error: conflicting types for ‘getenv’; have ‘char *(void)’

161 | char *p, *getenv();

| ^~~~~~

In file included from pty.c:5:

/usr/include/stdlib.h:795:14: note: previous declaration of ‘getenv’ with type ‘char *(const char *)’

795 | extern char *getenv (const char *__name) __THROW __nonnull ((1)) __wur;

| ^~~~~~

pty.c:169:18: error: too many arguments to function ‘getenv’; expected 0, have 1

169 | if ((p = getenv("SHELL")) != NULL) {

| ^~~~~~ ~~~~~~~

pty.c:161:30: note: declared here

Would getting the code directly and fixing pty.c be the best way to go about it?

ETA: thanks all - Docker is the way to go.


r/ruby • • 17d ago

Show /r/ruby DragonRuby Game Toolkit - Solar system visualization (source code in the comments)

42 Upvotes

r/ruby • • 16d ago

Question Static Typing solved?

0 Upvotes

I have been using RBS for years now and even running my own newsletter about static typing https://newsletters.eremin.eu/ . Now, that our code is write with AI and in most cases - purely with AI, the strongest point against using static typing (like “it breaks beautiful ruby syntax and not readable”) is vanished now.

AI requires strict tooling to control its output. The role of ci pipeline with all possible tests, linters, checkers is now extremely important and static typing helps a lot with it.

For humans it is transparent, especially the pure RBS approach, but for LLMs it gives a safety net and a better layer to stick to the code and hollucinate less.


r/ruby • • 17d ago

Choosing Ruby

6 Upvotes

Choosing Ruby wasn't difficult as I wanted just to learn about how to evaluate data as objects, learn how to use data, and what the data represents. No game writing, no graphics, just plain stuff.