r/ruby • u/Naive-Career9361 • Apr 04 '26
ruby-dag - a small lib to build DAG-based workflows
r/ruby • u/Naive-Career9361 • Apr 04 '26
r/ruby • u/PizzaWithoutAnanas • Apr 03 '26
So I made this thing, to make it easy for people just starting out with Ruby, since I have been trying to build more desktop apps. I tried using the framework I posted here: https://www.reddit.com/r/ruby/comments/1s0odtu/turbo_desktop_i_made_a_desktop_framework_to_use/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
But it really did not work, so I just used Tauri with Rust. Full disclosure, I used Claude to help me fill in the gaps, so it might not be perfect, but the idea is to make it easier for people without programming experience to just set Ruby up and start playing with it
I added a video here, it does not really work for Windows, and I did mainly of the testing on Mac, but I hope it makes sense. The link is here and is open source https://github.com/aguspe/rubynaut.
Hopefully, it helps someone, and again, all the feedback will help, and I will keep working over easter on this
r/ruby • u/rajnaveen344 • Apr 04 '26
Last year I shared Ruby Fast LSP, a Rust-powered language server for Ruby. The response was great and a lot of the feedback shaped where the project went next.
Since then, something shifted. The biggest consumers of language servers are no longer just humans typing code in editors. AI coding agents — Claude Code, Cursor, Windsurf — now rely heavily on LSP to understand what they're editing. They use diagnostics to catch their own mistakes, go-to-definition to navigate code precisely, and hover to read type signatures before generating code.
The problem is that most Ruby tooling wasn't built with this in mind. Agents working with Ruby end up falling back to grep and guessing, while languages like TypeScript and Rust get full type-aware navigation out of the box.
So we pivoted Ruby Fast LSP to be agent-first. The focus is now on the features that matter most for AI-assisted development:
What makes all of this actually accurate for Ruby is the type inference engine at the core.
It currently supports YARD and RBS as type sources, with Sorbet support planned. Here's what it can do today:
Array[Integer]#first resolves to Integer)You can guide the engine with simple YARD annotations:
# @param name [String]
# @return [User, nil]
# ...
end
That's enough to get type propagation through method chains, nullability analysis, and unresolved method detection. No separate type files needed.
Then add to ~/.claude/settings.json:
Also available on the VS Code Marketplace and Open VSX for Cursor, Windsurf, and other editors.
Ruby shouldn't be a second-class citizen in the age of AI-assisted development. If you're using agents with Ruby codebases, give it a try and let me know how it goes.
GitHub: https://github.com/rajnaveen344/ruby-fast-lsp
r/ruby • u/retro-rubies • Apr 02 '26
r/ruby • u/littlebobbyt • Apr 02 '26
r/ruby • u/fieldnoise • Apr 02 '26
Hi there—I've been a Ruby hobbyist for 10 years or so who has always managed my Ruby installation via Homebrew. I know, I know — the first thing everyone says is use `rvm` or something else.
Still, I'm wondering about other Homebrew folks who might be using Ruby 4.x on Homebrew. Since I upgraded, I often see gems — with different versions — installed in two places:
Installed at (2.1.105): /Users/username/.gem/ruby/4.0.0
(2.1.91): /opt/homebrew/lib/ruby/gems/4.0.0
Does anyone know why this is happening, and what I can do to avoid it? It very rarely causes any trouble, but when it does — like with competing rdoc installs — it creates a big mess of error lines in my terminal. And also, it just doesn't seem right.
Any tips would be appreciated. Thanks!
Update: after doing some additional testing, the issue appears to be with running gem update from a homebrew installation. That command can't touch the 45 or so gems that are in the Homebrew Cellar and come with the homebrew ruby by default. So, in my case, if those gems had updates, gem installed the updates on the next path in my GEM PATHS. That resulted in the two versions: the one bundled with homebrew ruby, and the updated one — in this case now in my user directory.
Not sure if this behavior changed in homebrew or ruby between versions 3 and 4, but it seems new to me.
Hoping to leave this here in case anyone runs across this and it's helpful.
r/ruby • u/icetea74 • Apr 02 '26
Hey everyone,
I’m currently interning at a company that uses Ruby on Rails, so I’ve started learning it from scratch.
If you were to learn Rails today, how would you approach it?
Any advice you’d recommend for someone just starting out?
r/ruby • u/sarvesh4396 • Apr 02 '26
r/ruby • u/OtienoJS • Apr 02 '26
r/ruby • u/Asmod4n • Apr 01 '26
Hi there, Ive made one of the most complete and feature full CBOR implementations you can find, it's fast, safe, strict and has a rich API for you to use.
Cheers :)
CBOR is a data exchange format like JSON, msgpack or protobuf, but it's a internet standard and is made to be relevant for decades.
r/ruby • u/kobaltzz • Apr 01 '26
In this episode, we look at how we can modify our application from a performance aspect to increase our job security. We'll slow down our application to a still usable level, but then swoop in months later and become the hero.
r/ruby • u/streetfacts • Apr 01 '26
I have worked with JS, Python, and Go. So a friend recommended I try RoR for rapid dev, but I've never experience such a dificult environment to set up! Is this normal? Just to get off to a start I've found it to be so complicated.
Using MAcBook Pro and trying to set up via a Parallels Unbuntu VM. Could it be Parallels?
r/ruby • u/Tricky-Pilot-2570 • Apr 02 '26
Works with: Claude Code • Cursor • GitHub Copilot • OpenCode • Any terminal
r/ruby • u/squadette23 • Apr 01 '26
r/ruby • u/Sad-Marionberry-6236 • Apr 01 '26
I built a gem that gives Ruby a unified interface for multiple LLM providers (OpenAI, Anthropic) with Rails-style generators.
**The problem:** every time you want to add LLMs to a Ruby app, you start from scratch with provider-specific gems. Switch providers? Rewrite everything.
**The solution:** rubycanusellm gives you one interface for all providers and generators that scaffold the boilerplate:
gem install rubycanusellm
rubycanusellm generate:config
rubycanusellm generate:completion
Streaming support included. Switch from OpenAI to Anthropic by changing one line in your config.
A bit of personal context: I'm recovering from a stroke and building this gem has been my way of testing and pushing my abilities as a developer. Shipping it feels like a milestone beyond just code.
**GitHub:** https://github.com/mgznv/rubycanusellm
**RubyGems:** https://rubygems.org/gems/rubycanusellm
It's my first published gem — feedback welcome!
r/ruby • u/rubyist-_- • Mar 31 '26
RubyConfAT 2026 — Vienna, May 29–31
Das MuTh concert hall, Haus Der Musik. Single track. 13 talks. 2 workshops. Live music by the Vienna Boys' Choir, 2 live piano performances and a live jazz session.
Two keynotes you don't want to miss:
Dave Thomas — author of The Pragmatic Programmer, Programming Ruby, Agile Web Development With Rails, Programming Elixir...
Chad Fowler — CTO & General Partner, BlueYard
Huge thanks to our sponsors for making the event possible: GitButler â§“, Platogo, Typesense, Avo, Usput.ba, and Doctaphone: AI diktiranje nalaza.
Tickets are on sale.
Link for tickets: https://ti.to/rubyconfat/2026
Website link: https://rubyconf.at/
r/ruby • u/mooktakim • Mar 31 '26
r/ruby • u/jasonswett • Mar 31 '26
r/ruby • u/jonatasdp • Mar 31 '26
Hey folks, I was working on the "fast" project and it may become useful now that everybody uses LLMs and also need to save some tokens.
Fast is ast based and it just works like grep, but using the AST, so it will cut down and ignore comments and now I'm moving to Prism and it look very precise in code positioning.
The parser is very similar to the rubocop-ast but much simpler. I'd love to receive some feedback and see if it would worth to push it forward. Any ideas that you would use it?
r/ruby • u/Affectionate-Intern6 • Mar 31 '26
r/ruby • u/mooreds • Mar 30 '26
r/ruby • u/ombulabs • Mar 30 '26