/r/ruby
Celebrate the weird and wonderful Ruby programming language with us!
A sub-Reddit for discussion and news about Ruby programming.
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
/r/ruby
Does anyone know how to integrate Claude with Ruby on Rails? Can you tell me the resources to read to implement it?
Hey all, sharing a guide we wrote on debugging a Ruby microservice running in a Kubernetes cluster using mirrord, an OSS devtool we built.
In short, it shows how to run your Ruby service locally but with live access to cluster resources and context so you can test and debug changes quickly and without deploying.
I hope you find it useful, and would love to hear any feedback you might have.
https://metalbear.co/guides/how-to-debug-a-ruby-microservice/
Hi everyone,
I’ve been working on securing my API and ensuring that only my frontend (an Angular app) can access it — preventing any external tools like Postman or custom scripts from making requests.
Here’s the solution I’ve come up with so far:
The goal is to make sure that users can only interact with the API via the official frontend (Angular app) and that Postman, scripts, or any external tool cannot spoof legitimate requests.
I’m looking for feedback:
Thanks in advance for your thoughts and suggestions!
Old: https://cache.ruby-lang.org/pub/ruby/ruby-2.6.10.tar.bz2
Started getting 404
New: https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.10.tar.bz2
Read the Changelog for more: https://github.com/castwide/solargraph/blob/master/CHANGELOG.md#0510---january-19-2025
Also NOTE: In case, you're using solargraph-rspec plugin, you need to upgrade it to the latest version due to parser compatibility issues.
Hey Ruby community! 👋
I'm a long-time Rubyist from Brazil working on improving our database ecosystem. I maintain the timescaledb gem and am currently putting together performance workshops for Ruby/Rails developers focused on PostgreSQL internals.
TimescaleDB is kindly sponsoring efforts to improve database tooling across different language ecosystems, including Ruby. I'm looking to learn from your real-world experiences with time-series data and performance optimization.
In the past, I relied heavily on NewRelic for production performance debugging, but I've been away from this space for a while. For my upcoming workshop research:
- What gems are you using to detect and fix performance issues?
- Are there any open-source alternatives you'd recommend?
Please make a top-level comment describing your company and job.
Encouraged: Job postings are encouraged to include: salary range, experience level desired, timezone (if remote) or location requirements, and any work restrictions (such as citizenship requirements). These don't have to be in the comment, they can be in the link.
Encouraged: Linking to a specific job posting. Links to job boards are okay, but the more specific to Ruby they can be, the better.
If you are looking for a job: respond to a comment, DM, or use the contact info in the link to apply or ask questions. Also, feel free to make a top-level "I am looking" post.
If you know of someone else hiring, feel free to add a link or resource.
This is a scheduled and recurring post (one post a month: Wednesday at 15:00 UTC). Please do not make "we are hiring" posts outside of this post. You can view older posts by searching through the sub history.
RubyGems use deprecation warnings to let users know about upcoming breaking changes that will affect their codebase. Larger projects like Rails rely heavily on these warnings for communication — the Rails upgrade guide, for example, won’t even mention minor breaking changes as long as there’s a deprecation warning in place. Missing any of these warnings during an upgrade can lead to an unexpected failure in production.
Our tool monitors for deprecation warnings at runtime, helping you catch breaking changes that aren’t covered by your test suite. You can install our gem in your staging, QA, and production environments to track warnings before you merge a breaking change in an upgrade. Under the hood it works similarly to an error tracking system like Rollbar or Sentry but for deprecations instead.
It's free and you can try it out by following the instructions in the docs. Would love any feedback.
Why don’t large companies like Shopify, GitHub, and others invest in Falcon/Fibers?
Python code is overly spammed with async/await.
Hello. This is my first post here and I hope that I do not violate any rules.
I am mostly a Java guy working on Ruby now, and I love it a lot so far. I can see how much faster you can develop a business application using Ruby on Rails than with the Java frameworks I've used before.
Here is my main question: we are working on the new project's architecture and our choice of development tool is Ruby on Rails. However, the client is preferring NodeJs. My experience with that is limited, but I have the impression that Ruby would allow us to develop the application faster and with a smaller codebase. I wonder if there are any good articles comparing Ruby on Rails versus NodeJS?
Thank you in advance!
Edit: Thank you for the answers! I understand better now what I need to look for, it was very helpful!
Hey all, for years I've had this idea for a thing where you can browse through different Ruby operators, symbols, and syntax for when you encounter something in your code that you don't recognize or don't know what it is called.
I finally built the thing, and I'm calling it Ruby Operator Lookup -- https://www.visualmode.dev/ruby-operators
It was a ton of work and I'm proud of what I came up with. I think there are still a few rough edges to work out and a couple operators left to add.
In the meantime, I'd love some feedback!
Thanks in advance for your input. Cheers!
The Ruby3.3 package in Debian Sid pulls in Ruby3.1 and makes it the default system Ruby. How do I switch to the newly installed 3.3 version?
$ sudo apt-get install ruby3.3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
fonts-lato javascript-common libjs-jquery libruby libruby3.1t64 libruby3.3 rake ruby ruby-net-telnet ruby-rubygems ruby-sdbm ruby-webrick
ruby-xmlrpc ruby3.1 rubygems-integration unzip zip
Suggested packages:
ri ruby-dev bundler
The following NEW packages will be installed:
fonts-lato javascript-common libjs-jquery libruby libruby3.1t64 libruby3.3 rake ruby ruby-net-telnet ruby-rubygems ruby-sdbm ruby-webrick
ruby-xmlrpc ruby3.1 ruby3.3 rubygems-integration unzip zip
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
...
$ ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
Edit: I'm happy to say this appears to have been resolved!
Repo: https://github.com/lazaronixon/css-zero
Demo: https://csszero.lazaronixon.com/lookbook
Hello everyone,
As the title suggests, I'm in the process of creating my first Ruby gem. You might wonder why I'm posting here instead of simply publishing it and moving on. Well, I'm quite new to Ruby and would greatly appreciate it if someone could review my work and provide feedback on whether my approach is solid, at least for a first iteration.
I'm also unsure whether it's appropriate to share my GitHub URL here. Any guidance or advice would be greatly appreciated!
Hey everyone,
I’m the creator of Shoryuken, an SQS processor for Ruby. It’s been awesome running the project over the years and seeing it being used by so many people, including big companies. Shoryuken has given me a lot of joy!
Unfortunately, at this point, I just can’t keep up with it anymore. Life’s gotten too busy to give it the attention it deserves (I make no money from it). Issues and pull requests come in, and I feel bad not being able to help. I tried to archive the project to prevent people from putting in work that may not be reviewed, but that upset people because they are still using it and advocating for it. Unarchived, not maintained, is more comfortable than archived.
I got contributors over the years, but they eventually moved on (jobs, life, etc.).
I’d honestly love to see a company pick it up and take care of it, but let’s be real — that’s probably not happening with an open-source project like this.
I would love it if someone could share some ideas.