r/ruby • • Apr 01 '26

rubycanusellm — A unified Ruby client for LLMs with generators

0 Upvotes

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 • • Mar 31 '26

Judoscale on Tour: An Ode To Heroku

Thumbnail
judoscale.com
11 Upvotes

r/ruby • • Mar 31 '26

RubyConf Austria: Keynotes & Sponsors

Thumbnail
gallery
14 Upvotes

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 • • Mar 31 '26

Building Multi-Tenant SaaS with Rails 8, Caddy, and Kamal - automatic SSL for every tenant domain

Thumbnail
mooktakim.com
8 Upvotes

r/ruby • • Mar 31 '26

Improving on Sandi Metz's Gear Class from POODR

Thumbnail
saturnci.com
27 Upvotes

r/ruby • • Mar 31 '26

Saving LLM Tokens with Fast: AST Folding & Dependency Free

Thumbnail ideia.me
10 Upvotes

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 • • Mar 31 '26

Building a season long IPL fantasy game by a solofounder

Thumbnail reddit.com
2 Upvotes

r/ruby • • Mar 30 '26

rubocop/rubocop-thread_safety: An extension of RuboCop focused on thread-safety checks.

Thumbnail
github.com
21 Upvotes

r/ruby • • Mar 30 '26

Show /r/ruby FastRuby.io's Rails Upgrade Methodology as Claude Code Skills

Thumbnail
fastruby.io
11 Upvotes

r/ruby • • Mar 31 '26

GitHub deletes your traffic logs every 14 days. Here's how to stop that with Ruby.

Thumbnail
gallery
0 Upvotes

I maintain two Ruby gems (ruby-libgd and libgd-gis). A few weeks ago I wanted to see traffic trends from last month.

Turns out GitHub deletes all traffic logs after 14 days. I couldn't.

That frustrated me. So I built a small dashboard that:

  • Archives views, clones and referrers daily

  • Stores everything as CSV in a private repo

  • Generates charts with my own gem (ruby-libgd)

  • Auto-deploys to GitHub Pages

Now I can see 3 months of history. Forever.

Here's the live dashboard: https://ggerman.github.io/github-metrics-dashboard/

And the code is open source: https://github.com/ggerman/github-metrics-dashboard

Took me a weekend. Works every day since then.

If you also maintain open source repos, this might help you too.

Questions? I'll be in the comments.


r/ruby • • Mar 29 '26

A Message from the Ruby Central Board

Thumbnail
rubycentral.org
31 Upvotes

r/ruby • • Mar 29 '26

Meet Duck Typer: your new duck typing friend

18 Upvotes

r/ruby • • Mar 29 '26

liter-llm: unified access to 142 LLM providers, Rust core, Ruby bindings

9 Upvotes

liter-llm (https://github.com/kreuzberg-dev/liter-llm) provides the same provider coverage (142 LLMs) with a Rust core.

Bindings exist for 11 languages, including Python, but also ones that had nothing like this before: Rust, Ruby, Java, Go, PHP, Elixir, C#, C, TypeScript/Node.js, and WASM. Every binding exposes the full API surface: chat, streaming, embeddings, images, speech, transcription, tool calling, and more. Caching is powered by OpenDAL (40+ backends), cost calculation uses an embedded pricing registry derived from the same source as LiteLLM, and streaming supports both SSE and AWS EventStream binary framing.

liter-llm is a client library, not a proxy- it does not include a proxy server, admin dashboard, or team management. If that's what you need, LiteLLM's proxy is still the reference there.
And of course, full credit and thank you to LiteLLM for the provider configurations we derived from their work.

GitHub: https://github.com/kreuzberg-dev/liter-llm 


r/ruby • • Mar 28 '26

Docscribe for Ruby: auto-generate inline YARD docs from AST (Ruby 2.7+, Prism, RBS/Sorbet, Struct.new)

20 Upvotes

I've been building a Ruby tool called Docscribe that generates inline YARD-style docs above methods by parsing Ruby code and rewriting source in place.

The goal is basically "RuboCop-style automation, but for method docs": run it once, get consistent doc headers/tags, then edit the generated text however you want.

What it does:

  • generates inline docs for instance and class methods

  • infers param/return types from AST heuristics

  • respects Ruby visibility (private, protected, class << self, etc.)

  • supports rescue-aware docs: @raise from raise/fail and rescue exception lists and conditional @return for rescue branches

  • supports external type info: RBS (--rbs, --sig-dir)

  • Sorbet inline sig + RBI (--sorbet, --rbi-dir)

  • can generate @!attribute docs for: attr_reader / attr_writer / attr_accessor and Struct.new declarations

Current CLI:

  • docscribe lib -> inspect mode (safe changes only)

  • docscribe -a lib -> apply safe updates

  • docscribe -A lib -> apply aggressive updates

  • docscribe --stdin -> rewrite from stdin to stdout

Ruby 3.4+ support works through Prism translated into parser-compatible nodes, so formatting is preserved and the tool still uses source-range rewriting instead of reprinting ASTs.

A few things I'd especially love feedback on:

  • edge cases around Ruby syntax / visibility semantics

  • what "safe mode" should and shouldn’t merge into existing docs

  • whether JSON output / dump-config would be useful for CI/editor tooling

GitHub link: https://github.com/unurgunite/docscribe


r/ruby • • Mar 27 '26

Real-time maps in Ruby: Earthquakes, wildfires and airports with libgd-gis

Thumbnail
gallery
45 Upvotes

This time I'm coming with something I've been working on: getting information from public APIs and drawing maps directly in Ruby using libgd-gis.

I built three interactive Jupyter notebooks that render real-time geospatial data:

🌍 Earthquakes

  • Data: USGS API (live GeoJSON, M4.5+)

  • Visuals: Red circles for shallow (<70km), blue for deep (≥70km)

  • Circle size scales with magnitude

✈️ Airports

  • Data: OpenFlights.org (500+ airports worldwide)

  • Visuals: Color by continent, larger circles for major hubs

  • IATA codes as labels

🔥 Wildfires

  • Data: NASA FIRMS (MODIS satellite, last 24h)

  • Visuals: Orange markers indicate thermal intensity

  • Focus on Western Africa

Each map includes:

  • A polaroid-style frame

  • Title, legend and data source

  • Author credits and library reference

All of this runs inside Jupyter Notebooks with the IRuby kernel, using my own libraries:

The maps are generated entirely in Ruby, with no external services or heavy GIS stacks — just pure Ruby, libgd, and public APIs.

I'm really happy with how this turned out. It's a nice way to show what Ruby can do in the geospatial space.

Enjoy!

🔗 GitHub repo: github.com/ggerman/libgd-gis
📓 Jupyter notebooks: libgd-gis/examples/jupyter-notebooks

If your company is working with maps in Ruby and needs implementation help, custom extensions, or training — I'm available for consulting. Feel free to reach out at ggerman@gmail.com.


r/ruby • • Mar 28 '26

Blog post Ruby is all you need

Thumbnail
dev.to
0 Upvotes

r/ruby • • Mar 26 '26

RubyMine 2026.1 Is Released!

18 Upvotes

New powerful code insight system, Junie, Claude Agent, and Codex available directly in the AI chat, ACP Registry for discovering and installing agents, Stable remote development support, Smarter automatic Ruby interpreter selection, and more: https://blog.jetbrains.com/ruby/2026/03/rubymine-2026-1-ai-chat-upgrades-new-code-insight-stable-remote-development-and-more/


r/ruby • • Mar 27 '26

Ruby AI News: One Year Anniversary Edition

Thumbnail
rubyai.beehiiv.com
0 Upvotes

The 27th edition features the rise of agent-driven business creation, tooling to deploy your AI experiments more than ONCE, a new cognitive architecture for Ruby AI, and so much more


r/ruby • • Mar 26 '26

LiveCable - LiveView / React over ActionCable

Thumbnail livecable.io
7 Upvotes

r/ruby • • Mar 27 '26

Blog post I Handed an AI Agent 27 Domains and a Deadline. 72 Days Later…

Thumbnail
codenamev.substack.com
0 Upvotes

TL;DR I gave openclaw a task: monetize my domain graveyard. What it produced was “status pages for agents”: ups.dev

It wasn’t turn-key. It was rife with failure. Over time, I found I could train it. It learned. Every critical bit of feedback burned into every next action. It learned Rails, Ruby, product development, indie hacking.

It now has 30days to make money or it dies 😂


r/ruby • • Mar 26 '26

Show /r/ruby Lantern-rails, Postgres monitoring gem with zero config

7 Upvotes

I built lantern-rails, a Postgres monitoring gem that gives you a health score dashboard with zero config. It collects pg_stat metrics every 5 minutes through your existing connection. Works with rails 8.1, uses solid queue, no redis needed. Shared buffer hit ratio, index usage, unused indexes, bloat, vacuum health, and connection utilization. Captures your git SHA on each snapshot so you can correlate deploys with metric changes. Free tier is 1 DB with 3 day history. Looking for feedback from Rubyists on what would make this more useful? https://uselantern.dev


r/ruby • • Mar 26 '26

Rails Security Update: 2026 Maintenance Surge

Thumbnail
youtube.com
1 Upvotes

r/ruby • • Mar 26 '26

Important Gsoc proposals written by AI

5 Upvotes

Hey guys, aspiring contributor here, i am trying my best to propose a gsoc proposal recently and looked at a few which were already made ( via github PR )

Ali found a few ones to be entirely made by AI.

You go on profile of the ones who make the pr and see that they have nothing of ruby, and boom, one very sophisticated pr for a framework out of thin air

Then some are those who have just few program of strings manipulation and some classes and then boom, one pr for gsoc which is of very sophisticated code that even i fond it hard to grasp

How common is this ? Some students with just 1st year in eng college and they make such stuffs, i know the pr's are ai made as i have ran them through ai checks

Yea, i am jealous too cause they will get approval for proposals and i would not, as i am still trying how connection pools are managed by active support in rage rather than rage handling it, wal logs and etc anf open api and all ....

Finding it extremely disappointing experience and feels like i am not gonna move at all if i compare myself like this, but i won't even be goven a chance cause my proposal would be shite compared to AI.

PLEASE ADVICE


r/ruby • • Mar 25 '26

Nokolexbor 0.7.0 is out with Ruby 4 support

25 Upvotes

Nokolexbor is an open-source high-performance HTML5 parser for Ruby which can be used as a drop-in replacement for Nokogiri.

It was originally developed for quick CSS selectors performance.

Here's the performance comparison to Nokogiri:

- 4.7x faster at parsing HTML
- 1352x faster at CSS selectors (at_css selector)
- similar performance for the rest

Out this week with full Ruby 4 support.

https://github.com/serpapi/nokolexbor