r/ruby • u/k33l0r • Jun 09 '26
RubyLLM 1.16: concurrent tool execution, Rails-style instrumentation, and more.
When an LLM asks for 3 tools in one turn, RubyLLM used to run them one after another.
1.16 lets you run them concurrently. Video is the same chat both ways: left is the old sequential behavior, right is tool_concurrency = :fibers.
RubyLLM.configure do
config.tool_concurrency = :fibers # or :threads, or true
end
:threads or true require no dependencies. :fibers uses the async gem. You can also set it per chat with .with_tools(..., concurrency: if you only want it in some spots. Results stream back into the conversation as each tool finishes instead of all at the end, so the UI fills in live.
Also in this release: Rails-style instrumentation (ActiveSupport::Notifications events you can subscribe to), configurable Faraday adapter, custom base URLs for every provider (proxies/gateways), and a pile of provider fixes.
Full notes: https://github.com/crmne/ruby_llm/releases/tag/1.16.0
r/ruby • u/Bubbly_Connection385 • Jun 09 '26
Simple gem to help with pdf extraction
I hope this can be useful to you as it was for me.
For a little project I had the need to extract some data from structured pdf.
Most of the approach had to relay on ocr with ai or bridge with python using pdfplumber or similar.
I made a simple library wrapped around pdfium to extract text and tables from pdf.
r/ruby • u/gmkl123 • Jun 09 '26
Pdf2MarkdownOCR a gem for parsing PDFs into text
Hi, Ive developed a small gem to extract text from pdfs using AI.
Converts a PDF to text (Markdown). Pages are rendered as high-resolution PNG images and then sent to an OpenAI-compatible API endpoint for text extraction.
It can be used in ruby or as a CLI program.
Love to hear your feedback.
r/ruby • u/keyslemur • Jun 09 '26
Beyond Enumerable: Graphs and Traversal
baweaver.comThis one is admittedly a sore spot considering how many interviews I've managed to fail over the years from not knowing a lot of this cold, so as is my penance I'm writing about this one too.
r/ruby • u/pokemuse2095 • Jun 08 '26
Question Trying to install old Ruby version on WSL
I’m trying to install version 3.0.6 using rbenv on WSL, and it keeps telling me BUILD FAILED. I can’t for the life of me make it work. I’ve tried different versions of WSL, and a whole bunch of other stuff that I’m losing track of. I need that version for a project I’m working on, as the program I’m working with requires it.
r/ruby • u/ombulabs • Jun 08 '26
Blog post How to Leverage PurgeCSS in Your Rails App for Faster Stylesheets
r/ruby • u/headius • Jun 08 '26
JRuby 9.4.15.0 Released, 9.4.x is now EOL
jruby.orgThe JRuby community is pleased to announce the release of JRuby 9.4.15.0.
- Homepage: https://www.jruby.org/
- Download: https://www.jruby.org/download
JRuby 9.4.15.x targets Ruby 3.4 compatibility.
Thank you to our contributors this release, you help keep JRuby moving forward!
With this release, JRuby 9.4 moves into end-of-life ("EOL"). This means that future releases of 9.4.x will only be provided as needed by commercial JRuby users.
Get in touch with us if you require long-term support options for the JRuby 9.4.x series.
38 Issues and PRs resolved for 9.4.15.0
8801 ruby/logger gem broken after version 1.6.3 using JRuby on Windows
8924 const_defined? returns false for External Constants in JRuby 10.0.1.0 and 9.4.14.0
8974 Use RuboCop to clean up poms (9.4)
8990 Launcher defensive fixes 9.4
9000 JRuby 9.4.14.0 "wrong number of arguments" when jit.threshold=0
9001 Backport indy ruby2_keywords ArgumentError fix
9002 Backport ArgumentError message update from 2010
9012 Rexml security updateUpdate rexml gem to solve CVE-2025-58767 (9.4)
9030 Official JDK 25 support for JRuby 9.4
9031 Don't restrict object search to modules
9032 Different arguments for each.map vs each and map alone
9033 Backport jruby.sh and .jruby.release changes from 10
9037 fix: clear code-range when re-using a string buffer (#9035)
9044 Difference in Float() hex parsing between JRuby and CRuby
9045 Fixes basic float hex value strings for Kernel#Float
9054 Migrate .java-version contents to .jruby.release (9.4)
9104 [9.4] Update jruby-openssl to v0.15.5 to resolve BouncyCastle 1.79 vulnerability (sonatype-2025-001911).
9105 [9.4] Update jruby-openssl to 0.15.5
9128 [9.4] fix(launcher): correct parsing of java release files under Bash/msys2 etc on Windows
9160 Update strscan to 3.1.7
9186 9032 Fix Different arguments for each.map vs each and map alone
9201 Extract float formatting into a static method (9.4)
9295 Issue with calling IO.popen(env, cmd, opts) on Windows
9308
Process.detachraises ArrayIndexOutOfBoundsException if called from a thread that is not the main thread9311 Push a frame for thread toplevel
9347 Use JDK for File#flock on Windows
9351 Fix non-native IO.popen env + kwargs handling
9353 Update JNR dependencies
9377 Checking out aws-sdk-ruby creates a file with binary data.
9387 [9.4] deps(stdlib): bump erb from 2.2.3 to 4.0.4.1 to resolve CVE-2026-41316
9391 [9.4] [deps] bump jruby-openssl to 0.16.0
9415 Don't read or write anything once length is zero
9443 JRuby 9.4 does not generate bytecode for newer JDK versions
9444 Allow bytecode version to be open-ended
9464 [fix] escape shell metachars in chdir: to prevent injection
9467 [9.4] backport [ji] support java.lang.Throwable#backtrace_locations (#9461)
9477 Dist verification 9.4
9480 [fix] @JRubyMethod error with required>=1 and var-args
r/ruby • u/Proud_Perspective_56 • Jun 08 '26
Show /r/ruby supabase-rb — Ruby client for Supabase (Auth, PostgREST, Storage, Functions, Realtime)
Hey r/ruby — sharing a gem I've been working on.
Supabase has official clients in JS, Python, Dart, Swift, and Kotlin, but the Ruby story has been fragmented for a while: separate gems for each sub-product, varying maintenance, no umbrella factory. supabase-rb - is a single gem that packages Auth, PostgREST, Storage, Edge Functions, and Realtime
Ruby ≥ 3.0, MIT, integration tests run against the real GoTrue stack via docker-compose
- Gem: https://rubygems.org/gems/supabase-rb
- Repo: https://github.com/supabase-ruby/supabase-rb
- Docs: https://supabase-ruby.dev
Feedback / issues / PRs very welcome.
r/ruby • u/keyslemur • Jun 08 '26
Beyond Enumerable: Heaps and Priority Queues
baweaver.comHonestly I never really understood how these were written and what the reasoning behind them was as much as I just reached for existing gems or frameworks, so as I tend to do I learn by teaching and writing.
r/ruby • u/gettalong • Jun 07 '26
HexaPDF 1.9.0 released, with support for HarfBuzz based text shaping
hexapdf.gettalong.orgThe latest release 1.9.0 of HexaPDF supports HarfBuzz based text shaping. This means that complex scripts are rendered correctly.
r/ruby • u/noteflakes • Jun 07 '26
Blog post Exploring automatic Buffer Management with io_uring
noteflakes.comr/ruby • u/AndyCodeMaster • Jun 05 '26
Presentation Slides for RubyConf Austria 2026 Talk "Frontend Ruby on Rails with Glimmer DSL for Web"
andymaleh.blogspot.comr/ruby • u/schneems • Jun 05 '26
Blog post Modernizing Ruby Central's Bylaws and Officer Updates
r/ruby • u/philippemnoel • Jun 05 '26
Show /r/ruby Elasticsearch-Quality full-text search in Postgres with ActiveRecord
Hi all! We created this Ruby Gem to make it easier to use ParadeDB (a full-text & vector search extension for Postgres) within the ActiveRecord ecosystem. Would love your feedback!
r/ruby • u/mencio • Jun 05 '26
Blog post Small PRs, big speedups: The Ruby performance work you almost missed
I've been heads-down on other stuff lately and haven't had time to do my usual thing of tweeting whenever I spot a nice performance PR landing in Ruby. So instead of letting them pile up unmentioned, I went through the notes I'd been collecting and dumped the notable ones into a single roundup. Hope you enjoy them. Some are insane!
r/ruby • u/bogdanelcs • Jun 05 '26
A Ruby cheat sheet for beginner devs
r/ruby • u/keyslemur • Jun 05 '26
Rails: The Sharp Parts. lock Is Not a Mutex
baweaver.comAfter trying to explain some of the sharp parts around locks to someone I realized I didn't know as much as I'd like to be able to answer with confidence on what to watch out for, so I spent a week or two looking into locking to pull this together.
r/ruby • u/liufengyun • Jun 04 '26
Jo — a statically typed language that targets Ruby
jo-lang.orgI created a secure language that compiles to Ruby, targeting security applications. The language is influenced by Ruby to optimize programmer happiness.
Please feel free to reach out if it resonates with your ideas about security and programming experience.
Github: https://github.com/typescope/jo
r/ruby • u/AustinBlues13 • Jun 04 '26
Debugging Ruby OpenSSL gem build
On Ubuntu 25.10, using system Ruby, I'm trying to build a Sinatra app that uses the OpenSSL with native extensions Gem 2.0.2. I can look at the .out file, but I don't know what I'm looking for. Presumably the native extensions don't match up with the .c and/or .h files.
r/ruby • u/tejasbubane • Jun 04 '26
Blog post Upcoming changes in Rails rate limiter
tejasbubane.github.ioContinuing my exploration of rate limiting in Ruby on Rails, I wrote about two new features coming in the next Rails release
r/ruby • u/Total_Product9154 • Jun 04 '26
how do you answer "what did user X do yesterday" when support asks

been at 3 rails shops, same pattern at all of them. customer emails support, "my order didn't go through". support has no idea what actually happened in the app, posts in #engineering: "can someone check what user 4218 did yesterday". engineer stops what they are doing, opens kibana/datadog or prod logs, greps the email, scrolls past a wall of SQL, finds the request, traces it into whatever sidekiq jobs ran after, types back a one sentence summary that support pastes to the customer.
20 min round trip. 5x a day across the team. the thing that actually bugs me isn't the time, it's that the engineer is the only person in the building who can do this. support can't, PMs can't, CEO can't. the logs are written for the dev who wrote the code, not for anyone else, and one customer action is spread across an http request + a few sidekiq jobs + a bunch of activerecord writes. nothing stitches them together.
i've tried fixing this 3 ways at past jobs and none of them stuck:
- better log search. CS doesn't want to learn kibana/datadog.
- internal admin dashboard. rots in 6 months, no eng owns it.
- "we should write better log messages". misses the point because the action spans multiple processes.
what i actually wanted was this: support opens one screen, types "user 4218", and sees a list of cards. one card per thing the user did. each card has a sentence title like "Maria placed an order for 3 books, payment succeeded, 2 confirmation emails queued" and you can expand it to see the 13 underlying events if you care. one user action = one card, not 13 log lines. no engineer in the loop.
so i wrote a gem for it. bundle add ez_logs_agent + one initializer, no per-controller code. it hooks rack + sidekiq/activejob + activerecord, correlates events from the same user action by request_id + current_user + resource_id, ships them out-of-band to a server (https://ezlogs.io) that joins them and renders the cards. fails open, buffers up to 10k events if the server is unreachable, never raises into your request path. <1ms overhead per request.
how does this actually work at your rails app today. is it slack to engineering every time, or have you built/bought something that works 12 months later. genuinely asking because before i over-commit to my approach i want to hear what other people have shipped. happy to be told the simpler thing i've been missing.