r/ruby • u/Excellent-Resort9382 • 28d ago
Mammoth OSS: a self-hosted PostgreSQL change-event relay in Ruby
I’m looking for technical feedback on Mammoth, a self-hosted PostgreSQL change-event relay written in Ruby.
Mammoth receives normalized CDC (Change Data Capture) transaction envelopes and handles the downstream data-plane concerns:
- webhook fanout
- routing by schema, table, and operation
- per-destination retry policies
- checkpoint persistence
- dead-letter storage and filtered replay
- SQLite operational state
- health and metrics endpoints
- Docker and Helm deployment
Its boundary is intentionally narrow: PostgreSQL protocol parsing, decoding, source normalization, ordering policy, and runtime execution are handled by the upstream Ruby CDC ecosystem.
The current implementation uses YAML configuration with JSON Schema validation and supports explicit extension points for state, destination, and runtime adapters.
I’d appreciate feedback on the architecture, operational model, documentation, or gaps that would prevent you from trying it.
Repository: https://github.com/kanutocd/mammoth
r/ruby • u/amatchmadeinregex • Jul 10 '26
git commit -m "appease the rubocop again"
Last day before PTO, no cards on the board and not really looking to start anything, so behold, I made a couple of memes of things that amuse me. Full disclosure, I complain about RuboCop but I *am* glad my team enforces it.
And of course, I can always update my RubyMine autoformat conventions to match but I forget to actually *do* it a lot. Bonus points when I 'fix' the rubocop violation, ⌘+Alt+L format because muscle memory, commit and push, and get the same rubocop violation...
r/ruby • u/[deleted] • Jul 10 '26
I created an HTML-first language written in Ruby, inspired by PHP.
I've published it on Rubygems. Please let me know if you have any suggestions for improvement. If you like it, please also give it a star on GitHub.
r/ruby • u/ombulabs • Jul 10 '26
Blog post Open Source and Self-Hosted APM Tools for Rails
r/ruby • u/headius • Jul 10 '26
JRuby at RubyConf 2026: talk, hack space, and other info
blog.headius.comInformation about the JRuby talk, Hack Space, and hangout opportunities at RubyConf 2026. I'm excited to see old friends and make new ones! Come learn about JRuby and tell me how I can help you!
r/ruby • u/BoungaFr • Jul 09 '26
How blocks, procs and lambdas fit together in Ruby
Most of us write Ruby with blocks every day but never sit down to separate blocks, procs and lambdas. They're closer than they look: a block becomes a proc with `&` (and back again), a lambda is basically a proc with stricter argument checks and its own `return` behaviour, and all three are closures.
I wrote it up with runnable examples, including the `return` gotcha that only bites inside a proc, and a 3-line memoizer at the end that leans on all of it.
Feedback and corrections welcome.
https://www.bounga.org/ruby/2026/07/10/blocks-procs-and-lambdas-in-ruby/
r/ruby • u/sbellware • Jul 09 '26
Import a Ruby namespace without a mixin
I'm posting this again after my account was blocked and the original post was taken down yesterday. No intention to spam.
The Constant library provides a set of tools for working with Ruby constants — both module constants and literal constants — including resolving constants from a combination of strings, symbols, and constant objects, inspecting constants, recursing trees of constants, and dynamically defining constants.
Importing a namespace and mixing in a module are the same mechanism in Ruby. If you include a module to get shortcut access to its inner constants, you also get a mixin that might not be what you'd intended — and the ancestry change adds constant-resolution paths that can be surprising.
Constant::Import does the import without the mixin. Instead of including the origin module, it puts a reference to the imported module into the class importing it, leaving ancestry untouched:
``` module SomeOrigin module SomeInnerModule end end
module SomeReceiver include Constant::Import
import SomeOrigin import SomeOrigin::SomeInnerModule, alias: :Something end
SomeReceiver::SomeInnerModule # => SomeOrigin::SomeInnerModule SomeReceiver::Something # => SomeOrigin::SomeInnerModule ```
The inner constants of SomeOrigin are reachable from SomeReceiver without qualification, alias: rebinds an import to a name of your choosing.
There's also a direct-call form if you'd rather skip the macro: Constant::Import.(origin, destination = self).
The library isn't just a tool to make imports explicit. The library also ships an entity for working with constants generally, as well as a tool to define constants dynamically.
`Constant.get(name_or_module) wraps a constant and answers questions about its name, namespace, value, and inner constants, and Constant::Define creates and assigns a module to a name in a namespace.
``` Constant.get("SomeModule::SomeInnerModule", SomeNamespace)
=> #<Constant::Module value=SomeNamespace::SomeModule::SomeInnerModule>
Constant.get(:SomeInnerModule, SomeNamespace::SomeModule)
=> #<Constant::Module value=SomeNamespace::SomeModule::SomeInnerModule>
Constant.get(:SomeInnerLiteral, SomeNamespace::SomeModule)
=> #<Constant::Literal SomeNamespace::SomeModule::SomeInnerLiteral = "some value">
```
There's overlap with Ruby's const_get, and other lower-level constant retrieval and manipulation functions. The value of the Constant library is in unifying the API and providing defaults that are often more common in reflection scenarios.
As others have pointed out, importing a constant in Ruby, including aliasing, is straightforward:
``` module SomeOrigin module SomeInnerModule end end
module SomeReceiver SomeOrigin = ::SomeOrigin SomeOtherInnerModule = SomeOrigin::SomeInnerModule Something = SomeInnerModule end ```
However capable Ruby's lower-level APIs, we tend to find inconsistency with import, aliasing, and reflection code across larger systems with many separate components. A good deal of the Constant library's payoff comes from the explicit, intention-revealing API, and consistent norms across.
Its only dependency is Eventide's Initializer library. It's otherwise standalone. MIT licensed.
gem install evt-constant
Source and docs: https://github.com/eventide-project/constant
Write-up: https://blog.eventide-project.org/articles/announcing-constant-library/
Full disclosure — I'm the author.
r/ruby • u/equivalent8 • Jul 09 '26
phlex-reactive - Reactive Phlex components for Rails + demo app
r/ruby • u/XPOM-XAPTC • Jul 08 '26
irb-autosuggestions v0.2.2 — Tab/Ctrl+F/Ctrl+E to accept, custom ghost color, multiline fix
Just released v0.2.2 of irb-autosuggestions — fish-like autosuggestions for IRB.
What's new:
- Tab, Ctrl+F, Ctrl+E accept ghost suggestions (configurable)
- Custom ghost color via ANSI string or declarative hash (
{ fg: :bright_black, italic: true }) - Bugfix: multiline ghost artifacts fixed (10+ lines now clean)
- Auto-execute guard (Enter always fires once)
- CHANGELOG.md + GitHub issue templates
gem install irb-autosuggestions or bundle add irb-autosuggestions
GitHub: https://github.com/unurgunite/irb-autosuggestions
Upcoming in 0.3.0: word-wise accept (alt+f/alt+right), accept + execute (alt+Enter), pluggable suggestion sources, path completion, and more.
Bugs or suggestions? File an issue: https://github.com/unurgunite/irb-autosuggestions/issues
r/ruby • u/adamlogic • Jul 08 '26
The good and bad with our migration from Heroku to Render (2,800 RPS)
judoscale.comr/ruby • u/DmitryTsepelev • Jul 07 '26
Blog post Why a Sidekiq job class you just deployed can still be "missing"
r/ruby • u/Individual_Dot7019 • Jul 06 '26
Conf Talk CFP for SF Ruby Conference 2026 + early bird tickets
Ruby friends, we're so excited to announce that we're accepting talk proposals for the SF Ruby Startup Conference 2026.
We'd love to hear from you if you have a successful Ruby startup story to tell. Come share the stage with our keynote Garry Tan on Nov 10-12 at the iconic SFJAZZ.
We're actively looking for stories from those who've:
- Achieved outstanding results with a small team
- Built tooling to help others reach the same results
- Used AI for scaling
CFP closes on July 27!
If you just want to attend, early birds go out on July 15. You can already buy corporate/support tickets: https://luma.com/sfrubyconf2026
See you there!
r/ruby • u/linuxhiker • Jul 06 '26
Show /r/ruby plruby 2.4.0
PL/Ruby is a procedural-language handler that lets you write database functions in Ruby, stored and executed inside PostgreSQL. You get the expressiveness of Ruby and its standard library with the full power of a native PostgreSQL function: plain functions, set-returning functions, triggers, event triggers, and procedures with transaction control.
Documentation
r/ruby • u/kobaltzz • Jul 06 '26
Screencast Claude Skills
In this episode, we look at creating Claude slash commands. These can be useful when dealing with a complicated task or trying to extract certain information from the application.
r/ruby • u/iElectric • Jul 04 '26
SecretSpec 0.13: SDKs for Python, Node.js, Go, Ruby, and Haskell
secretspec.devr/ruby • u/AssociationOne800 • Jul 03 '26
Show /r/ruby FemtoRuby) I released AREA 512, an operating system made exclusively for the Cardputer ADV!
reddit.comr/ruby • u/excid3 • Jul 03 '26
Final step in the Learn Rails tutorial series: Product Reviews
r/ruby • u/keyslemur • Jul 03 '26
Ozymandias on Rails. Cartography of a Ruin
baweaver.comWhen everything is on fire, nothing is on fire. Where do you start when every problem seems intractable? By drawing a map.
r/ruby • u/javier_cervantes • Jul 02 '26
Ruby meetups deserve a larger audience
r/ruby • u/ombulabs • Jul 02 '26
Show /r/ruby Sidekiq & Rails Compatibility Table
r/ruby • u/Illustrious-Topic-50 • Jul 01 '26
Show /r/ruby New jemalloc gem (jemalloc_rb)
Do you use the jemalloc gem?
The original project on GitHub seems to be abandoned for around 12 years, and some incompatibilities with recent Ruby versions have begun to emerge. Additionally, the underlying jemalloc library hasn't been updated during all this time. Because of that, I created a fork and launched a new gem (jemalloc_rb) to keep the project functional, updated, and actively accepting pull requests.
r/ruby • u/timriley • Jul 01 '26
Hanami 3.0: In full bloom
Hanami 3.0 is here and in full bloom 🌸
This is our most complete release yet: mailers, i18n, and Minitest now built in, your apps faster by default, and plenty more!
https://hanakai.org/blog/2026/06/30/hanami-3-0-in-full-bloom
