Skip to content

docs-v1.1.0 (ruby): note that mysql2 needs fiddle on Windows with Ruby 4.0+ - #51

Closed
aaron-congo wants to merge 1 commit into
ruby/1.1.0from
docs/ruby-1.1.0-mysql2-fiddle
Closed

aaron-congo wants to merge 1 commit into
ruby/1.1.0from
docs/ruby-1.1.0-mysql2-fiddle

Conversation

@aaron-congo

Copy link
Copy Markdown
Contributor

Description

Updates the Ruby Getting started section on ruby/1.1.0 to match aws/aws-advanced-ruby-driver-wrapper#224.

#46 found that on Ruby 3.4+ the wrapper raised LoadError in bundles that don't include the gems Ruby no longer installs by default. On main (the current release), #46 fixes this by telling readers to add those gems to their Gemfile. From 1.1.0 the wrapper declares the gems it needs (bigdecimal, logger) and no longer uses base64, so that warning doesn't apply to this branch.

What's left is fiddle. On Windows, mysql2 requires fiddle to load libmysql.dll, but its gemspec doesn't declare it. Ruby 4.0 removed fiddle from the default gems, so a Windows bundle using mysql2 on Ruby 4.0+ raises LoadError unless it adds gem 'fiddle'. This PR adds a warning saying so to step 1 of Getting started.

The wrapper itself never requires fiddle, so it isn't added to the wrapper's gemspec. Declaring it there would install a native extension for every user, including pg users and everyone not on Windows, to work around a dependency mysql2 leaves undeclared.

Which docs are affected?

Ruby overview page (Getting started, step 1).

Checklist

  • I read CONTRIBUTING.md.
  • This change is to the docs, not to a wrapper's source (those go in the wrapper's own repo).
  • I built the site locally and the affected pages render correctly.
  • Links I added or changed resolve, including the wrapper-switched variants where relevant.
  • No security-sensitive information is included (see SECURITY.md).

@aaron-congo
aaron-congo requested a review from a team as a code owner October 28, 2026 17:28
@aaron-congo aaron-congo mentioned this pull request Nov 4, 2026
5 tasks done
@aaron-congo

Copy link
Copy Markdown
Contributor Author

Superseded by #58

@aaron-congo aaron-congo closed this Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant