Repository navigation
docs - main (ruby): declare the gems Ruby 3.4 dropped, and make the first example runnable - #46
Merged
Merged
Conversation
…irst example runnable
sophia-bq
previously approved these changes
Oct 21, 2026
aaron-congo
previously approved these changes
Oct 22, 2026
| makes keep working, and the plugins act on each one. | ||
| - text: | | ||
| :::warning | ||
| `exec` returns its result and does not yield to a block, unlike |
Contributor
There was a problem hiding this comment.
is this a bug that needs to be fixed? Sounds like it
sophia-bq
previously approved these changes
Oct 22, 2026
aaron-congo
previously approved these changes
Oct 23, 2026
aaron-congo
reviewed
Oct 27, 2026
Comment on lines
+116
to
+117
| Ruby 3.4 removed these from the default gems, so a bundle without them | ||
| raises `LoadError` on the first require. |
Contributor
There was a problem hiding this comment.
Ruby 3.4 only removed base64 and bigdecimal from the default gems; logger was removed in Ruby 4.0. Also, mysql2 requires fiddle on Windows (to load libmysql.dll) without declaring it, so on Windows with Ruby 4.0 or later require 'mysql2' raises LoadError unless the Gemfile includes fiddle. That applies with Active Record too, since Active Record doesn't depend on fiddle.
Suggested change
| Ruby 3.4 removed these from the default gems, so a bundle without them | |
| raises `LoadError` on the first require. | |
| Ruby 3.4 removed `base64` and `bigdecimal` from the default gems, and Ruby 4.0 | |
| removed `logger`, so a bundle without them raises `LoadError` on the first require. | |
| On Windows with Ruby 4.0 or later, `mysql2` also needs `gem 'fiddle'` in your | |
| Gemfile. |
karenc-bq
force-pushed
the
chore/restructure
branch
from
October 28, 2026 22:47
bfda65c to
dc5ee34
Compare
sophia-bq
approved these changes
Oct 28, 2026
aaron-congo
approved these changes
Oct 28, 2026
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Issue. Following the Ruby Getting started section did not produce a working program. The documented Gemfile raised
LoadErroron the first require, and the only connection example was two constructor fragments with no query, no teardown and no command to run them.Root cause. Ruby 3.4 removed
base64,bigdecimal,fiddleandloggerfrom the default gems.aws_advanced_ruby_driver_wrapperrequires all four at load time and declares none of them.LoadErrornames one gem per attempt, so a reader finds them one rerun at a time.Fix. Step 1 gains a warning listing the four gems. The driver-direct example is one complete runnable program. A warning records the
execdifference, and a note gives the alternatives to a password in source. No section moved.Measured effect
An agent was given the cluster, the credentials, and nothing to read but this documentation, then asked for a working program. Five runs per side, same model and agent build.
xychart-beta title "Median billed tokens for a first set-up" x-axis ["main", "this branch"] y-axis "billed tokens" 0 --> 220000 bar [188965, 93067]xychart-beta title "Every run, sorted cheapest first (bars main, line this branch)" x-axis ["1", "2", "3", "4", "5"] y-axis "billed tokens" 0 --> 300000 bar [108221, 161378, 188965, 215548, 278158] line [91470, 92757, 93067, 93234, 122174]Runs on
mainsplit by whether the reader hit the missing gems; four of five on this branch sit within 1,800 tokens. Every run on both sides ended in a working program, so this buys cost and predictability rather than correctness.Checklist